add mark_new

This commit is contained in:
David Rose 2005-06-22 21:07:42 +00:00
parent 8f74a2ee57
commit da1e8f95b4
2 changed files with 12 additions and 0 deletions

View File

@ -435,6 +435,17 @@ reset_if_new() {
return false;
}
////////////////////////////////////////////////////////////////////
// Function: GraphicsStateGuardian::mark_new
// Access: Public
// Description: Marks the GSG as "new", so that the next call to
// reset_if_new() will be effective.
////////////////////////////////////////////////////////////////////
INLINE void GraphicsStateGuardian::
mark_new() {
_needs_reset = true;
}
////////////////////////////////////////////////////////////////////
// Function: GraphicsStateGuardian::modify_state
// Access: Public

View File

@ -177,6 +177,7 @@ public:
virtual void framebuffer_release_texture(GraphicsOutput *win, Texture *tex);
INLINE bool reset_if_new();
INLINE void mark_new();
virtual void reset();
INLINE void modify_state(const RenderState *state);