Om
1.0.0
A universal framework for multimedia simulation
|
A class that encapsulates the different capabilities that a graphics context can have. More...
#include <omGraphicsContextCapabilities.h>
Public Types | |
enum | Capability { ANISOTROPIC_FILTERING = (UInt64(1) << 0), NON_POWER_OF_2_TEXTURES = (UInt64(1) << 1), FLOAT_TEXTURES = (UInt64(1) << 2), TEXTURE_ARRAYS = (UInt64(1) << 3), TEXTURE_RECTANGLES = (UInt64(1) << 4), RENDER_TO_TEXTURE = (UInt64(1) << 5), MULTIPLE_RENDER_TARGETS = (UInt64(1) << 6), VERTEX_BUFFER_ARRAYS = (UInt64(1) << 7), CONSTANT_BUFFERS = (UInt64(1) << 8), VERTEX_SHADERS = (UInt64(1) << 9), FRAGMENT_SHADERS = (UInt64(1) << 10), GEOMETRY_SHADERS = (UInt64(1) << 11), TESSELATION_SHADERS = (UInt64(1) << 12), PROGRAM_BINARIES = (UInt64(1) << 13), TRANSFORM_FEEDBACK = (UInt64(1) << 14), INSTANCED_RENDERING = (UInt64(1) << 15), UNDEFINED = 0 } |
An enum that specifies the different graphics context capabilities. More... | |
Public Member Functions | |
GraphicsContextCapabilities () | |
Create a new graphics context capabilities object with no capabilities set. More... | |
GraphicsContextCapabilities (Capability capability) | |
Create a new graphics context capabilities object with the specified capability value initially set. More... | |
GraphicsContextCapabilities (UInt64 newCapabilities) | |
Create a new graphics context capabilities object with the specified initial combined capabilities value. More... | |
operator UInt64 () const | |
Convert this graphics context capabilities object to an integer value. More... | |
Bool | isSet (Capability capability) const |
Return whether or not the specified capability is set for this capabilities object. More... | |
void | set (Capability capability, Bool newIsSet) |
Set whether or not the specified capability is set for this capabilities object. More... | |
GraphicsContextCapabilities & | operator|= (Capability capability) |
Set the specified capability to TRUE in this capabilities object. More... | |
GraphicsContextCapabilities & | operator|= (const GraphicsContextCapabilities &newCapabilities) |
Set all of the specified capabilities to TRUE in this capabilities object. More... | |
A class that encapsulates the different capabilities that a graphics context can have.
These capabilities provide boolean information about a certain graphics context. Capabilities are indicated by setting a single bit of a 64-bit unsigned integer to 1.
Enum values for the different capabilities are defined as members of the class. Typically, the user would bitwise-OR the capability enum values together to produce a final set of set capabilities.
An enum that specifies the different graphics context capabilities.
|
inline |
Create a new graphics context capabilities object with no capabilities set.
|
inline |
Create a new graphics context capabilities object with the specified capability value initially set.
|
inline |
Create a new graphics context capabilities object with the specified initial combined capabilities value.
|
inline |
Convert this graphics context capabilities object to an integer value.
This operator is provided so that the GraphicsContextCapabilities object can be used as an integer value for bitwise logical operations.
|
inline |
Return whether or not the specified capability is set for this capabilities object.
|
inline |
Set whether or not the specified capability is set for this capabilities object.
|
inline |
Set the specified capability to TRUE in this capabilities object.
|
inline |
Set all of the specified capabilities to TRUE in this capabilities object.