|
From: <axl...@us...> - 2009-03-03 13:37:38
|
Revision: 170
http://hgengine.svn.sourceforge.net/hgengine/?rev=170&view=rev
Author: axlecrusher
Date: 2009-03-03 13:33:16 +0000 (Tue, 03 Mar 2009)
Log Message:
-----------
take w in conversion functions
Modified Paths:
--------------
Mercury2/src/MercuryVertex.h
Modified: Mercury2/src/MercuryVertex.h
===================================================================
--- Mercury2/src/MercuryVertex.h 2009-03-03 02:06:45 UTC (rev 169)
+++ Mercury2/src/MercuryVertex.h 2009-03-03 13:33:16 UTC (rev 170)
@@ -35,9 +35,9 @@
///Write out to be = to this point
inline void ConvertToVector3( float* out ) const { out[0] = m_xyz[0]; out[1] = m_xyz[1]; out[2] = m_xyz[2]; }
///Write out to be = to this point, however the 4th element will be 0
- inline void ConvertToVector4( float* out ) const { out[0] = m_xyz[0]; out[1] = m_xyz[1]; out[2] = m_xyz[2]; out[3] = 0; }
+ inline void ConvertToVector4( float* out, float w = 0 ) const { out[0] = m_xyz[0]; out[1] = m_xyz[1]; out[2] = m_xyz[2]; out[3] = w; }
///Write out to be = - to this point, however the 4th element will be 0
- inline void ConvertToIVector4( float* out ) const { out[0] = -m_xyz[0]; out[1] = -m_xyz[1]; out[2] = -m_xyz[2]; out[3] = 0; }
+ inline void ConvertToIVector4( float* out, float w = 0 ) const { out[0] = -m_xyz[0]; out[1] = -m_xyz[1]; out[2] = -m_xyz[2]; out[3] = w; }
const MercuryVertex& operator *= (const MercuryVertex& p);
const MercuryVertex& operator /= (const MercuryVertex& p);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|