|
Basic Renderer
|
Loads and processes OBJ models and materials. More...
#include <OBJLoader.h>
Classes | |
| struct | FaceData |
| struct | VertexData |
Public Types | |
| typedef std::unordered_map< std::string, MaterialData > | MaterialMap |
Public Member Functions | |
| OBJLoader (obj::obj_parser::flags_type flags) | |
| Constructor. More... | |
| OBJLoader (ModelData *data, obj::obj_parser::flags_type flags) | |
| Constructor. More... | |
| virtual | ~OBJLoader () |
| Virtual destructor. More... | |
| bool | load (std::istream &istream) |
| Loads the model data from an input stream. More... | |
| void | createFaceNormals () |
| Creates the normal vectors of the face. More... | |
| void | createVertexNormals () |
| Creates the normal vectors of the vertex. More... | |
| ModelData::GroupMap | getData () |
| Returns the geometry groups. More... | |
Static Public Member Functions | |
| static MaterialData | loadMaterial (const std::string &fileName, const std::string &materialName) |
| Loads an obj material. More... | |
Loads and processes OBJ models and materials.
| typedef std::unordered_map< std::string, MaterialData > OBJLoader::MaterialMap |
|
inline |
Constructor.
| [in] | flags |
|
inline |
Constructor.
| [in] | data | The underlying data of the model |
| [in] | flags |
|
inlinevirtual |
Virtual destructor.
| void OBJLoader::createFaceNormals | ( | ) |
Creates the normal vectors of the face.
| void OBJLoader::createVertexNormals | ( | ) |
Creates the normal vectors of the vertex.
|
inline |
Returns the geometry groups.
| bool OBJLoader::load | ( | std::istream & | istream | ) |
Loads the model data from an input stream.
| [in] | istream |
|
static |
Loads an obj material.
| [in] | fileName | File name including extension |
| [in] | materialName | Name of the material |