rename vattr to VertexAttribute

This commit is contained in:
MihailRis
2024-11-17 01:00:27 +03:00
parent 65287b3273
commit 5240fe6226
11 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
inline constexpr uint LB_VERTEX_SIZE = (3+4);
LineBatch::LineBatch(size_t capacity) : capacity(capacity) {
const vattr attrs[] = { {3},{4}, {0} };
const VertexAttribute attrs[] = { {3},{4}, {0} };
buffer = std::make_unique<float[]>(capacity * LB_VERTEX_SIZE * 2);
mesh = std::make_unique<Mesh>(buffer.get(), 0, attrs);
index = 0;