|
From: Charles L. <cn...@us...> - 2005-12-18 02:46:17
|
Update of /cvsroot/hgengine/Mercury/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5829 Modified Files: MercuryObject.cpp MercuryObject.h Log Message: Add new constructor for verts. Index: MercuryObject.h =================================================================== RCS file: /cvsroot/hgengine/Mercury/src/MercuryObject.h,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** MercuryObject.h 30 Nov 2005 19:04:05 -0000 1.24 --- MercuryObject.h 18 Dec 2005 02:46:09 -0000 1.25 *************** *** 28,31 **** --- 28,32 ---- virtual ~MercuryVert(); MercuryVert(); + MercuryVert( const float x, const float y, const float z, const float u, const float v ); const float* GetVert() const; inline const float* GetUV() const { return m_uv; } Index: MercuryObject.cpp =================================================================== RCS file: /cvsroot/hgengine/Mercury/src/MercuryObject.cpp,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** MercuryObject.cpp 30 Nov 2005 19:04:05 -0000 1.31 --- MercuryObject.cpp 18 Dec 2005 02:46:09 -0000 1.32 *************** *** 12,15 **** --- 12,22 ---- } + MercuryVert::MercuryVert( const float ix, const float iy, const float iz, const float u, const float v ) + :MercuryPoint() + { + x=ix;y=iy;z=iz; + m_uv[0]=u;m_uv[1]=v; + } + MercuryVert::MercuryVert() :MercuryPoint() |