#include <VertexFormat.h>
Public Member Functions | |
| Element () | |
| Element (Usage usage, unsigned int size) | |
| bool | operator== (const Element &e) const |
| bool | operator!= (const Element &e) const |
Public Attributes | |
| Usage | usage |
| unsigned int | size |
Defines a single element within a vertex format.
All vertex elements are assumed to be of type float, but can have a varying number of float values (1-4), which is represented by the size attribute. Additionally, vertex elements are assumed to be tightly packed.
Constructor.
| gameplay::VertexFormat::Element::Element | ( | Usage | usage, |
| unsigned int | size | ||
| ) |
Constructor.
| usage | The vertex element usage semantic. |
| size | The number of float values in the vertex element. |
| bool gameplay::VertexFormat::Element::operator!= | ( | const Element & | e | ) | const |
Compares to vertex elements for inequality.
| e | The vertex element to compare. |
| bool gameplay::VertexFormat::Element::operator== | ( | const Element & | e | ) | const |
Compares two vertex elements for equality.
| e | The vertex element to compare. |
| unsigned int gameplay::VertexFormat::Element::size |
The number of values in the vertex element.
The vertex element usage semantic.
1.7.6.1