expose some more stuff

This commit is contained in:
David Rose 2002-01-13 20:21:06 +00:00
parent 650f84aeef
commit 4d6334533b
4 changed files with 26 additions and 1 deletions

View File

@ -385,6 +385,20 @@ get_button_event(int device) {
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
// Access: Public

View File

@ -193,6 +193,7 @@ PUBLISHED:
virtual void main_loop();
virtual bool supports_update() const;
virtual void update();
INLINE void render_and_update();
public:
virtual void begin_frame();

View File

@ -27,3 +27,12 @@ AppTraverser(TypeHandle graph_type) :
_graph_type(graph_type)
{
}
////////////////////////////////////////////////////////////////////
// Function: AppTraverser::Destructor
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE AppTraverser::
~AppTraverser() {
}

View File

@ -37,8 +37,9 @@ class Node;
////////////////////////////////////////////////////////////////////
class EXPCL_PANDA AppTraverser :
public TraverserVisitor<NullTransitionWrapper, NullLevelState> {
public:
PUBLISHED:
INLINE AppTraverser(TypeHandle graph_type);
INLINE ~AppTraverser();
void traverse(Node *root);