Raylib C++  1.0.0
Encapsulates the raylib library
Public Member Functions | List of all members
raylib::builder::RlModelBuilder Class Reference

Builder to create a RlModel easily. More...

#include <RlModelBuilder.hpp>

Inheritance diagram for raylib::builder::RlModelBuilder:
Inheritance graph
Collaboration diagram for raylib::builder::RlModelBuilder:
Collaboration graph

Public Member Functions

 RlModelBuilder ()
 Construct a new ModelBuilder object. More...
 
RlModelBuildersetMesh (const std::shared_ptr< raylib::model::RlMesh > &mesh)
 Set the mesh. More...
 
RlModelBuildersetMesh (const raylib::model::RlMesh &mesh)
 Set the mesh. More...
 
RlModelBuildersetModelPath (const std::string &modelPath)
 Set the model path. More...
 
RlModelBuildersetTexturePath (const std::string &texturePath)
 Set the texture path. More...
 
RlModelBuildersetPosition (const Vector3f &position)
 Set the position. More...
 
RlModelBuildersetScale (const Vector3f &scale)
 Set the scale. More...
 
RlModelBuildersetColor (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...
 
RlModelBuildersetRotationAngle (const float &rotationAngle)
 Set the rotation angle. More...
 
RlModelBuildersetBoundingBox (const BoundingBox &boundingBox)
 Set the bouding box of the model. More...
 
RlModelBuildersetTexture (const std::shared_ptr< texture::RlTexture > &texture)
 Set the texture of the model. More...
 

Detailed Description

Builder to create a RlModel easily.

Constructor & Destructor Documentation

◆ RlModelBuilder()

raylib::builder::RlModelBuilder::RlModelBuilder ( )

Construct a new ModelBuilder object.

Member Function Documentation

◆ build()

raylib::model::RlModel raylib::builder::RlModelBuilder::build ( )
overridevirtual

Build the RlModel.

Exceptions
BuilderException
Returns
the RlModel

Implements raylib::builder::IBuilder< raylib::model::RlModel >.

◆ setBoundingBox()

raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setBoundingBox ( const BoundingBox &  boundingBox)

Set the bouding box of the model.

Parameters
boundingBoxthe bounding box
Returns
the ModelBuilder object

◆ setColor()

raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setColor ( const RlColor color)

Set the color.

Parameters
colorColor of the model
Returns
the ModelBuilder object

◆ setMesh() [1/2]

raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setMesh ( const raylib::model::RlMesh mesh)

Set the mesh.

Parameters
meshthe mesh
Returns
the ModelBuilder object

◆ setMesh() [2/2]

raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setMesh ( const std::shared_ptr< raylib::model::RlMesh > &  mesh)

Set the mesh.

Parameters
meshMesh of the model
Returns
the ModelBuilder object

◆ setModelPath()

raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setModelPath ( const std::string &  modelPath)

Set the model path.

Parameters
modelPathPath to the model
Returns
the ModelBuilder object

◆ setPosition()

raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setPosition ( const Vector3f position)

Set the position.

Parameters
positionPosition of the model
Returns
the ModelBuilder object

◆ setRotationAngle()

raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setRotationAngle ( const float &  rotationAngle)

Set the rotation angle.

Parameters
rotationAngleRotation angle of the model
Returns
the ModelBuilder object

◆ setRotationAxis()

raylib::builder::RlModelBuilder raylib::builder::RlModelBuilder::setRotationAxis ( const Vector3f rotationAxis)

Set the rotation axis.

Parameters
rotationAxisthe rotation axis
Returns
the ModelBuilder object

◆ setScale()

raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setScale ( const Vector3f scale)

Set the scale.

Parameters
scaleScale of the model
Returns
the ModelBuilder object

◆ setTexture()

raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setTexture ( const std::shared_ptr< texture::RlTexture > &  texture)

Set the texture of the model.

Parameters
texturethe texture
Returns
the ModelBuilder object

◆ setTexturePath()

raylib::builder::RlModelBuilder & raylib::builder::RlModelBuilder::setTexturePath ( const std::string &  texturePath)

Set the texture path.

Parameters
texturePathPath to the texture
Returns
the ModelBuilder object

The documentation for this class was generated from the following files: