

Public Member Functions | |
| MeshComponent (Entity *parent) | |
| Constructor (default). | |
| MeshComponent (Entity *parent, const std::string &fileName, const vector3df &rotation=vector3df(0, 0, 0), const vector3df &scale=vector3df(1.0f, 1.0f, 1.0f)) | |
| Constructor. | |
| MeshComponent (Entity *parent, IMesh *mesh, const vector3df &rotation=vector3df(0, 0, 0), const vector3df &scale=vector3df(1.0f, 1.0f, 1.0f)) | |
| Constructor. | |
| ~MeshComponent () | |
| Deconstructor. | |
| IMeshSceneNode * | getMeshSceneNode () |
| Returns a direct pointer to the IMeshSceneNode. | |
| IMesh * | getMesh () |
| Returns the current mesh. | |
| void | setMesh (const std::string &fileName) |
| Loads and sets a new mesh to display. fileName Filename of the mesh to load. | |
| void | setMesh (IMesh *mesh) |
| Sets a new mesh to display. | |
Static Public Member Functions | |
| static MeshComponent * | refFactory (Entity *parent) |
| Will be used to instanciate objects of this class. | |
| static MeshComponent * | refFactory (Entity *parent, const std::string &fileName, const vector3df &rotation, const vector3df &scale) |
| Will be used to instanciate objects of this class. | |
Definition at line 26 of file MeshComponent.h.
| MeshComponent::MeshComponent | ( | Entity * | parent | ) |
Constructor (default).
| parent | The parent entity to which the component should be added. |
Definition at line 23 of file MeshComponent.cpp.
| MeshComponent::MeshComponent | ( | Entity * | parent, | |
| const std::string & | fileName, | |||
| const vector3df & | rotation = vector3df(0, 0, 0), |
|||
| const vector3df & | scale = vector3df(1.0f, 1.0f, 1.0f) | |||
| ) |
Constructor.
| parent | The parent entity to which the component should be added. | |
| fileName | Filename of the mesh to load. | |
| rotation | Initial rotation of the mesh. | |
| scale | Initial scale of the mesh. |
Definition at line 40 of file MeshComponent.cpp.
| MeshComponent::MeshComponent | ( | Entity * | parent, | |
| IMesh * | mesh, | |||
| const vector3df & | rotation = vector3df(0, 0, 0), |
|||
| const vector3df & | scale = vector3df(1.0f, 1.0f, 1.0f) | |||
| ) |
Constructor.
| parent | The parent entity to which the component should be added. | |
| mesh | Pointer to the loaded animated mesh to be displayed. | |
| rotation | Initial rotation of the mesh. | |
| scale | Initial scale of the mesh. |
Definition at line 59 of file MeshComponent.cpp.
| MeshComponent::~MeshComponent | ( | ) |
| IMesh * MeshComponent::getMesh | ( | ) |
Returns the current mesh.
Definition at line 103 of file MeshComponent.cpp.
| IMeshSceneNode * MeshComponent::getMeshSceneNode | ( | ) |
Returns a direct pointer to the IMeshSceneNode.
Definition at line 97 of file MeshComponent.cpp.
| MeshComponent * MeshComponent::refFactory | ( | Entity * | parent, | |
| const std::string & | fileName, | |||
| const vector3df & | rotation, | |||
| const vector3df & | scale | |||
| ) | [static] |
Will be used to instanciate objects of this class.
Definition at line 90 of file MeshComponent.cpp.
| MeshComponent * MeshComponent::refFactory | ( | Entity * | parent | ) | [static] |
Will be used to instanciate objects of this class.
Reimplemented from SceneComponent.
Definition at line 84 of file MeshComponent.cpp.
| void MeshComponent::setMesh | ( | IMesh * | mesh | ) |
Sets a new mesh to display.
| mesh | Pointer to the loaded animated mesh to be displayed. |
Definition at line 117 of file MeshComponent.cpp.
| void MeshComponent::setMesh | ( | const std::string & | fileName | ) |
Loads and sets a new mesh to display. fileName Filename of the mesh to load.
Definition at line 109 of file MeshComponent.cpp.
1.5.8