2023-04-28 15:53:07 +05:00
|
|
|
#include <QtWidgets/QApplication>
|
|
|
|
#include <QMainWindow>
|
2023-05-04 13:17:42 +05:00
|
|
|
#include <QTimer>
|
2023-04-28 15:53:07 +05:00
|
|
|
#include "ui_mainwindow.h"
|
|
|
|
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
QMainWindow w;
|
|
|
|
Ui::MainWindow ui;
|
|
|
|
ui.setupUi(&w);
|
2023-05-04 13:21:34 +05:00
|
|
|
QTimer timer_draw;
|
|
|
|
QTimer timer_cam;
|
|
|
|
w.connect(&timer_draw, SIGNAL(timeout()), ui.openGLWidget, SLOT(paintGL()));
|
|
|
|
w.connect(&timer_cam, SIGNAL(timeout()), ui.openGLWidget, SLOT(update_camera()));
|
|
|
|
timer_draw.start(16);
|
|
|
|
timer_cam.start(16);
|
2023-04-28 15:53:07 +05:00
|
|
|
w.show();
|
|
|
|
return app.exec();
|
|
|
|
}
|