src/glRenderer.cpp

changeset 1134
daa9808d626e
parent 1133
47f6db5ea24d
child 1135
8e0691be0b6f
--- a/src/glRenderer.cpp	Tue Feb 14 08:26:39 2017 +0200
+++ b/src/glRenderer.cpp	Tue Feb 14 08:33:44 2017 +0200
@@ -46,10 +46,10 @@
     m_model {model},
     m_cameras {
         {"Top camera", {1,  0, 0, X, Z, false, false, false}}, // top
-        {"Front camera", {0,  0, 0, X, Y, false,  true, false}}, // front
+        {"Front camera", {0,  0, 1, X, Y, false,  true, false}}, // front
         {"Left camera", {0,  1, 0, Z, Y,  true,  true, false}}, // left
         {"Bottom camera", {-1,  0, 0, X, Z, false,  true, true}}, // bottom
-        {"Back camera", {0,  0, 0, X, Y,  true,  true, true}}, // back
+        {"Back camera", {0,  0, -1, X, Y,  true,  true, true}}, // back
         {"Right camera", {0, -1, 0, Z, Y, false,  true, true}}, // right
         {"Free camera", GLCamera::FreeCamera}, // free
     }
@@ -382,7 +382,7 @@
 		glTranslatef(panning (X), panning (Y), 0.0f);
 
 		if (camera() != Camera::Front and camera() != Camera::Back)
-			glRotatef(90.0f, currentCamera().glRotate(X), currentCamera().glRotate(Y), currentCamera().glRotate(Z));
+			glRotatef(90.0f, currentCamera().glRotate(X), currentCamera().glRotate(Y), 0);
 
 		// Back camera needs to be handled differently
 		if (camera() == Camera::Back)

mercurial