Bubba-3D  0.9.0
Awesome game engine!
Public Member Functions | List of all members
Mesh Class Reference

#include <Mesh.h>

Public Member Functions

void loadMesh (const std::string &fileName)
 
std::vector< Triangle * > getTriangles ()
 
AABBgetAABB ()
 
Sphere getSphere ()
 
std::vector< Chunk > * getChunks ()
 
std::vector< Material > * getMaterials ()
 
bool hasAnimations ()
 
std::vector< chag::float4x4 > getBoneTransforms (float totalElapsedTimeInSeconds)
 

Detailed Description

A class for containing all triangle and material of a mesh.

Mesh mesh;
mesh.loadMesh("url/to/meshfile");

Definition at line 45 of file Mesh.h.

Member Function Documentation

AABB * Mesh::getAABB ( )

NOTE: The AABB has not been transformed.

Returns
The AABB of the mesh.

Definition at line 299 of file Mesh.cpp.

std::vector< float4x4 > Mesh::getBoneTransforms ( float  totalElapsedTimeInSeconds)

Calculates the transform to be applied to each bone at the current time.

Parameters
totalElapsedTimeInSecondsThe time since the application was started
Returns
A vector containing the transforms of each bone. The index in the vector corresponds to the bones index. The index of a bone can be found in boneNameToIndexMapping.

Definition at line 341 of file Mesh.cpp.

Sphere Mesh::getSphere ( )

NOTE: The sphere has not been transformed.

Returns
The sphere surrounding the object.

Definition at line 238 of file Mesh.cpp.

std::vector< Triangle * > Mesh::getTriangles ( )

NOTE: The triangles have not been transformed.

Returns
A list of all the triangles of the mesh.

Definition at line 325 of file Mesh.cpp.


The documentation for this class was generated from the following files: