Om
1.0.0
A universal framework for multimedia simulation
|
A class that specifies how an attribute buffer should be used. More...
#include <omGraphicsBufferUsage.h>
Public Types | |
enum | Enum { STATIC = 1, DYNAMIC = 2, STREAM = 3 } |
An enum type which represents the usage for a hardware attribute buffer. More... | |
Public Member Functions | |
BufferUsage (Enum newUsage) | |
Create a new attribute buffer usage with the specified usage enum value. More... | |
operator Enum () const | |
Convert this hardware attribute buffer usage to an enum value. More... | |
String | toString () const |
Return a string representation of the hardware attribute buffer usage. More... | |
operator String () const | |
Convert this hardware attribute buffer usage into a string representation. More... | |
A class that specifies how an attribute buffer should be used.
The usage specified here is used as a hint to the GPU to how the hardware attribute buffer is handled. The usage hints at how often a buffer will be updated and used to draw.
An enum type which represents the usage for a hardware attribute buffer.
|
inline |
Create a new attribute buffer usage with the specified usage enum value.
|
inline |
Convert this hardware attribute buffer usage to an enum value.
String om::graphics::buffers::BufferUsage::toString | ( | ) | const |
Return a string representation of the hardware attribute buffer usage.
|
inline |
Convert this hardware attribute buffer usage into a string representation.