src/glrenderer.cpp

changeset 1254
73097a86e8dc
parent 1178
3a88e7a60b63
child 1255
e7d2d1af7e91
--- a/src/glrenderer.cpp	Sun Mar 05 01:57:56 2017 +0200
+++ b/src/glrenderer.cpp	Thu Jan 11 22:21:50 2018 +0200
@@ -35,18 +35,53 @@
 #include "documentmanager.h"
 #include "grid.h"
 
-const QPen GLRenderer::thinBorderPen {QColor {0, 0, 0, 208}, 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin};
+const QPen GLRenderer::thinBorderPen {
+	QColor {0, 0, 0, 208},
+	1,
+	Qt::SolidLine,
+	Qt::RoundCap,
+	Qt::RoundJoin
+};
 
 // Transformation matrices for the fixed cameras.
 const GLRotationMatrix GLRenderer::topCameraMatrix = GLRotationMatrix {};
-const GLRotationMatrix GLRenderer::frontCameraMatrix = {1, 0, 0, 0, 0, 0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 1};
-const GLRotationMatrix GLRenderer::leftCameraMatrix = {0, -1, 0, 0, 0, 0, 1, 0, -1, 0, 0, 0, 0, 0, 0, 1};
-const GLRotationMatrix GLRenderer::bottomCameraMatrix = {1, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1};
-const GLRotationMatrix GLRenderer::backCameraMatrix = {-1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1};
-const GLRotationMatrix GLRenderer::rightCameraMatrix = {0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1};
+
+const GLRotationMatrix GLRenderer::frontCameraMatrix = {
+	 1,  0,  0,  0,
+	 0,  0,  1,  0,
+	 0, -1,  0,  0,
+	 0,  0,  0,  1};
+
+const GLRotationMatrix GLRenderer::leftCameraMatrix = {
+	 0, -1,  0,  0,
+	 0,  0,  1,  0,
+	-1,  0,  0,  0,
+	 0,  0,  0,  1};
+
+const GLRotationMatrix GLRenderer::bottomCameraMatrix = {
+	 1,  0,  0,  0,
+	 0, -1,  0,  0,
+	 0,  0, -1,  0,
+	 0,  0,  0,  1};
+
+const GLRotationMatrix GLRenderer::backCameraMatrix = {
+	-1,  0,  0,  0,
+	 0,  0,  1,  0,
+	 0,  1,  0,  0,
+	 0,  0,  0,  1};
+
+const GLRotationMatrix GLRenderer::rightCameraMatrix = {
+	 0,  1,  0,  0,
+	 0,  0,  1,  0,
+	 1,  0,  0,  0,
+	 0,  0,  0,  1};
 
 // Conversion matrix from LDraw to OpenGL coordinates.
-const GLRotationMatrix GLRenderer::ldrawToGLAdapterMatrix = {1, 0, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 1};
+const GLRotationMatrix GLRenderer::ldrawToGLAdapterMatrix = {
+	 1,  0,  0,  0,
+	 0,  0, -1,  0,
+	 0,  1,  0,  0,
+	 0,  0,  0,  1};
 
 /*
  * Constructs a GL renderer.

mercurial