Om
1.0.0
A universal framework for multimedia simulation
|
A class that encapsulates the different boolean flags that a scene renderer can have. More...
#include <omGraphicsSceneRenderFlags.h>
Public Types | |
enum | Flag { UNDEFINED = 0, CLEAR_COLOR = (1 << 0), CLEAR_DEPTH = (1 << 1), OBJECTS_ENABLED = (1 << 2), LIGHTS_ENABLED = (1 << 3), SHADOWS = (1 << 4), DEBUG_ENABLED = (1 << 5), DEBUG_LIGHTS = (1 << 6), DEBUG_CAMERAS = (1 << 7), DEBUG_OBJECTS = (1 << 8), DEBUG_SHAPES = (1 << 9), DEBUG_BOUNDING_BOXES = (1 << 10), DEFAULT = CLEAR_COLOR | CLEAR_DEPTH | OBJECTS_ENABLED | LIGHTS_ENABLED | SHADOWS } |
An enum that specifies the different scene renderer flags. More... | |
Public Member Functions | |
SceneRenderFlags () | |
Create a new scene renderer flags object with no flags set. More... | |
SceneRenderFlags (Flag flag) | |
Create a new scene renderer flags object with the specified flag value initially set. More... | |
SceneRenderFlags (UInt32 newFlags) | |
Create a new scene renderer flags object with the specified initial combined flags value. More... | |
operator UInt32 () const | |
Convert this scene renderer flags object to an integer value. More... | |
Bool | isSet (Flag flag) const |
Return whether or not the specified flag value is set for this flags object. More... | |
void | set (Flag flag, Bool newIsSet) |
Set whether or not the specified flag value is set for this flags object. More... | |
A class that encapsulates the different boolean flags that a scene renderer can have.
These flags provide boolean information about a certain scene renderer. Flags are indicated by setting a single bit of a 32-bit unsigned integer to 1.
Enum values for the different flags are defined as members of the class. Typically, the user would bitwise-OR the flag enum values together to produce a final set of set flags.
An enum that specifies the different scene renderer flags.
|
inline |
Create a new scene renderer flags object with no flags set.
|
inline |
Create a new scene renderer flags object with the specified flag value initially set.
|
inline |
Create a new scene renderer flags object with the specified initial combined flags value.
|
inline |
Convert this scene renderer flags object to an integer value.
This operator is provided so that the SceneRendererFlags object can be used as an integer value for bitwise logical operations.
Return whether or not the specified flag value is set for this flags object.
Set whether or not the specified flag value is set for this flags object.