|
Raylib C++
1.0.0
Encapsulates the raylib library
|
Builder to create a RlModel easily. More...
#include <RlModelBuilder.hpp>


Public Member Functions | |
| RlModelBuilder () | |
| Construct a new ModelBuilder object. More... | |
| RlModelBuilder & | setMesh (const std::shared_ptr< raylib::model::RlMesh > &mesh) |
| Set the mesh. More... | |
| RlModelBuilder & | setMesh (const raylib::model::RlMesh &mesh) |
| Set the mesh. More... | |
| RlModelBuilder & | setModelPath (const std::string &modelPath) |
| Set the model path. More... | |
| RlModelBuilder & | setTexturePath (const std::string &texturePath) |
| Set the texture path. More... | |
| RlModelBuilder & | setPosition (const Vector3f &position) |
| Set the position. More... | |
| RlModelBuilder & | setScale (const Vector3f &scale) |
| Set the scale. More... | |
| RlModelBuilder & | setColor (const RlColor &color) |
| Set the color. More... | |
| raylib::model::RlModel | build () override |
| Build the RlModel. More... | |
| RlModelBuilder | setRotationAxis (const Vector3f &rotationAxis) |
| Set the rotation axis. More... | |
| RlModelBuilder & | setRotationAngle (const float &rotationAngle) |
| Set the rotation angle. More... | |
| RlModelBuilder & | setBoundingBox (const BoundingBox &boundingBox) |
| Set the bouding box of the model. More... | |
| RlModelBuilder & | setTexture (const std::shared_ptr< texture::RlTexture > &texture) |
| Set the texture of the model. More... | |
Builder to create a RlModel easily.
| raylib::builder::RlModelBuilder::RlModelBuilder | ( | ) |
Construct a new ModelBuilder object.
|
overridevirtual |
Build the RlModel.
| BuilderException |
Implements raylib::builder::IBuilder< raylib::model::RlModel >.
| raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setBoundingBox | ( | const BoundingBox & | boundingBox | ) |
Set the bouding box of the model.
| boundingBox | the bounding box |
| raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setColor | ( | const RlColor & | color | ) |
Set the color.
| color | Color of the model |
| raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setMesh | ( | const raylib::model::RlMesh & | mesh | ) |
Set the mesh.
| mesh | the mesh |
| raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setMesh | ( | const std::shared_ptr< raylib::model::RlMesh > & | mesh | ) |
Set the mesh.
| mesh | Mesh of the model |
| raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setModelPath | ( | const std::string & | modelPath | ) |
Set the model path.
| modelPath | Path to the model |
| raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setPosition | ( | const Vector3f & | position | ) |
Set the position.
| position | Position of the model |
| raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setRotationAngle | ( | const float & | rotationAngle | ) |
Set the rotation angle.
| rotationAngle | Rotation angle of the model |
| raylib::builder::RlModelBuilder raylib::builder::RlModelBuilder::setRotationAxis | ( | const Vector3f & | rotationAxis | ) |
Set the rotation axis.
| rotationAxis | the rotation axis |
| raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setScale | ( | const Vector3f & | scale | ) |
Set the scale.
| scale | Scale of the model |
| raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setTexture | ( | const std::shared_ptr< texture::RlTexture > & | texture | ) |
Set the texture of the model.
| texture | the texture |
| raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setTexturePath | ( | const std::string & | texturePath | ) |
Set the texture path.
| texturePath | Path to the texture |
1.8.17