remove Mesh constructor 'attrs' argument & format Mesh.hpp

This commit is contained in:
MihailRis 2025-04-27 01:13:44 +03:00
parent 47b7472231
commit e357a4eb9f
13 changed files with 46 additions and 42 deletions

View file

@ -9,7 +9,7 @@
Batch2D::Batch2D(size_t capacity) : capacity(capacity), color(1.0f){
buffer = std::make_unique<Batch2DVertex[]>(capacity );
mesh = std::make_unique<Mesh<Batch2DVertex>>(buffer.get(), 0, Batch2DVertex::ATTRIBUTES);
mesh = std::make_unique<Mesh<Batch2DVertex>>(buffer.get(), 0);
index = 0;
const ubyte pixels[] = {