#include <gauge3d/graphics/model.h>
Public Types | |
enum | tDynamicFlags { STATIC = 0, VERTEX_POSITION = 1 << 0, VERTEX_TEXCOORD = 1 << 1, INDEX_LIST = 1 << 16 } |
Specifies which properties of the model are dynamic. More... | |
enum | tIndexType { POINTS, LINES, TRIANGLES } |
Specifies how to make geometry out of the indices. More... | |
Public Methods | |
void | SetDefaults () |
Called by the renderer to reset the RenderSet. More... | |
Public Attributes | |
int | mDynamicFlags |
One or more of tDynamicFlags. | |
int | mNumVertices |
Number of elements in each of the arrays. | |
GVector* | mVertices |
Array of vertex positions. | |
GVector* | mNormals |
Array of normal vectors. Must be unit vectors! | |
GVector* | mTexCoords |
Array of texture coordinates. Can be NULL if texturing is not supported. | |
int | mIndexType |
One of the values in tIndexType. | |
int | mNumIndices |
The number of elements in the index array. | |
uint16* | mIndices |
Pointer to an array of indices. |
A RenderSet contains a list of all of the vertices in a GModel. For each vertex, it gives the position, surface normal, and texture coordinates. These lists are all strided arrays and can be interleaved. Interleaving your arrays can increase performance.
The RenderSet also contains a list of indices forming triangles, lines, or points.
|
Specifies which properties of the model are dynamic.
|
|
Specifies how to make geometry out of the indices.
|
|
Called by the renderer to reset the RenderSet.
|