#include <gls_sorted_drawable.h>
The GlsSortedDrawable class. An interface for an object that knows how to sort itself.
◆ RegisterNewClassID()
static unsigned int RegisterNewClassID |
( |
const char * |
debugStr = NULL | ) |
|
|
static |
- Returns
- A new ClassID. Typically only called once by each GlsSortedDrawable implementation.
- Parameters
-
debugStr | Unused, kept for backward compatibility. |
◆ SortedDraw()
Draw the object using the current OpenGL context. Use lastDrawnObj to avoid redundant state changes.
- Parameters
-
◆ SortedDraw_ClassID()
virtual unsigned int SortedDraw_ClassID |
( |
| ) |
|
|
pure virtual |
Allows for static casting in compare functions.
- See also
- RegisterClassID
- Returns
- The unique identifier for this object's class.
◆ SortedDraw_Compare()
Compare two GlsSortedDrawable objects to determine the sort order.
- Parameters
-
other | Object to compare to. |
- Returns
- True if this object should draw before other.
◆ SortedDraw_CompareDefault()
Comparison that should be used if the derived class is unsure.
- Parameters
-
o | The object to compare to. |
- Returns
- True if this object's id is less than the compared object.
◆ SortedDraw_OptimizeMerge()
◆ SortedDraw_ReorderAtWill()
virtual bool SortedDraw_ReorderAtWill |
( |
| ) |
|
|
inlinevirtual |
- Returns
- Whether or not this can be re-ordered, or if it is part of an preserved order set.
◆ SortedDrawCleanup()
virtual void SortedDrawCleanup |
( |
| ) |
|
|
pure virtual |
Tell an object to restore the OpenGLDefaultState after drawing. Objects should call this if lastDrawnObj has an unknown class. The Group will also call this after the last object is drawn.
The documentation for this class was generated from the following file: