-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain.cpp
More file actions
31 lines (23 loc) · 655 Bytes
/
Main.cpp
File metadata and controls
31 lines (23 loc) · 655 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
#include <QApplication>
#include "Src/Headers.h"
#include "Src/GLWidget.h"
//#include "matlabwrapper.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
glutInit(&argc, argv);
QGLFormat format;
format.setSampleBuffers(true);
format.setDoubleBuffer(true);
format.setRgba(true);
format.setDirectRendering(true);
format.setSamples(8);
QGLContext *context = new QGLContext(format);
GLWidget widget(context, 2000, 1200);
widget.setWindowTitle("");
widget.setGeometry(100, 100, 2000, 1200);
widget.show();
// matlab::example_2();
// matlab::example_3();
return app.exec();
}