working on GL

This commit is contained in:
Jared Bruni
2020-01-23 12:12:01 -08:00
parent 086ad688d5
commit 310e6a455b
4 changed files with 29 additions and 17 deletions

View File

@@ -150,7 +150,7 @@ AC_MainWindow::AC_MainWindow(QWidget *parent) : QMainWindow(parent) {
define_window = new DefineWindow(this);
define_window->hide();
define_window->main_window = this;
gl_display = new glDisplayWindow();
/*
QString arg = "http://lostsidedead.com/ac/version.txt";
QUrl url = QUrl::fromEncoded(arg.toLocal8Bit());
@@ -510,6 +510,10 @@ void AC_MainWindow::createMenu() {
controls_showvideo->setShortcut(tr("Ctrl+V"));
controls_menu->addAction(controls_showvideo);
show_glDisplay = new QAction(tr("Show OpenGL Display"), this);
show_glDisplay->setShortcut(tr("Ctrl+G"));
connect(show_glDisplay, SIGNAL(triggered()), this, SLOT(showGLDisplay()));
controls_menu->addAction(show_glDisplay);
show_fullscreen = new QAction(tr("Enter Full Screen"), this);
show_image_window = new QAction(tr("Show Image Window"), this);
controls_menu->addAction(show_fullscreen);
@@ -1758,3 +1762,7 @@ void AC_MainWindow::prev_filter() {
filters->setCurrentIndex(index);
}
}
void AC_MainWindow::showGLDisplay() {
gl_display->show();
}