DeferredRenderer 1.0

main.cpp File Reference

#include <QApplication>
#include "Application.h"
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 4 of file main.cpp.

{
    QApplication a(argc, argv);

    // grab an instance of the OpenGL Format class
    QGLFormat glFormat = QGLFormat::defaultFormat();
    // enable the SampleBuffer to allow for multisample
    glFormat.setSampleBuffers(true);
    // set the number of Samples per pixel
    glFormat.setSamples(4);
    // now set this as the default for all OpenGL windows created
    QGLFormat::setDefaultFormat(glFormat);

    Application app;

    app.show();

    return a.exec();
}
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines