59 Commits

Author SHA1 Message Date
e713ed8123 fix: return negative on error 2023-08-02 01:55:28 +02:00
31b58c48b2 fix: bind VAO before VBO
Failing to do this causes issues when trying to render multiple objects
2023-08-02 01:55:28 +02:00
829baa4b53 feat: wireframe rendering 2023-08-02 01:55:28 +02:00
68d63edef7 feat: orthographic triangle 2023-08-02 01:55:28 +02:00
c44624f51e refactor: use GLFW time
This removes the requirement for std::chrono
2023-08-02 01:55:28 +02:00
4400839ae1 chore: extract shader compilation functions to file 2023-08-02 01:55:28 +02:00
e9cdefe28a chore: extract Triangle class 2023-08-02 01:55:28 +02:00
37dbe741fa chore: extract graphics init to function 2023-08-02 01:55:28 +02:00
5d80d4a033 chore: move files to src dir 2023-08-02 01:55:28 +02:00