Raylib C++  1.0.0
Encapsulates the raylib library
Static Public Member Functions | List of all members
raylib::helper::draw::DrawModelHelper Class Reference

Helper class for drawing models and meshes. More...

#include <DrawModelHelper.hpp>

Collaboration diagram for raylib::helper::draw::DrawModelHelper:
Collaboration graph

Static Public Member Functions

static void drawMesh (const raylib::model::RlMesh &mesh, const raylib::model::RlMaterial &material, const Matrix &transform)
 Draw a 3d mesh with material and transform. More...
 
static void drawMeshInstanced (const raylib::model::RlMesh &mesh, const raylib::model::RlMaterial &material, std::vector< Matrix > &transforms)
 Draw multiple mesh instances with material and different transforms. More...
 
static void drawModel (const raylib::model::RlModel &model)
 Draw a 3d model. More...
 
static void drawModel (const raylib::model::RlModel &model, const Vector3f &position, const float &scale, const RlColor &tint)
 Draw a model (with texture if set) More...
 
static void drawModel (const raylib::model::RlModel &model, const Vector3f &position, const Vector3f &rotationAxis, const float &rotationAngle, const Vector3f &scale, const RlColor &tint)
 Draw a model with extended parameters. More...
 
static void drawModelWires (const raylib::model::RlModel &model)
 Draw a model with extended parameters. More...
 
static void drawModelWires (const raylib::model::RlModel &model, const Vector3f &position, const float &scale, const RlColor &tint)
 Draw a model wires (with texture if set) More...
 
static void drawModelWires (const raylib::model::RlModel &model, const Vector3f &position, const Vector3f &rotationAxis, const float &rotationAngle, const Vector3f &scale, const RlColor &tint)
 Draw a model wires (with texture if set) with extended parameters. More...
 

Detailed Description

Helper class for drawing models and meshes.

Member Function Documentation

◆ drawMesh()

void raylib::helper::draw::DrawModelHelper::drawMesh ( const raylib::model::RlMesh mesh,
const raylib::model::RlMaterial material,
const Matrix &  transform 
)
static

Draw a 3d mesh with material and transform.

Parameters
meshMesh to draw
materialMaterial to use
transformTransform to use
Here is the call graph for this function:

◆ drawMeshInstanced()

void raylib::helper::draw::DrawModelHelper::drawMeshInstanced ( const raylib::model::RlMesh mesh,
const raylib::model::RlMaterial material,
std::vector< Matrix > &  transforms 
)
static

Draw multiple mesh instances with material and different transforms.

Parameters
meshMesh to draw
materialMaterial to use
transformsTransforms to use (not modified through this function)
Here is the call graph for this function:

◆ drawModel() [1/3]

void raylib::helper::draw::DrawModelHelper::drawModel ( const raylib::model::RlModel model)
static

Draw a 3d model.

Parameters
modelthe model to draw
Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawModel() [2/3]

void raylib::helper::draw::DrawModelHelper::drawModel ( const raylib::model::RlModel model,
const Vector3f position,
const float &  scale,
const RlColor tint 
)
static

Draw a model (with texture if set)

Parameters
modelthe model to draw
positionthe position to draw the model
scalethe scale to draw the model
tintthe tint to draw the model

◆ drawModel() [3/3]

void raylib::helper::draw::DrawModelHelper::drawModel ( const raylib::model::RlModel model,
const Vector3f position,
const Vector3f rotationAxis,
const float &  rotationAngle,
const Vector3f scale,
const RlColor tint 
)
static

Draw a model with extended parameters.

Parameters
modelthe model to draw
positionthe position to draw the model
rotationAxisthe axis to rotate the model around
rotationAnglethe angle to rotate the model around
scalethe scale to draw the model
tintthe tint to draw the model
Here is the call graph for this function:

◆ drawModelWires() [1/3]

void raylib::helper::draw::DrawModelHelper::drawModelWires ( const raylib::model::RlModel model)
static

Draw a model with extended parameters.

Parameters
modelthe model to draw
Here is the call graph for this function:

◆ drawModelWires() [2/3]

void raylib::helper::draw::DrawModelHelper::drawModelWires ( const raylib::model::RlModel model,
const Vector3f position,
const float &  scale,
const RlColor tint 
)
static

Draw a model wires (with texture if set)

Parameters
modelthe model to draw
positionthe position to draw the model
scalethe scale to draw the model
tintthe tint to draw the model
Here is the call graph for this function:

◆ drawModelWires() [3/3]

void raylib::helper::draw::DrawModelHelper::drawModelWires ( const raylib::model::RlModel model,
const Vector3f position,
const Vector3f rotationAxis,
const float &  rotationAngle,
const Vector3f scale,
const RlColor tint 
)
static

Draw a model wires (with texture if set) with extended parameters.

Parameters
modelthe model to draw
positionthe position to draw the model
rotationAxisthe axis to rotate the model around
rotationAnglethe angle to rotate the model around
scalethe scale to draw the model
tintthe tint to draw the model
Here is the call graph for this function:

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