mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
expose some more stuff
This commit is contained in:
parent
650f84aeef
commit
4d6334533b
@ -385,6 +385,20 @@ get_button_event(int device) {
|
|||||||
return _input_devices[device].get_button_event();
|
return _input_devices[device].get_button_event();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: GraphicsWindow::render_and_update
|
||||||
|
// Access: Published
|
||||||
|
// Description: Renders the scene associated with the window and
|
||||||
|
// updates the window.
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE void GraphicsWindow::
|
||||||
|
render_and_update() {
|
||||||
|
if (_gsg != (GraphicsStateGuardian *)NULL) {
|
||||||
|
_gsg->render_frame();
|
||||||
|
}
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: GraphicsWindow::set_sync
|
// Function: GraphicsWindow::set_sync
|
||||||
// Access: Public
|
// Access: Public
|
||||||
|
@ -193,6 +193,7 @@ PUBLISHED:
|
|||||||
virtual void main_loop();
|
virtual void main_loop();
|
||||||
virtual bool supports_update() const;
|
virtual bool supports_update() const;
|
||||||
virtual void update();
|
virtual void update();
|
||||||
|
INLINE void render_and_update();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void begin_frame();
|
virtual void begin_frame();
|
||||||
|
@ -27,3 +27,12 @@ AppTraverser(TypeHandle graph_type) :
|
|||||||
_graph_type(graph_type)
|
_graph_type(graph_type)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: AppTraverser::Destructor
|
||||||
|
// Access: Public
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE AppTraverser::
|
||||||
|
~AppTraverser() {
|
||||||
|
}
|
||||||
|
@ -37,8 +37,9 @@ class Node;
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
class EXPCL_PANDA AppTraverser :
|
class EXPCL_PANDA AppTraverser :
|
||||||
public TraverserVisitor<NullTransitionWrapper, NullLevelState> {
|
public TraverserVisitor<NullTransitionWrapper, NullLevelState> {
|
||||||
public:
|
PUBLISHED:
|
||||||
INLINE AppTraverser(TypeHandle graph_type);
|
INLINE AppTraverser(TypeHandle graph_type);
|
||||||
|
INLINE ~AppTraverser();
|
||||||
|
|
||||||
void traverse(Node *root);
|
void traverse(Node *root);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user