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:
parent
ae8c036e0e
commit
0a4c445942
3 changed files with 8 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue