bunch of test things
also new camera class
This commit is contained in:
parent
b47c5e27d8
commit
89e47fa56c
10 changed files with 496 additions and 54 deletions
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue