Om
1.0.0
A universal framework for multimedia simulation
|
A class that encapsulates different boolean parameters for a rendering operation. More...
#include <omGraphicsRenderFlags.h>
Public Types | |
enum | Flag { UNDEFINED = 0, RED_WRITE = 1 << 0, GREEN_WRITE = 1 << 1, BLUE_WRITE = 1 << 2, ALPHA_WRITE = 1 << 3, COLOR_WRITE = RED_WRITE | GREEN_WRITE | BLUE_WRITE | ALPHA_WRITE, DEPTH_WRITE = 1 << 4, DEPTH_TEST = 1 << 5, STENCIL_TEST = 1 << 6, BLENDING = 1 << 8, TRANSPARENCY_DEPTH_SORT = 1 << 9, BACK_FACE_CULLING = 1 << 10, FRONT_FACE_CULLING = 1 << 11, SLOPE_SCALED_DEPTH_BIAS = 1 << 12, GAMMA_CORRECTION = 1 << 13 } |
An enum that specifies the different render flags. More... | |
Public Member Functions | |
RenderFlags () | |
Create a new render flags object with no flags set. More... | |
RenderFlags (Flag flag) | |
Create a new render flags object with the specified flag value initially set. More... | |
RenderFlags (UInt32 newFlags) | |
Create a new render flags object with the specified initial combined flags value. More... | |
operator UInt32 () const | |
Convert this render 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=true) |
Set whether or not the specified flag value is set for this flags object. More... | |
Static Public Member Functions | |
static String | toString (Flag flag) |
Convert the specified flag to human-readable string representation. More... | |
A class that encapsulates different boolean parameters for a rendering operation.
These flags provide boolean information about a rendering state. 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 render flags.
|
inline |
Create a new render flags object with no flags set.
|
inline |
Create a new render flags object with the specified flag value initially set.
|
inline |
Create a new render flags object with the specified initial combined flags value.
|
inline |
Convert this render flags object to an integer value.
This operator is provided so that the RenderFlags 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.
|
static |
Convert the specified flag to human-readable string representation.