[Plib-cvs] CVS: plib/src/ssg ssgVtxArray.cxx,1.21,1.22
Brought to you by:
sjbaker
From: M?rten Str?m. <str...@us...> - 2002-03-20 17:38:11
|
Update of /cvsroot/plib/plib/src/ssg In directory usw-pr-cvs1:/tmp/cvs-serv26345 Modified Files: ssgVtxArray.cxx Log Message: Implemented 'setIndices'. Index: ssgVtxArray.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgVtxArray.cxx,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- ssgVtxArray.cxx 7 Nov 2001 23:51:10 -0000 1.21 +++ ssgVtxArray.cxx 20 Mar 2002 17:26:31 -0000 1.22 @@ -77,6 +77,16 @@ } +void ssgVtxArray::setIndices ( ssgIndexArray *il ) +{ + ssgDeRefDelete ( indices ) ; + indices = il ; + + if ( indices != NULL ) + indices -> ref () ; +} + + void ssgVtxArray::drawHighlight ( sgVec4 colour ) { _ssgForceLineState () ; |