Added Camera

This commit is contained in:
Claire Schwarzer 2026-02-03 05:24:21 +01:00
parent 89e47fa56c
commit 3842a877ac
7 changed files with 233 additions and 67 deletions

View file

@ -15,7 +15,7 @@ class Mesh
public:
unsigned int VBO, VAO, EBO;
std::size_t indexCount = 0;
Mesh(const std::vector<Vertex>& vertices, const std::vector<unsigned int>& indices) : indexCount(indices.size())
{
if (vertices.empty() || indices.empty()) {
@ -55,7 +55,7 @@ public:
std::cout << "Failed to load mesh" << std::endl;
}
}
void Draw() const
{
glDrawArrays(GL_TRIANGLES, 0, 36);