main.cpp
866 Bytes
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
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "trueeyes.h"
#include <QtGui/QApplication>
#include "GLWidget.h"
#include "rtsGUIConsole.h"
GLWidget* gpRenderWindow;
int main(int argc, char *argv[])
{
//create the main application
QApplication a(argc, argv);
//create the UI window
TrueEyes w;
w.show();
w.move(0, 0);
QRect frame = w.frameGeometry();
//create a console for debugging
RedirectIOToConsole(0, frame.height(), frame.width());
//create the render camera
VolumeSource camera;
camera.Name = "camera";
SourceList.push_back(camera);
//create the OpenGL render window
gpRenderWindow = new GLWidget();
gpRenderWindow->show();
gpRenderWindow->setGeometry(frame.width(), 0, frame.height(), frame.height());
return a.exec();
cout<<"Removing all volume textures..."<<endl;
//delete all textures
for(int t=0; t<VolumeList.size(); t++)
VolumeList[t].Texture.Clean();
}