add particles (WIP)

This commit is contained in:
MihailRis
2024-11-02 20:40:40 +03:00
parent a0f885e26a
commit 217176f74f
8 changed files with 280 additions and 4 deletions
+5
View File
@@ -52,6 +52,11 @@ void MainBatch::flush() {
index = 0;
}
void MainBatch::begin() {
texture = nullptr;
blank->bind();
}
void MainBatch::prepare(int vertices) {
if (index + VERTEX_SIZE * vertices > capacity * VERTEX_SIZE) {
flush();