diff options
Diffstat (limited to 'source/Mesh.hpp')
-rw-r--r-- | source/Mesh.hpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/source/Mesh.hpp b/source/Mesh.hpp deleted file mode 100644 index f86fd55..0000000 --- a/source/Mesh.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#pragma once - -#include "Color.hpp" -#include "VertexIndex.hpp" -#include "PodVector.hpp" -#include "RcPtr.hpp" - -#include <cstddef> -#include <cstdint> -#include <glm/glm.hpp> -#include <memory> - -struct StandardVertexExtra { - float u, v; - uint8_t r, g, b, a; -}; - -class StandardCpuMeshData { -public: - PodVector<glm::vec3> vertPositions; - PodVector<StandardVertexExtra> vertExtra; - PodVector<uint32_t> index; - size_t vertexCount; - size_t triangleCount; -}; - -class StandardCpuMesh { -// private: -// StandardCpuMeshData* mData = nullptr; -// RcPtr<GpuMesh> mGpuMesh; - -// public: -// StandardCpuMesh(); -// ~StandardCpuMesh(); - -// GpuVertexBuffer* GetPosBuffer() const; -// GpuVertexBuffer* GetExtraBuffer() const; -// GpuMesh* GetGpuMesh() const { return mGpuMesh.Get(); } - -// void CreateCpuData(); -// bool UpdatePositions(glm::vec3* pos, size_t count, size_t startVertIndex); -// bool UpdateColors(RgbaColor* color, size_t count, size_t starVertIndex); -// bool UpdateNormals(glm::vec2* normals, size_t count, size_t startVertIndex); -// bool UpdateIndices(uint32_t* indices, size_t count, size_t startVertIndex); -}; |