[Change] Uh.. Nothing. Really..

This commit is contained in:
Rtch90 2018-02-03 20:47:57 +00:00
parent 014be1fef2
commit b68f40a74a

View File

@ -163,10 +163,10 @@ void Viewer::MainLoop(void) {
for(;;) {
PollEvents();
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_LEFT]) rot = matrix4x4d::RotateYMatrix(g_frameTime) * rot;
if(g_keyState[SDLK_RIGHT]) rot = matrix4x4d::RotateYMatrix(-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_LEFT]) 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_MINUS]) distance *= pow(2.0, g_frameTime);
if(g_mouseButton[1] || g_mouseButton[3]) {