#include <Mesh.h>
Public Methods | |
Mesh (const Model &model) | |
Create a new empty Mesh belonging to the specified Model. | |
const char * | initialize (const char *ptr) |
Initialize the Mesh using the (raw) data from the Milkshape model. | |
const Model & | getModel () const |
Accessor for the Model of this Mesh. | |
bool | hasMaterial () const |
Does this Mesh have a material? | |
const Material & | getMaterial () const |
If Mesh#hasMaterial, return the Material. | |
const std::vector< const Triangle * > & | getTriangles () const |
The Triangles for the faces of this Mesh. | |
Private Methods | |
Mesh (const Mesh ©) | |
Do not allow this Mesh to be copied. | |
Mesh & | operator= (const Mesh &rhs) |
Do not allow this Mesh to be copied. | |
Private Attributes | |
int | m_materialIndex |
The index of the Material used to draw the Triangles in this Mesh. | |
std::vector< const Triangle * > | m_triangles |
The Triangles representing this Mesh. | |
const Model & | m_model |
The Model to which this Mesh belongs. | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Mesh &mesh) |
Insertion operator for this Mesh into an output stream. |
|
Initialize the Mesh using the (raw) data from the Milkshape model. The method reads the material index, vertex count and vertex indices and returns the (raw) pointer past the end of the mesh. |
|
Insertion operator for this Mesh into an output stream.
|