Show
Ignore:
Timestamp:
12/24/06 17:40:19 (7 years ago)
Author:
robert
Message:

Unified the osg::GraphicsThread::Operation and osg::GraphicsContext::Operation classes
as osg::GraphicsOperation?. Unpdated parts of OSG depending upon these.

Added a virtaul bool valid() method to osg::GraphicsContext? to allow apps to
test whether a valid graphis context has been created or not.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgcamera/osgcamera.cpp

    r5845 r5846  
    4040    viewer.realize(); 
    4141 
     42    bool limitNumberOfFrames = false; 
    4243    unsigned int numFrames = 0; 
    4344    unsigned int maxFrames = 100; 
    4445 
    45     while(!viewer.done() && numFrames<maxFrames) 
     46    while(!viewer.done() && !(limitNumberOfFrames && numFrames>=maxFrames)) 
    4647    { 
    4748        viewer.frame();