mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
refactor: Batch2D and Batch3D
This commit is contained in:
parent
18a3dcaabf
commit
7db76a0e6a
4 changed files with 57 additions and 42 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue