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.
This commit is contained in:
@@ -39,10 +39,11 @@ int main( int argc, char **argv )
|
||||
viewer.setUpViewAcrossAllScreens();
|
||||
viewer.realize();
|
||||
|
||||
bool limitNumberOfFrames = false;
|
||||
unsigned int numFrames = 0;
|
||||
unsigned int maxFrames = 100;
|
||||
|
||||
while(!viewer.done() && numFrames<maxFrames)
|
||||
while(!viewer.done() && !(limitNumberOfFrames && numFrames>=maxFrames))
|
||||
{
|
||||
viewer.frame();
|
||||
++numFrames;
|
||||
|
||||
Reference in New Issue
Block a user