[Plib-cvs] plib/src/ssg ssgVTable.cxx,1.18,1.19
Brought to you by:
sjbaker
From: Wolfram K. <wol...@us...> - 2003-12-14 14:49:39
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1:/tmp/cvs-serv12642/ssg Modified Files: ssgVTable.cxx Log Message: The last function I added should go into ssgVtxTable, not in here. Fixed. Index: ssgVTable.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgVTable.cxx,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- ssgVTable.cxx 13 Dec 2003 22:40:10 -0000 1.18 +++ ssgVTable.cxx 14 Dec 2003 14:49:36 -0000 1.19 @@ -559,38 +559,6 @@ } } - - -ssgVtxArray *ssgVtxTable::getAs_ssgVtxArray() -{ - - ssgIndexArray *indices = new ssgIndexArray (); - int i, no = 0; - switch ( getPrimitiveType () ) - { - case GL_POLYGON : - case GL_TRIANGLE_FAN : - case GL_TRIANGLE_STRIP : - no = getNumTriangles() + 2 ; - break; - - case GL_TRIANGLES : - no = getNumTriangles() * 3 ; - } - for(i=0;i<no;i++) - indices ->add(i); - - - ssgState * state = getState(); - char * name = getName(); - ssgVtxArray * s = new ssgVtxArray ( getGLtype(), - vertices, normals, texcoords, colours, indices); - s->setName(name); - s->setState(state); - return s; -} - - void ssgVTable::isect_triangles ( sgSphere *s, sgMat4 m, int test_needed ) { int nt = getNumTriangles () ; |