DeferredRenderer 1.0
|
00001 #include <QApplication> 00002 #include "Application.h" 00003 00004 int main(int argc, char** argv) 00005 { 00006 QApplication a(argc, argv); 00007 00008 // grab an instance of the OpenGL Format class 00009 QGLFormat glFormat = QGLFormat::defaultFormat(); 00010 // enable the SampleBuffer to allow for multisample 00011 glFormat.setSampleBuffers(true); 00012 // set the number of Samples per pixel 00013 glFormat.setSamples(4); 00014 // now set this as the default for all OpenGL windows created 00015 QGLFormat::setDefaultFormat(glFormat); 00016 00017 Application app; 00018 00019 app.show(); 00020 00021 return a.exec(); 00022 }