Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 9347541fe87a5ea3f3b8dbc50f660e8e > files > 187

libQGLViewer-devel-1.3.6-1mdk.i586.rpm

#include "stereoViewer.h"
#include <qapplication.h>

int main(int argc, char** argv)
{
  // Read command lines arguments.
  QApplication application(argc,argv);

  // Instantiate the viewer with a stereo OpenGl context.
  QGLFormat format;
  format.setStereo( TRUE );
  Viewer viewer(format);
  
  // Make the viewer window visible on screen.
  viewer.show();

  // Set the viewer as the application main widget.
  application.setMainWidget(&viewer);
  
  // Run main loop.
  return application.exec();
}