feat: refactoring

This commit is contained in:
2025-10-22 14:25:02 +02:00
parent 71f1b2c6d2
commit ea593feb8d
36 changed files with 220 additions and 71 deletions

View File

@ -2,6 +2,8 @@
#include "engine/components/batch.h"
namespace Engine {
unsigned int batch::LastID = 0;
batch::batch() {
@ -27,4 +29,6 @@ void batch::prepare(glm::mat4 *instances, unsigned int count) {
// Just update the data region — much cheaper
glBufferSubData(GL_ARRAY_BUFFER, 0, sizeof(glm::mat4) * count, instances);
glBindBuffer(GL_ARRAY_BUFFER, 0);
}
}
}