|
Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
|
#include <VertexDescriptor.h>
Public Member Functions | |
| VertexDescriptor () | |
| void | Clear () |
| bool | AddElement (ElementType type) |
| VertexElement | GetElement (int index) |
| int | GetTotalElements () |
| int | GetStride () const |
Represents the different elements contained in a single vertex. For example position, normal, tex coord, ...
| Ult::VertexDescriptor::VertexDescriptor | ( | ) |
VertexDescriptor constructor.
| bool Ult::VertexDescriptor::AddElement | ( | ElementType | type | ) |
Add the input element type to the internal list.
| void Ult::VertexDescriptor::Clear | ( | ) |
Clear the internal list of element types.
| VertexElement Ult::VertexDescriptor::GetElement | ( | int | index | ) |
Returns the element from the internal list at the given index.
| int Ult::VertexDescriptor::GetStride | ( | ) | const |
Get the size of 1 vertex containing these elements in bytes.
| int Ult::VertexDescriptor::GetTotalElements | ( | ) |
Get the size of the element list.