Changeset 297
- Timestamp:
- 10/16/06 08:56:07 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Dirk_RenderTraversalWork/Tools/osgBench/TestWindow.cpp
r279 r297 54 54 _width(-1), _height(-1), _scene(OSG::NullFC), _window(OSG::NullFC), _ssm(NULL), 55 55 _open(false), _left(0), _right(1), _top(1), _bottom(0), 56 _near(0.1), _far(100), _fov(1), _beacon(OSG::NullFC) 56 _near(0.1), _far(100), _fov(1), _beacon(OSG::NullFC), 57 _winid(-1) 57 58 { 58 59 } … … 60 61 TestWindow::~TestWindow() 61 62 { 63 if(_winid != -1) 64 glutDestroyWindow(_winid); 62 65 if(_window != OSG::NullFC) 63 66 OSG::subRef(_window); … … 239 242 glutInitWindowSize(_width, _height); 240 243 241 intwinid = glutCreateWindow("OpenSG Benchmark");244 _winid = glutCreateWindow("OpenSG Benchmark"); 242 245 243 246 if(_width < 0) … … 253 256 update(); 254 257 255 _window->setId( winid);258 _window->setId(_winid); 256 259 _window->init(); 257 260 branches/Dirk_RenderTraversalWork/Tools/osgBench/TestWindow.h
r213 r297 117 117 118 118 bool _open; 119 int _winid; 119 120 }; 120 121 branches/Dirk_RenderTraversalWork/Tools/osgBench/make_cubes.py
r213 r297 9 9 test.setNFrames(100) 10 10 11 nc= 111 nc=3 12 12 13 res= 6413 res=2 14 14 scene=Group() 15 15 for i in range(-nc,nc): … … 22 22 addRef(scene) 23 23 24 scene.save(" few_high_cubes.osb")24 scene.save("some_cubes.osb") 25 25 26 26 test=Test()
