1 #ifndef RAYLIB_CPP_MESH_HPP_
2 #define RAYLIB_CPP_MESH_HPP_
12 #include "./raylib-cpp-utils.hpp"
14 #include "./BoundingBox.hpp"
15 #include "./Model.hpp"
24 Mesh(
int VertexCount = 0,
int TriangleCount = 0) {
25 vertexCount = VertexCount;
26 triangleCount = TriangleCount;
30 vertexCount = mesh.vertexCount;
31 triangleCount = mesh.triangleCount;
32 vertices = mesh.vertices;
33 texcoords = mesh.texcoords;
34 texcoords2 = mesh.texcoords2;
35 normals = mesh.normals;
36 tangents = mesh.tangents;
38 indices = mesh.indices;
39 animVertices = mesh.animVertices;
40 animNormals = mesh.animNormals;
41 boneIds = mesh.boneIds;
42 boneWeights = mesh.boneWeights;
47 GETTERSETTER(
int,VertexCount,vertexCount)
48 GETTERSETTER(
int,TriangleCount,triangleCount)
65 ExportMesh(*
this, fileName.c_str());
74 return ::MeshBoundingBox(*
this);
86 ::MeshBinormals(
this);
91 ::MeshNormalsSmooth(
this);
96 return ::LoadModelFromMesh(*
this);