feat: vertex array class

This commit is contained in:
2025-10-30 18:31:48 +01:00
parent c6d83c1b51
commit 9b26cf909b
5 changed files with 41 additions and 14 deletions

View File

@@ -63,7 +63,7 @@ public:
assert(batchEntt.HasComponent<batch>() && "batch doesn't have any batch component!");
assert(batchEntt.HasComponent<mesh>() && "batch doesn't have any mesh component!");
// Generate 1000 random cubes
for (int i = 0; i < 10000; ++i) {
for (int i = 0; i < 100; ++i) {
auto cubeEntity = scene->CreateEntity();
float x = static_cast<float>(rand()) / RAND_MAX * 200.f - 100.f; // range [-100, 100]