actually add include folder

This commit is contained in:
2025-08-30 18:12:13 +02:00
parent a9cb387ec9
commit 4c098950f3
97 changed files with 43940 additions and 0 deletions
+93
View File
@@ -0,0 +1,93 @@
#ifndef RAYLIB_CPP_INCLUDE_MESH_HPP_
#define RAYLIB_CPP_INCLUDE_MESH_HPP_
#include <string>
#include <vector>
#include "./raylib.hpp"
#include "./raylib-cpp-utils.hpp"
#include "./BoundingBox.hpp"
#include "./Model.hpp"
#include "./MeshUnmanaged.hpp"
namespace raylib {
/**
* Vertex data defining a mesh
*
* The Mesh will be unloaded on object destruction.
*
* @see raylib::MeshUnmanaged
*/
class Mesh : public MeshUnmanaged {
public:
using MeshUnmanaged::MeshUnmanaged;
/**
* Explicitly forbid the copy constructor.
*/
Mesh(const Mesh&) = delete;
/**
* Explicitly forbid copy assignment.
*/
Mesh& operator=(const Mesh&) = delete;
/**
* Move constructor.
*/
Mesh(Mesh&& other) {
set(other);
other.vertexCount = 0;
other.triangleCount = 0;
other.vertices = nullptr;
other.texcoords = nullptr;
other.texcoords2 = nullptr;
other.normals = nullptr;
other.tangents = nullptr;
other.colors = nullptr;
other.indices = nullptr;
other.animVertices = nullptr;
other.animNormals = nullptr;
other.boneIds = nullptr;
other.boneWeights = nullptr;
other.vaoId = 0;
other.vboId = nullptr;
}
Mesh& operator=(Mesh&& other) noexcept {
if (this == &other) {
return *this;
}
Unload();
set(other);
other.vertexCount = 0;
other.triangleCount = 0;
other.vertices = nullptr;
other.texcoords = nullptr;
other.texcoords2 = nullptr;
other.normals = nullptr;
other.tangents = nullptr;
other.colors = nullptr;
other.indices = nullptr;
other.animVertices = nullptr;
other.animNormals = nullptr;
other.boneIds = nullptr;
other.boneWeights = nullptr;
other.vaoId = 0;
other.vboId = nullptr;
return *this;
}
~Mesh() {
Unload();
}
};
} // namespace raylib
using RMesh = raylib::Mesh;
#endif // RAYLIB_CPP_INCLUDE_MESH_HPP_