|
From: <axl...@us...> - 2008-12-04 02:55:35
|
Revision: 45
http://hgengine.svn.sourceforge.net/hgengine/?rev=45&view=rev
Author: axlecrusher
Date: 2008-12-04 02:55:32 +0000 (Thu, 04 Dec 2008)
Log Message:
-----------
make the viewport respond to transforms
Modified Paths:
--------------
Mercury2/src/Viewport.cpp
Modified: Mercury2/src/Viewport.cpp
===================================================================
--- Mercury2/src/Viewport.cpp 2008-12-04 02:53:08 UTC (rev 44)
+++ Mercury2/src/Viewport.cpp 2008-12-04 02:55:32 UTC (rev 45)
@@ -8,7 +8,15 @@
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glMatrixMode(GL_PROJECTION);
- glLoadMatrixf( m_frustum.Ptr() );
+
+ MercuryMatrix m = FindGlobalMatrix();
+ m.Transpose();
+
+ glLoadMatrixf( (m * m_frustum).Ptr() );
+ //The following 2 are equivelent to above
+// glLoadMatrixf( m_frustum.Ptr() );
+// glMultMatrixf( m.Ptr() );
+
glMatrixMode(GL_MODELVIEW);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|