raylib-cpp
C++ object-oriented wrapper library for raylib.
Public Member Functions | List of all members
raylib::Model Class Reference

Public Member Functions

 Model (::Mesh mesh)
 
 Model (::Model model)
 
 Model (const std::string &fileName)
 
 ~Model ()
 
RayHitInfo GetCollision (::Ray ray)
 
int GetMaterialCount ()
 
int GetMeshCount ()
 
inline ::Matrix GetTransform ()
 
bool IsModelAnimationValid (::ModelAnimation anim)
 
Model & operator= (const ::Model &model)
 
Model & operator= (const Model &model)
 
void set (::Model model)
 
void SetMaterialCount (int value)
 
void SetMeshCount (int value)
 
Model & SetMeshMaterial (int meshId, int materialId)
 
void SetTransform (::Matrix value)
 
void Unload ()
 
Model & UpdateModelAnimation (::ModelAnimation anim, int frame)
 

Detailed Description

Definition at line 16 of file Model.hpp.

Constructor & Destructor Documentation

◆ Model() [1/3]

raylib::Model::Model ( ::Model  model)
inline

Definition at line 18 of file Model.hpp.

References set().

◆ Model() [2/3]

raylib::Model::Model ( const std::string &  fileName)
inline

Definition at line 22 of file Model.hpp.

References set().

◆ Model() [3/3]

raylib::Model::Model ( ::Mesh  mesh)
inline

Definition at line 26 of file Model.hpp.

References set().

◆ ~Model()

raylib::Model::~Model ( )
inline

Definition at line 30 of file Model.hpp.

References Unload().

Member Function Documentation

◆ GetCollision()

RayHitInfo raylib::Model::GetCollision ( ::Ray  ray)
inline

Definition at line 71 of file Model.hpp.

◆ GetMaterialCount()

int raylib::Model::GetMaterialCount ( )
inline

Definition at line 50 of file Model.hpp.

◆ GetMeshCount()

int raylib::Model::GetMeshCount ( )
inline

Definition at line 49 of file Model.hpp.

◆ GetTransform()

inline ::Matrix raylib::Model::GetTransform ( )
inline

Definition at line 48 of file Model.hpp.

◆ IsModelAnimationValid()

bool raylib::Model::IsModelAnimationValid ( ::ModelAnimation  anim)
inline

Definition at line 80 of file Model.hpp.

◆ operator=() [1/2]

Model& raylib::Model::operator= ( const ::Model &  model)
inline

Definition at line 52 of file Model.hpp.

References set().

◆ operator=() [2/2]

Model& raylib::Model::operator= ( const Model &  model)
inline

Definition at line 57 of file Model.hpp.

References set().

◆ set()

void raylib::Model::set ( ::Model  model)
inline

Definition at line 34 of file Model.hpp.

Referenced by Model(), and operator=().

◆ SetMaterialCount()

void raylib::Model::SetMaterialCount ( int  value)
inline

Definition at line 50 of file Model.hpp.

◆ SetMeshCount()

void raylib::Model::SetMeshCount ( int  value)
inline

Definition at line 49 of file Model.hpp.

◆ SetMeshMaterial()

Model& raylib::Model::SetMeshMaterial ( int  meshId,
int  materialId 
)
inline

Definition at line 66 of file Model.hpp.

◆ SetTransform()

void raylib::Model::SetTransform ( ::Matrix  value)
inline

Definition at line 48 of file Model.hpp.

◆ Unload()

void raylib::Model::Unload ( )
inline

Definition at line 62 of file Model.hpp.

Referenced by ~Model().

◆ UpdateModelAnimation()

Model& raylib::Model::UpdateModelAnimation ( ::ModelAnimation  anim,
int  frame 
)
inline

Definition at line 75 of file Model.hpp.