- Timestamp:
- 12/18/08 14:56:30 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgmemorytest/osgmemorytest.cpp
r9154 r9395 261 261 unsigned int numVertices = _width * _height; 262 262 osg::Vec3Array* vertices = new osg::Vec3Array(numVertices); 263 for( unsignedint j=0; j<_height; ++j)264 { 265 for( unsignedi=0; i<_width; ++i)263 for(int j=0; j<_height; ++j) 264 { 265 for(int i=0; i<_width; ++i) 266 266 { 267 267 (*vertices)[i+j*_width].set(float(i),float(j),0.0f); … … 272 272 osg::DrawElementsUShort* quads = new osg::DrawElementsUShort(GL_QUADS); 273 273 quads->reserve(numIndices); 274 for( unsignedint j=0; j<_height-1; ++j)275 { 276 for( unsignedi=0; i<_width-1; ++i)274 for(int j=0; j<_height-1; ++j) 275 { 276 for(int i=0; i<_width-1; ++i) 277 277 { 278 278 quads->push_back(i + j*_width);
