1 #ifndef RAYLIB_CPP_MODEL_HPP_
2 #define RAYLIB_CPP_MODEL_HPP_
12 #include "./raylib-cpp-utils.hpp"
22 Model(
const std::string& fileName) {
23 set(LoadModel(fileName.c_str()));
27 set(LoadModelFromMesh(mesh));
34 GETTERSETTER(::
Matrix,Transform,transform)
35 GETTERSETTER(
int,MeshCount,meshCount)
36 GETTERSETTER(
int,MaterialCount,materialCount)
53 ::SetModelMeshMaterial(
this, meshId, materialId);
58 return ::GetCollisionRayModel(ray, *
this);
67 return ::IsModelAnimationValid(*
this, anim);
72 transform = model.transform;
74 meshCount = model.meshCount;
75 meshes = model.meshes;
77 materialCount = model.materialCount;
78 materials = model.materials;
79 meshMaterial = model.meshMaterial;
80 boneCount = model.boneCount;
82 bindPose = model.bindPose;