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));
35 transform = model.transform;
37 meshCount = model.meshCount;
38 meshes = model.meshes;
40 materialCount = model.materialCount;
41 materials = model.materials;
42 meshMaterial = model.meshMaterial;
43 boneCount = model.boneCount;
45 bindPose = model.bindPose;
48 GETTERSETTER(::
Matrix,Transform,transform)
49 GETTERSETTER(
int,MeshCount,meshCount)
50 GETTERSETTER(
int,MaterialCount,materialCount)
67 ::SetModelMeshMaterial(
this, meshId, materialId);
72 return ::GetCollisionRayModel(ray, *
this);
81 return ::IsModelAnimationValid(*
this, anim);