mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
add mark_new
This commit is contained in:
parent
8f74a2ee57
commit
da1e8f95b4
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user