summaryrefslogtreecommitdiffstats
path: root/src/math
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-07-18 19:08:34 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-07-18 19:08:34 +0200
commitf364f378cf497faf61d78aadd8f1aebce678c0ec (patch)
tree02de3c2415247a7856a02657b1eff9500b5d1e50 /src/math
parent68a7bafe37adef0e5ef12c2d0e8461a21e05363b (diff)
downloadcolobot-f364f378cf497faf61d78aadd8f1aebce678c0ec.tar.gz
colobot-f364f378cf497faf61d78aadd8f1aebce678c0ec.tar.bz2
colobot-f364f378cf497faf61d78aadd8f1aebce678c0ec.zip
Fixed OpenGL transformations
- fixed wrong order of transformations - added transform_test
Diffstat (limited to 'src/math')
-rw-r--r--src/math/geometry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/geometry.h b/src/math/geometry.h
index e56ff10..8954655 100644
--- a/src/math/geometry.h
+++ b/src/math/geometry.h
@@ -284,7 +284,7 @@ inline void LoadViewMatrix(Math::Matrix &mat, const Math::Vector &from,
//! Loads a perspective projection matrix
/** \a fov field of view in radians
- \a aspect aspect ratio (width / height)
+ \a aspect aspect ratio (height / width)
\a nearPlane distance to near cut plane
\a farPlane distance to far cut plane */
inline void LoadProjectionMatrix(Math::Matrix &mat, float fov = 1.570795f, float aspect = 1.0f,