From: <axl...@us...> - 2009-07-04 15:43:42
|
Revision: 404 http://hgengine.svn.sourceforge.net/hgengine/?rev=404&view=rev Author: axlecrusher Date: 2009-07-04 15:43:36 +0000 (Sat, 04 Jul 2009) Log Message: ----------- update Modified Paths: -------------- Mercury2/src/MercuryVertex.cpp Mercury2/src/MercuryVertex.h Modified: Mercury2/src/MercuryVertex.cpp =================================================================== --- Mercury2/src/MercuryVertex.cpp 2009-07-04 15:42:50 UTC (rev 403) +++ Mercury2/src/MercuryVertex.cpp 2009-07-04 15:43:36 UTC (rev 404) @@ -28,6 +28,13 @@ (*this)[i] = v[i]; } +MercuryVertex::MercuryVertex( const MercuryVertex& v, float w) +{ + for (unsigned int i = 0; i < 3; ++i) + (*this)[i] = v[i]; + (*this)[3] = w; +} + void MercuryVertex::NormalizeSelf() { float imag = 1.0f/Length(); Modified: Mercury2/src/MercuryVertex.h =================================================================== --- Mercury2/src/MercuryVertex.h 2009-07-04 15:42:50 UTC (rev 403) +++ Mercury2/src/MercuryVertex.h 2009-07-04 15:43:36 UTC (rev 404) @@ -19,6 +19,7 @@ MercuryVertex( float ix, float iy, float iz, float iw = 0 ); MercuryVertex( const float * in ); MercuryVertex( const MercuryVertex& v); + MercuryVertex( const MercuryVertex& v, float w); ///Direct conversion to float* __inline__ operator float* () { return (float*)&m_xyzw; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |