Basic Renderer
|
#include <ModelData.h>
Public Types | |
typedef std::unordered_map< std::string, GeometryDataPtr > | GroupMap |
Public Member Functions | |
ModelData () | |
Constructor. More... | |
ModelData (const std::string &fileName, bool flipT=false, bool flipZ=false) | |
Constructor. More... | |
ModelData (bool flipT=false, bool flipZ=false) | |
Constructor. More... | |
virtual | ~ModelData () |
Virtual destructor. More... | |
virtual ModelData & | load (const std::string &fileName) |
Loads the model from a file. More... | |
virtual GroupMap | getData () const |
Returns the geometry groups. More... | |
bool | getFlipT () |
Returns true if the T axis of texture is flipped. More... | |
bool | getFlipZ () |
Returns true if the Z axis of the geometry is flipped. More... | |
typedef std::unordered_map< std::string, GeometryDataPtr > ModelData::GroupMap |
|
inline |
Constructor.
ModelData::ModelData | ( | const std::string & | fileName, |
bool | flipT = false , |
||
bool | flipZ = false |
||
) |
Constructor.
[in] | fileName | The name of the OBJ file |
[in] | flipT | Flip T axis of texture |
[in] | flipZ | Flip Z axis of the geometry |
ModelData::ModelData | ( | bool | flipT = false , |
bool | flipZ = false |
||
) |
Constructor.
[in] | flipT | Flip T axis of texture |
[in] | flipZ | Flip Z axis of the geometry |
|
virtual |
Virtual destructor.
|
virtual |
Returns the geometry groups.
|
inline |
Returns true if the T axis of texture is flipped.
|
inline |
Returns true if the Z axis of the geometry is flipped.
|
virtual |
Loads the model from a file.
[in] | fileName | The name of the OBJ file |