|
Raylib C++
1.0.0
Encapsulates the raylib library
|
Encapsulation of the raylib Model. More...
#include <RlModel.hpp>

Public Member Functions | |
| RlModel (const std::string &fileName) | |
| Construct a new RlModel object from a file. More... | |
| RlModel (const std::string &fileName, const std::string &textureName) | |
| Construct a new RlModel object from a file with a custom texture. More... | |
| RlModel (const std::shared_ptr< RlMesh > &mesh) | |
| Construct a new RlModel object from a mesh. More... | |
| RlModel (const RlMesh &mesh) | |
| Construct a new RlModel object from a mesh. More... | |
| RlModel (const RlModel &model) | |
| Copy constructor (create a copy of the raylib Model) More... | |
| RlModel & | operator= (const RlModel &model) |
| Assignment operator (Create a copy of the raylib Model) More... | |
| ~RlModel () | |
| Destroy the RlModel object. More... | |
| const Vector3f & | getPosition () const |
| Get the model position. More... | |
| void | setPosition (const Vector3f &position) |
| Set the model position. More... | |
| void | setPosition (const float &x, const float &y, const float &z) |
| Set the model position. More... | |
| const Vector3f & | getScale () const |
| Get the model scale. More... | |
| void | setScale (const Vector3f &scale) |
| Set the model scale. More... | |
| void | setScale (const float &x, const float &y, const float &z) |
| Set the model scale. More... | |
| const RlColor & | getColor () const |
| Get the model color. More... | |
| void | setColor (const RlColor &color) |
| Set the model color. More... | |
| const Vector3f & | getRotationAxis () const |
| Get the model rotation axis. More... | |
| void | setRotationAxis (const Vector3f &rotationAxis) |
| Set the model rotation axis. More... | |
| void | setRotationAxis (const float &x, const float &y, const float &z) |
| Set the model rotation axis. More... | |
| const float & | getRotationAngle () const |
| Get the model rotation angle. More... | |
| void | setRotationAngle (float rotationAngle) |
| Set the model rotation angle. More... | |
| const BoundingBox & | getBoundingBox () const |
| Get the model bounding box. More... | |
| void | setBoundingBox (const BoundingBox &boundingBox) |
| Set the model bounding box (will change the base bounding box) More... | |
| const BoundingBox & | getBaseBoundingBox () const |
| Get the model bounding box at the start. More... | |
| BoundingBox | getDefaultBoundingBox () const |
| Get the model bouding box (will call GetModelBoudingBox) More... | |
| const Model & | getModel () const |
| Get the raylib model. More... | |
| const std::shared_ptr< texture::RlTexture > & | getTexture () const |
| Get the texture linked to the model (can be null) More... | |
| void | setMaterialTexture (const std::shared_ptr< texture::RlTexture > &texture) |
| Set the material texture of the model (Default index 0 and type MATERIAL_MAP_DIFFUSE) More... | |
| void | setMaterialTexture (const std::shared_ptr< texture::RlTexture > &texture, const int &materialIndex) |
| Set the material texture of the model (Default type to MATERIAL_MAP_DIFFUSE) More... | |
| void | setMaterialTexture (const std::shared_ptr< texture::RlTexture > &texture, const int &materialIndex, const MaterialMapIndex &type) |
| Set the material texture of the model. More... | |
| void | setMeshMaterial (const int &meshId, const int &materialId) |
| Set material for a mesh. More... | |
Encapsulation of the raylib Model.
|
explicit |
Construct a new RlModel object from a file.
| fileName | the file name |
|
explicit |
Construct a new RlModel object from a file with a custom texture.
| fileName | the file name |
| textureName | the texture name |

|
explicit |
Construct a new RlModel object from a mesh.
| mesh | the mesh |
|
explicit |
Construct a new RlModel object from a mesh.
| mesh | the mesh |

| raylib::model::RlModel::RlModel | ( | const RlModel & | model | ) |
Copy constructor (create a copy of the raylib Model)
| model | the model |
| raylib::model::RlModel::~RlModel | ( | ) |
Destroy the RlModel object.
| const BoundingBox & raylib::model::RlModel::getBaseBoundingBox | ( | ) | const |
Get the model bounding box at the start.
| const BoundingBox & raylib::model::RlModel::getBoundingBox | ( | ) | const |
Get the model bounding box.
| const RlColor & raylib::model::RlModel::getColor | ( | ) | const |
Get the model color.

| BoundingBox raylib::model::RlModel::getDefaultBoundingBox | ( | ) | const |
Get the model bouding box (will call GetModelBoudingBox)
| const Model & raylib::model::RlModel::getModel | ( | ) | const |
Get the raylib model.

| const Vector3f & raylib::model::RlModel::getPosition | ( | ) | const |
Get the model position.

| const float & raylib::model::RlModel::getRotationAngle | ( | ) | const |
Get the model rotation angle.

| const Vector3f & raylib::model::RlModel::getRotationAxis | ( | ) | const |
Get the model rotation axis.

| const Vector3f & raylib::model::RlModel::getScale | ( | ) | const |
Get the model scale.

| const std::shared_ptr< raylib::texture::RlTexture > & raylib::model::RlModel::getTexture | ( | ) | const |
Get the texture linked to the model (can be null)
| raylib::model::RlModel & raylib::model::RlModel::operator= | ( | const RlModel & | model | ) |
Assignment operator (Create a copy of the raylib Model)
| model | the model |
| void raylib::model::RlModel::setBoundingBox | ( | const BoundingBox & | boundingBox | ) |
Set the model bounding box (will change the base bounding box)
| boundingBox | the bounding box |
| void raylib::model::RlModel::setColor | ( | const RlColor & | color | ) |
Set the model color.
| color | the color |
| void raylib::model::RlModel::setMaterialTexture | ( | const std::shared_ptr< texture::RlTexture > & | texture | ) |
Set the material texture of the model (Default index 0 and type MATERIAL_MAP_DIFFUSE)
| texture | the texture |

| void raylib::model::RlModel::setMaterialTexture | ( | const std::shared_ptr< texture::RlTexture > & | texture, |
| const int & | materialIndex | ||
| ) |
Set the material texture of the model (Default type to MATERIAL_MAP_DIFFUSE)
| texture | the texture |
| materialIndex | the material index to set the texture |
| void raylib::model::RlModel::setMaterialTexture | ( | const std::shared_ptr< texture::RlTexture > & | texture, |
| const int & | materialIndex, | ||
| const MaterialMapIndex & | type | ||
| ) |
Set the material texture of the model.
| texture | the texture |
| materialIndex | the material index to set the texture |
| type | the type of the texture (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR ...) |
| void raylib::model::RlModel::setMeshMaterial | ( | const int & | meshId, |
| const int & | materialId | ||
| ) |
Set material for a mesh.
| meshId | the mesh id |
| materialId | the material id |
| void raylib::model::RlModel::setPosition | ( | const float & | x, |
| const float & | y, | ||
| const float & | z | ||
| ) |
Set the model position.
| x | the x position |
| y | the y position |
| z | the z position |
| void raylib::model::RlModel::setPosition | ( | const Vector3f & | position | ) |
Set the model position.
| position | the position |
| void raylib::model::RlModel::setRotationAngle | ( | float | rotationAngle | ) |
Set the model rotation angle.
| rotationAngle | the rotation angle |
| void raylib::model::RlModel::setRotationAxis | ( | const float & | x, |
| const float & | y, | ||
| const float & | z | ||
| ) |
Set the model rotation axis.
| x | the x rotation axis |
| y | the y rotation axis |
| z | the z rotation axis |
| void raylib::model::RlModel::setRotationAxis | ( | const Vector3f & | rotationAxis | ) |
Set the model rotation axis.
| rotationAxis | the rotation axis |
| void raylib::model::RlModel::setScale | ( | const float & | x, |
| const float & | y, | ||
| const float & | z | ||
| ) |
Set the model scale.
| x | the x scale |
| y | the y scale |
| z | the z scale |
| void raylib::model::RlModel::setScale | ( | const Vector3f & | scale | ) |
Set the model scale.
| scale | the scale |
1.8.17