refactor: Batch2D and Batch3D

This commit is contained in:
MihailRis
2024-06-06 11:24:16 +03:00
parent 18a3dcaabf
commit 7db76a0e6a
4 changed files with 57 additions and 42 deletions
+2 -2
View File
@@ -12,13 +12,13 @@ class Texture;
struct UVRegion;
class Batch2D {
float* buffer;
std::unique_ptr<float[]> buffer;
size_t capacity;
std::unique_ptr<Mesh> mesh;
std::unique_ptr<Texture> blank;
size_t index;
glm::vec4 color;
Texture* _texture;
Texture* currentTexture;
DrawPrimitive primitive = DrawPrimitive::triangle;
void setPrimitive(DrawPrimitive primitive);