[Plib-cvs] plib/src/ssgAux ssgaParticleSystem.cxx,1.3,1.4
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-06-11 12:40:43
|
Update of /cvsroot/plib/plib/src/ssgAux In directory usw-pr-cvs1:/tmp/cvs-serv22156 Modified Files: ssgaParticleSystem.cxx Log Message: Erik Hofman: Fixes for IRIX (and implicitly for MSVC, too) Index: ssgaParticleSystem.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssgAux/ssgaParticleSystem.cxx,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- ssgaParticleSystem.cxx 23 Mar 2002 15:06:45 -0000 1.3 +++ ssgaParticleSystem.cxx 11 Jun 2002 12:40:37 -0000 1.4 @@ -31,7 +31,9 @@ particle = new ssgaParticle [ num ] ; - for ( int i = 0 ; i < num_verts ; i++ ) + int i ; + + for ( i = 0 ; i < num_verts ; i++ ) { sgSetVec3 ( getNormal ( i ), 0, -1, 0 ) ; sgSetVec4 ( getColour ( i ), 1, 1, 1, 1 ) ; @@ -39,7 +41,7 @@ *(getIndex( i )) = i ; } - for ( int i = 0 ; i < num_particles ; i++ ) + for ( i = 0 ; i < num_particles ; i++ ) { sgSetVec2 ( getTexCoord ( i*4+0 ), 0, 0 ) ; sgSetVec2 ( getTexCoord ( i*4+1 ), 1, 0 ) ; @@ -48,7 +50,7 @@ } if ( particle_create ) - for ( int i = 0 ; i < initial_num ; i++ ) + for ( i = 0 ; i < initial_num ; i++ ) (*particle_create) ( this, i, & particle [ i ] ) ; update ( 0.1 ) ; |