src/glcamera.cpp

changeset 1178
3a88e7a60b63
parent 1177
8661b9237ed5
child 1179
1a9ffd5e0399
equal deleted inserted replaced
1177:8661b9237ed5 1178:3a88e7a60b63
253 matrix(i, j) *= scale; 253 matrix(i, j) *= scale;
254 254
255 return matrix; 255 return matrix;
256 } 256 }
257 257
258 static const GLRotationMatrix ldrawToIdealAdapterMatrix = {1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1}; 258 static const GLRotationMatrix ldrawToIdealAdapterMatrix = {1, 0, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 1};
259 259
260 /* 260 /*
261 * Converts from rea co-ordinates to ideal co-ordinates. 261 * Converts from rea co-ordinates to ideal co-ordinates.
262 * In ideal co-ordinates, X and Y axes correspond to the 2D X and Y as seen in the camera, and +Z is "outwards" from the screen. 262 * In ideal co-ordinates, X and Y axes correspond to the 2D X and Y as seen in the camera, and +Z is "outwards" from the screen.
263 */ 263 */

mercurial