|
From: <axl...@us...> - 2009-05-16 03:55:11
|
Revision: 256
http://hgengine.svn.sourceforge.net/hgengine/?rev=256&view=rev
Author: axlecrusher
Date: 2009-05-16 03:54:59 +0000 (Sat, 16 May 2009)
Log Message:
-----------
remove unneeded
Modified Paths:
--------------
Mercury2/src/Frustum.cpp
Mercury2/src/Frustum.h
Mercury2/src/Viewport.cpp
Modified: Mercury2/src/Frustum.cpp
===================================================================
--- Mercury2/src/Frustum.cpp 2009-05-16 03:46:27 UTC (rev 255)
+++ Mercury2/src/Frustum.cpp 2009-05-16 03:54:59 UTC (rev 256)
@@ -55,9 +55,6 @@
//Right now this only builds the frustum planes
MercuryVector X,Y,Z;
- m_lookAt = look;
- m_eye = eye;
-
Z = (eye - look).Normalize(); //direction behind camera
X = (up.CrossProduct(Z)).Normalize(); //X axis
Y = Z.CrossProduct( X ); //real up
Modified: Mercury2/src/Frustum.h
===================================================================
--- Mercury2/src/Frustum.h 2009-05-16 03:46:27 UTC (rev 255)
+++ Mercury2/src/Frustum.h 2009-05-16 03:54:59 UTC (rev 256)
@@ -24,8 +24,6 @@
void LookAt(const MercuryVertex& eye, const MercuryVector& look, const MercuryVector& up);
inline const MercuryPlane& GetPlane(int i) const { return m_planes[i]; }
- inline const MercuryVertex& GetLookAt() const { return m_lookAt; }
- inline const MercuryVertex& GetEye() const { return m_eye; }
private:
MercuryPlane m_planes[6];
@@ -35,8 +33,6 @@
float m_nh, m_nw, m_fh, m_fw;
MercuryVector m_nc, m_fc;
- MercuryVertex m_lookAt;
- MercuryVertex m_eye;
};
#endif
Modified: Mercury2/src/Viewport.cpp
===================================================================
--- Mercury2/src/Viewport.cpp 2009-05-16 03:46:27 UTC (rev 255)
+++ Mercury2/src/Viewport.cpp 2009-05-16 03:54:59 UTC (rev 256)
@@ -35,7 +35,7 @@
EYE[2] = matrix[2][3]; // same as float* [11]
EYE *= -1;
- MercuryVector l(0,0,1,1);
+ MercuryVector l(0,0,1);
LOOKAT = (matrix * l).Normalize();
// LOOKAT.Print();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|