bunch of test things

also new camera class
This commit is contained in:
Claire Schwarzer 2026-02-02 03:12:29 +01:00
parent b47c5e27d8
commit 89e47fa56c
10 changed files with 496 additions and 54 deletions

View file

@ -1,5 +1,4 @@
#pragma once

#include <exception>
#include <vector>
#include <glad/glad.h>
@ -59,8 +58,9 @@ public:
void Draw() const
{
glBindVertexArray(VAO);
glDrawElements(GL_TRIANGLES, static_cast<GLsizei>(indexCount),
GL_UNSIGNED_INT, nullptr);
glDrawArrays(GL_TRIANGLES, 0, 36);
//glBindVertexArray(VAO);
//glDrawElements(GL_TRIANGLES, static_cast<GLsizei>(indexCount),
// GL_UNSIGNED_INT, nullptr);
}
};