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;
29 GETTERSETTER(
int,VertexCount,vertexCount)
30 GETTERSETTER(
int,TriangleCount,triangleCount)
47 ExportMesh(*
this, fileName.c_str());
56 return ::MeshBoundingBox(*
this);
68 ::MeshBinormals(
this);
73 ::MeshNormalsSmooth(
this);
78 return ::LoadModelFromMesh(*
this);
86 vertexCount = mesh.vertexCount;
87 triangleCount = mesh.triangleCount;
88 vertices = mesh.vertices;
89 texcoords = mesh.texcoords;
90 texcoords2 = mesh.texcoords2;
91 normals = mesh.normals;
92 tangents = mesh.tangents;
94 indices = mesh.indices;
95 animVertices = mesh.animVertices;
96 animNormals = mesh.animNormals;
97 boneIds = mesh.boneIds;
98 boneWeights = mesh.boneWeights;