Om
1.0.0
A universal framework for multimedia simulation
|
A class that specifies how a vertex attribute is semantically used for rendering. More...
#include <omGraphicsVertexUsage.h>
Public Types | |
enum | Enum { UNDEFINED = 0, POSITION = 1, NORMAL = 2, BINORMAL = 3, TANGENT = 4, COLOR = 5, TEXTURE_COORDINATE = 6, BONE_INDEX = 7, BONE_WEIGHT = 8 } |
An enum type which represents a type of vertex attribute usage. More... | |
Public Member Functions | |
VertexUsage () | |
Create a new undefined vertex usage. More... | |
VertexUsage (Enum newUsage) | |
Create a new vertex usage with the specified vertex attribute usage enum value. More... | |
VertexUsage (Enum newUsage, Index newIndex) | |
Create a new vertex usage with the specified usage enum value and index. More... | |
operator Enum () const | |
Convert this vertex usage to an enum value. More... | |
Bool | operator== (const VertexUsage::Enum otherEnum) const |
Return whether or not this vertex usage is the same as another. More... | |
Bool | operator== (const VertexUsage &other) const |
Return whether or not this vertex usage is the same as another. More... | |
Bool | operator!= (const VertexUsage::Enum otherEnum) const |
Return whether or not this vertex usage is different than another. More... | |
Bool | operator!= (const VertexUsage &other) const |
Return whether or not this vertex usage is different than another. More... | |
Bool | isValidType (const AttributeType &type) const |
Return whether or not the specified vertex attribute type is a valid type for this usage. More... | |
Index | getIndex () const |
Return an index for the vertex usage. More... | |
void | setIndex (Index newIndex) |
Return an index for the vertex usage. More... | |
String | toString () const |
Return a string representation of the vertex usage. More... | |
operator String () const | |
Convert this vertex usage into a string representation. More... | |
A class that specifies how a vertex attribute is semantically used for rendering.
Each instance allows the user to specify an enum value indicating the type of usage and also an integral index for that usage. For example, this allows the user to specify multiple texture coordinate usages.
An enum type which represents a type of vertex attribute usage.
|
inline |
Create a new undefined vertex usage.
|
inline |
Create a new vertex usage with the specified vertex attribute usage enum value.
Create a new vertex usage with the specified usage enum value and index.
|
inline |
Convert this vertex usage to an enum value.
|
inline |
Return whether or not this vertex usage is the same as another.
This operator does not compare any usage index, just the usage type.
|
inline |
Return whether or not this vertex usage is the same as another.
|
inline |
Return whether or not this vertex usage is different than another.
This operator does not compare any usage index, just the usage type.
|
inline |
Return whether or not this vertex usage is different than another.
Bool om::graphics::buffers::VertexUsage::isValidType | ( | const AttributeType & | type | ) | const |
Return whether or not the specified vertex attribute type is a valid type for this usage.
|
inline |
Return an index for the vertex usage.
This value allows the user to keep track of multiple distinct usages separately (i.e. for multiple lights) that have the same usage type.
|
inline |
Return an index for the vertex usage.
This value allows the user to keep track of multiple distinct usages separately (i.e. for multiple lights) that have the same usage type.
String om::graphics::buffers::VertexUsage::toString | ( | ) | const |
Return a string representation of the vertex usage.
|
inline |
Convert this vertex usage into a string representation.