[Change] Uh.. Nothing. Really..

This commit is contained in:
Allanis 2018-02-03 20:47:57 +00:00
parent 1a62fd07f7
commit 130c328d2e

View File

@ -163,10 +163,10 @@ void Viewer::MainLoop(void) {
for(;;) { for(;;) {
PollEvents(); PollEvents();
if(g_keyState[SDLK_UP]) rot = matrix4x4d::RotateXMatrix(g_frameTime) * rot; if(g_keyState[SDLK_UP]) rot = matrix4x4d::RotateXMatrix(g_frameTime) * rot;
if(g_keyState[SDLK_DOWN]) rot = matrix4x4d::RotateXMatrix(-g_frameTime) * rot; if(g_keyState[SDLK_DOWN]) rot = matrix4x4d::RotateXMatrix(-g_frameTime) * rot;
if(g_keyState[SDLK_LEFT]) rot = matrix4x4d::RotateYMatrix(g_frameTime) * rot; if(g_keyState[SDLK_LEFT]) rot = matrix4x4d::RotateYMatrix(g_frameTime) * rot;
if(g_keyState[SDLK_RIGHT]) rot = matrix4x4d::RotateYMatrix(-g_frameTime) * rot; if(g_keyState[SDLK_RIGHT]) rot = matrix4x4d::RotateYMatrix(-g_frameTime) * rot;
if(g_keyState[SDLK_EQUALS]) distance *= pow(0.5, g_frameTime); if(g_keyState[SDLK_EQUALS]) distance *= pow(0.5, g_frameTime);
if(g_keyState[SDLK_MINUS]) distance *= pow(2.0, g_frameTime); if(g_keyState[SDLK_MINUS]) distance *= pow(2.0, g_frameTime);
if(g_mouseButton[1] || g_mouseButton[3]) { if(g_mouseButton[1] || g_mouseButton[3]) {