![]() |
Jopnal Engine
alpha 0.4
Simple Component Based 2D/3D Game Engine
|
#include <Model.hpp>
Public Member Functions | |
| Model () | |
| Constructor. More... | |
| Model (const Mesh &mesh) | |
| Constructor for initializing with a mesh. More... | |
| Model (const Material &material) | |
| Constructor for initializing with a material. More... | |
| Model (const Mesh &mesh, const Material &material) | |
| Constructor for initializing with a mesh and material. More... | |
| Mesh * | getMesh () |
| Get the mesh. More... | |
| const Mesh * | getMesh () const |
| Get the mesh. More... | |
| Model & | setMesh (const Mesh &mesh) |
| Set the mesh. More... | |
| Material * | getMaterial () |
| Get the material. More... | |
| const Material * | getMaterial () const |
| Get the material. More... | |
| Model & | setMaterial (const Material &material) |
| Set the material. More... | |
| bool | isValid () const |
| Check if this model is valid. More... | |
| jop::Model::Model | ( | ) |
Constructor.
| jop::Model::Model | ( | const Mesh & | mesh | ) |
Constructor for initializing with a mesh.
Note that a model is not valid until it has a material also.
| mesh | Mesh to initialize with |
| jop::Model::Model | ( | const Material & | material | ) |
Constructor for initializing with a material.
Note that a model is not valid until it has a mesh also.
| material | Material to initialize with |
| Material* jop::Model::getMaterial | ( | ) |
Get the material.
| const Material* jop::Model::getMaterial | ( | ) | const |
Get the material.
| Mesh* jop::Model::getMesh | ( | ) |
Get the mesh.
| const Mesh* jop::Model::getMesh | ( | ) | const |
Get the mesh.
| bool jop::Model::isValid | ( | ) | const |
Check if this model is valid.
The model is valid if both a valid mesh and material are present.
Set the material.
| material | The new material |
Set the mesh.
| mesh | Reference to the mesh |
1.8.11