add ModelBatch

This commit is contained in:
MihailRis
2024-06-20 19:45:19 +03:00
parent 99094d2299
commit 6d6313cd10
7 changed files with 200 additions and 2 deletions
+2
View File
@@ -5,7 +5,9 @@
#include <GL/glew.h>
#include "../../typedefs.hpp"
#include "../../maths/UVRegion.hpp"
/// xyz, uv, rgba
inline constexpr uint B3D_VERTEX_SIZE = 9;
Batch3D::Batch3D(size_t capacity)
+1 -1
View File
@@ -1,7 +1,6 @@
#ifndef GRAPHICS_CORE_BATCH3D_HPP_
#define GRAPHICS_CORE_BATCH3D_HPP_
#include "../../maths/UVRegion.hpp"
#include "../../typedefs.hpp"
#include <memory>
@@ -10,6 +9,7 @@
class Mesh;
class Texture;
struct UVRegion;
class Batch3D {
std::unique_ptr<float[]> buffer;