HDK
|
#include <Mesh.h>
Public Member Functions | |
MeshStream (const string &name, const string &type, unsigned int index) | |
~MeshStream () | |
void | reserve (size_t elementCount) |
Reserve memory for a given number of elements. More... | |
void | resize (size_t elementCount) |
Resize data to an given number of elements. More... | |
const string & | getName () const |
Get stream name. More... | |
const string & | getType () const |
Get stream attribute name. More... | |
unsigned int | getIndex () const |
Get stream index. More... | |
MeshFloatBuffer & | getData () |
Return the raw float vector. More... | |
const MeshFloatBuffer & | getData () const |
Return the raw float vector. More... | |
template<class T > | |
T & | getElement (size_t index) |
template<class T > | |
const T & | getElement (size_t index) const |
unsigned int | getStride () const |
Get stride between elements. More... | |
void | setStride (unsigned int stride) |
Set stride between elements. More... | |
size_t | getSize () const |
Get the number of elements. More... | |
void | transform (const Matrix44 &matrix) |
Transform elements by a matrix. More... | |
Static Public Member Functions | |
static MeshStreamPtr | create (const string &name, const string &type, unsigned int index=0) |
Create a new mesh stream. More... | |
Static Public Attributes | |
static const string | POSITION_ATTRIBUTE |
static const string | NORMAL_ATTRIBUTE |
static const string | TEXCOORD_ATTRIBUTE |
static const string | TANGENT_ATTRIBUTE |
static const string | BITANGENT_ATTRIBUTE |
static const string | COLOR_ATTRIBUTE |
static const string | GEOMETRY_PROPERTY_ATTRIBUTE |
static const unsigned int | STRIDE_2D = 2 |
static const unsigned int | STRIDE_3D = 3 |
static const unsigned int | STRIDE_4D = 4 |
static const unsigned int | DEFAULT_STRIDE = STRIDE_3D |
Protected Attributes | |
string | _name |
string | _type |
unsigned int | _index |
MeshFloatBuffer | _data |
unsigned int | _stride |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |