[Plib-cvs] plib/src/ssg ssg.h,1.168,1.169
Brought to you by:
sjbaker
From: Wolfram K. <wol...@us...> - 2004-02-05 15:26:39
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6390/ssg Modified Files: ssg.h Log Message: Implemented textureMe. Needed for PPE. Index: ssg.h =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssg.h,v retrieving revision 1.168 retrieving revision 1.169 diff -u -d -r1.168 -r1.169 --- ssg.h 2 Feb 2004 01:35:15 -0000 1.168 +++ ssg.h 5 Feb 2004 15:24:06 -0000 1.169 @@ -1427,7 +1427,15 @@ ssgTexCoordArray *tl, ssgColourArray *cl ) ; - virtual void drawHighlight ( sgVec4 colour ) ; + void textureMe(float uP, float vP) + { texcoords = new ssgTexCoordArray; + for(int i=vertices->getNum()-1; i>=0; i--) + { sgVec2 v; + v[0] = uP; v[1] = vP; + texcoords->add(v); + } + } + virtual void drawHighlight ( sgVec4 colour ) ; virtual void drawHighlight ( sgVec4 colour, int i ) ; virtual void pick ( int baseName ) ; virtual void transform ( const sgMat4 m ) ; |