Fixed useless copying of vectors during model.draw(), now references.

Fixed copy constructor of Vec3 (Copy-pasting is bad)
Now exits on escape
This commit is contained in:
trotFunky 2019-10-19 04:24:08 +02:00
parent ae8c036e0e
commit 0a4c445942
3 changed files with 8 additions and 3 deletions

View file

@ -21,6 +21,11 @@ void manage_inputs()
{
glClearColor(0.5,0,0,1);
}
else if (KeyStateManager::is_key_pressed(0x1B))
{
glutDestroyWindow(glutGetWindow());
exit(EXIT_SUCCESS);
}
else
{
glClearColor(0,0,0,1);