tumvis.cpp 647 Bytes
Newer Older
schultezub's avatar
schultezub committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "tgt/camera.h"
#include "tgt/qt/qtapplication.h"
#include "tgt/qt/qtcanvas.h"

#include "tumvispainter.h"

namespace TUMVis {

    int main(int argc, char** argv) {  
        tgt::QtApplication* app = new tgt::QtApplication(argc, argv);
        tgt::QtCanvas* canvas = new tgt::QtCanvas("TUMVis");

        app->addCanvas(canvas);  

        app->init();  

        tgt::Camera camera;  
        canvas->setCamera(&camera);  
        TumVisPainter painter(canvas);  
        canvas->setPainter(&painter);  

        app->run();  

        delete canvas;  
        delete app;  

        return 0;  
    }

}