|
| MeshLoader (MeshStorage *mesh) |
|
int | getVertexTriangleSize () const |
|
int | getNormalTriangleSize () const |
|
int | getTextureTriangleSize () const |
|
int * | getVertexIndices () |
|
const int * | getVertexIndices () const |
|
int * | getNormalIndices () |
|
const int * | getNormalIndices () const |
|
int * | getColorIndices () |
|
const int * | getColorIndices () const |
|
int * | getTextureCoordinateIndices () |
|
const int * | getTextureCoordinateIndices () const |
|
void | setGroupName (const uint32 i, const std::string &group_name) |
|
virtual void | loadModel (const std::string &filename, bool insertDefaultMaterial=true, const MeshMaterialParams &defaultMaterial=MeshMaterialParams()) |
|
template<class Functor > |
void | forEachGroup (Functor functor) const |
|
template<class Functor > |
void | forEachGroup (Functor functor) |
|
int | getNumVertices () const |
|
int | getNumNormals () const |
|
int | getNumColors () const |
|
int | getNumTextureCoordinates () const |
|
int | getNumTriangles () const |
|
int | getNumGroups () const |
|
float * | getVertexData () |
|
const float * | getVertexData () const |
|
float * | getNormalData () |
|
const float * | getNormalData () const |
|
unsigned char * | getColorData () |
|
const unsigned char * | getColorData () const |
|
float * | getTextureCoordinateData () |
|
const float * | getTextureCoordinateData () const |
|
int | getVertexStride () const |
|
int | getNormalStride () const |
|
int | getColorStride () const |
|
int | getTextureCoordinateStride () const |
|
const float * | getBBoxMin () const |
|
const float * | getBBoxMax () const |
|
void | updateBBox () |
|
const std::string & | getMaterialLibraryName () const |
|
MeshGroup & | getMeshGroup (const std::string &group_name) |
|
const MeshGroup & | getMeshGroup (const std::string &group_name) const |
|
size_t | getMaterialCount () const |
|
void | setMeshMaterialParams (int i, const MeshMaterialParams ¶ms) |
|
MeshMaterialParams & | getMeshMaterialParams (int i) |
|
const MeshMaterialParams & | getMeshMaterialParams (int i) const |
|
void | setMeshGrouping (MeshGrouping grouping) |
|
MeshGrouping | getMeshGrouping () const |
|
void | loadFromObj (const std::string &filename, bool insertDefaultMaterial, const MeshMaterialParams &defaultMaterial) |
|
void | loadMaterials (const std::string &material_filename) |
|
void | loadFromPly (const std::string &filename, bool insertDefaultMaterial, const MeshMaterialParams &defaultMaterial) |
|
|
virtual void | preProcess () |
|
virtual void | allocateData () |
|
virtual void | startWritingData () |
|
virtual void | postProcess () |
|
virtual void | finishWritingData () |
|
void | setVertexData (float *vertex_data) |
|
void | setNormalData (float *normal_data) |
|
void | setColorData (unsigned char *color_data) |
|
void | setTextureCoordinateData (float *texture_coordinate_data) |
|
void | setMaterialIndices (int *material_indices) |
|
void | setVertexStride (int vertex_stride) |
|
void | setNormalStride (int normal_stride) |
|
void | setColorStride (int color_stride) |
|
void | setTextureCoordinateStride (int texture_coordinate_stride) |
|
void | setVertexIndexStride (int index_stride) |
|
void | setNormalIndexStride (int index_stride) |
|
void | setColorIndexStride (int index_stride) |
|
void | setTextureIndexStride (int index_stride) |
|
const std::string & | getFilename () const |
|
const std::string & | getPathName () const |
|
void | computeAabb () |
|
void MeshLoader::startWritingData |
( |
| ) |
|
|
protectedvirtual |
Call this before writing any data to the mesh, to set up correct pointer values to write to for vertex_data, normal_data, etc., as well as vertex_indices, normal_indices, etc. for each of the groups.
Call finishWritingData() when done.
Implements MeshBase.