25 #ifndef RAYLIB_CPP_INCLUDE_MODEL_HPP_
26 #define RAYLIB_CPP_INCLUDE_MODEL_HPP_
30 #include "./raylib.hpp"
31 #include "./raylib-cpp-utils.hpp"
41 Model(
const std::string& fileName) {
42 set(::LoadModel(fileName.c_str()));
46 set(::LoadModelFromMesh(mesh));
53 GETTERSETTER(::
Matrix, Transform, transform)
54 GETTERSETTER(
int, MeshCount, meshCount)
55 GETTERSETTER(
int, MaterialCount, materialCount)
56 GETTERSETTER(
int, BoneCount, boneCount)
79 ::UnloadModelKeepMeshes(*
this);
87 ::SetModelMeshMaterial(
this, meshId, materialId);
95 return ::GetCollisionRayModel(ray, *
this);
110 return ::IsModelAnimationValid(*
this, anim);
115 transform = model.transform;
117 meshCount = model.meshCount;
118 materialCount = model.materialCount;
119 meshes = model.meshes;
120 materials = model.materials;
121 meshMaterial = model.meshMaterial;
123 boneCount = model.boneCount;
125 bindPose = model.bindPose;
130 #endif // RAYLIB_CPP_INCLUDE_MODEL_HPP_