#include <mesh.h>
Mesh::Mesh | ( | const char * | id | ) |
Constructor.
Mesh::~Mesh | ( | ) | [virtual] |
Destructor.
void Mesh::Set | ( | vector2 * | coords, | |
vector4 * | colors, | |||
Primitive * | primitives, | |||
ushort_t | vertices_count, | |||
ushort_t | primitives_count, | |||
ulong_t | data_size | |||
) |
vector2 * Mesh::GetCoords | ( | ) | [inline] |
vector4 * Mesh::GetColors | ( | ) | [inline] |
Primitive * Mesh::GetPrimitives | ( | ) | [inline] |
ushort_t Mesh::GetVerticesCount | ( | ) | [inline] |
ushort_t Mesh::GetPrimitivesCount | ( | ) | [inline] |
ushort_t Mesh::GetTrianglesCount | ( | ) | [inline] |
byte_t Mesh::GetComponents | ( | ) | [inline] |
bool Mesh::TestComponents | ( | byte_t | mask | ) | [inline] |
ulong_t Mesh::GetDataSize | ( | ) | [virtual] |
Return an estimated byte size of the resource data. This is only used for statistics.
Reimplemented from Resource.
void Mesh::Clear | ( | ) | [protected, virtual] |
Clears all resource data.
Reimplemented from SerializedResource.
bool Mesh::Deserialize | ( | Serializer & | serializer, | |
bool | first | |||
) | [protected, virtual] |
Recursively deserialize all children.
Reimplemented from Root.
bool Mesh::ReadVertices | ( | Serializer & | serializer | ) | [protected] |
bool Mesh::ReadPrimitives | ( | Serializer & | serializer | ) | [protected] |
byte_t Mesh::components [protected] |
vector2* Mesh::coords [protected] |
vector4* Mesh::colors [protected] |
Primitive* Mesh::primitives [protected] |
ushort_t Mesh::vertices_count [protected] |
ushort_t Mesh::primitives_count [protected] |
ushort_t Mesh::triangles_count [protected] |
ulong_t Mesh::data_size [protected] |