Neo
0.5.0
Developer Documentation
|
The Mesh class contains the implementation of a generic (i.e. file format agnostic) 3D mesh with support for armature animation, material animation and multitexturing. More...
#include <Mesh.h>
Public Member Functions | |
Mesh (void) | |
~Mesh (void) | |
void | destroy (void) |
Destroys the mesh instance and frees all allocated memory. More... | |
void | clear (void) |
void | clearAnimsRanges (void) |
AnimRange * | allocAnimsRanges (unsigned int size) |
unsigned int | getAnimsRangesNumber (void) |
Returns the number of animation ranges. More... | |
AnimRange * | getAnimsRanges (void) |
Returns the array of animation ranges. More... | |
void | setArmatureAnimRef (ArmatureAnimRef *armatureAnimRef) |
Sets the armature reference. More... | |
ArmatureAnimRef * | getArmatureAnimRef (void) |
Returns the current armature animation reference. More... | |
ArmatureAnim * | getArmatureAnim (void) |
void | setTexturesAnimRef (TexturesAnimRef *texturesAnimRef) |
TexturesAnimRef * | getTexturesAnimRef (void) |
TexturesAnim * | getTexturesAnim (void) |
void | setMaterialsAnimRef (MaterialsAnimRef *materialsAnimRef) |
Sets the material animation reference. More... | |
MaterialsAnimRef * | getMaterialsAnimRef (void) |
Returns the current material animation reference. More... | |
MaterialsAnim * | getMaterialsAnim (void) |
void | clearArmature (void) |
Armature * | createArmature (void) |
Armature * | getArmature (void) |
void | allocTextures (unsigned int size) |
void | clearTextures (void) |
Texture * | addNewTexture (TextureRef *texRef) |
unsigned int | getTexturesNumber (void) |
Texture * | getTexture (unsigned int id) |
void | allocMaterials (unsigned int size) |
Allocates enough memory for all materials. More... | |
void | clearMaterials (void) |
Deletes all contained materials. More... | |
Material * | addNewMaterial (void) |
Creates a new Material, adds it to the internal array and returns it. More... | |
unsigned int | getMaterialsNumber (void) |
Returns the number of currently active materials. More... | |
Material * | getMaterial (unsigned int id) |
Retrieves a specific material from the internal array. More... | |
void | clearSubMeshs (void) |
SubMesh * | allocSubMeshs (unsigned int size) |
unsigned int | getSubMeshsNumber (void) |
SubMesh * | getSubMeshs (void) |
SubMesh * | getSubMesh (size_t idx) |
void | updateBoundingBox (void) |
Recalculates the bounding box to contain all vertices of the mesh. More... | |
Box3d * | getBoundingBox (void) |
Returns the current bounding box. More... | |
Static Public Member Functions | |
static Mesh * | getNew (void) |
Creates a new Mesh instance. More... | |
The Mesh class contains the implementation of a generic (i.e. file format agnostic) 3D mesh with support for armature animation, material animation and multitexturing.
Neo::Mesh::Mesh | ( | void | ) |
Neo::Mesh::~Mesh | ( | void | ) |
Material* Neo::Mesh::addNewMaterial | ( | void | ) |
Texture* Neo::Mesh::addNewTexture | ( | TextureRef * | texRef | ) |
AnimRange* Neo::Mesh::allocAnimsRanges | ( | unsigned int | size | ) |
void Neo::Mesh::allocMaterials | ( | unsigned int | size | ) |
Allocates enough memory for all materials.
size | The number of materials to allocate. |
SubMesh* Neo::Mesh::allocSubMeshs | ( | unsigned int | size | ) |
void Neo::Mesh::allocTextures | ( | unsigned int | size | ) |
void Neo::Mesh::clear | ( | void | ) |
void Neo::Mesh::clearAnimsRanges | ( | void | ) |
void Neo::Mesh::clearArmature | ( | void | ) |
void Neo::Mesh::clearMaterials | ( | void | ) |
Deletes all contained materials.
void Neo::Mesh::clearSubMeshs | ( | void | ) |
void Neo::Mesh::clearTextures | ( | void | ) |
Armature* Neo::Mesh::createArmature | ( | void | ) |
void Neo::Mesh::destroy | ( | void | ) |
Destroys the mesh instance and frees all allocated memory.
|
inline |
Returns the array of animation ranges.
|
inline |
Returns the number of animation ranges.
|
inline |
ArmatureAnim* Neo::Mesh::getArmatureAnim | ( | void | ) |
|
inline |
Returns the current armature animation reference.
|
inline |
|
inline |
Retrieves a specific material from the internal array.
id | The index to the array. |
MaterialsAnim* Neo::Mesh::getMaterialsAnim | ( | void | ) |
|
inline |
Returns the current material animation reference.
|
inline |
Returns the number of currently active materials.
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
TexturesAnim* Neo::Mesh::getTexturesAnim | ( | void | ) |
|
inline |
|
inline |
|
inline |
Sets the armature reference.
armatureAnimRef | The new armature animation reference. |
|
inline |
Sets the material animation reference.
armatureAnimRef | The new material animation reference. |
|
inline |
void Neo::Mesh::updateBoundingBox | ( | void | ) |
Recalculates the bounding box to contain all vertices of the mesh.