mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
reset_if_new should return true or false
This commit is contained in:
parent
92cdcf764b
commit
99b64bdfc6
@ -128,13 +128,16 @@ clear(DisplayRegion *dr) {
|
||||
// Function: GraphicsStateGuardian::reset_if_new
|
||||
// Access: Public
|
||||
// Description: Calls reset() to initialize the GSG, but only if it
|
||||
// hasn't been called yet.
|
||||
// hasn't been called yet. Returns true if the GSG was
|
||||
// new, false otherwise.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void GraphicsStateGuardian::
|
||||
INLINE bool GraphicsStateGuardian::
|
||||
reset_if_new() {
|
||||
if (_needs_reset) {
|
||||
reset();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
@ -126,7 +126,7 @@ public:
|
||||
virtual CPT(RenderState) begin_decal_base_second();
|
||||
virtual void finish_decal();
|
||||
|
||||
INLINE void reset_if_new();
|
||||
INLINE bool reset_if_new();
|
||||
virtual void reset();
|
||||
|
||||
INLINE void modify_state(const RenderState *state);
|
||||
|
Loading…
x
Reference in New Issue
Block a user