mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 20:48:56 +02:00
Move OpenGLVersionChecker to gl library
This commit is contained in:
parent
b7134c75c3
commit
2020514974
3 changed files with 7 additions and 7 deletions
|
@ -17,12 +17,12 @@
|
||||||
#include <QSharedMemory>
|
#include <QSharedMemory>
|
||||||
#include <QTranslator>
|
#include <QTranslator>
|
||||||
|
|
||||||
|
#include <gl/OpenGLVersionChecker.h>
|
||||||
#include <SharedUtil.h>
|
#include <SharedUtil.h>
|
||||||
|
|
||||||
#include "AddressManager.h"
|
#include "AddressManager.h"
|
||||||
#include "Application.h"
|
#include "Application.h"
|
||||||
#include "InterfaceLogging.h"
|
#include "InterfaceLogging.h"
|
||||||
#include "OpenGLVersionChecker.h"
|
|
||||||
#include "MainWindow.h"
|
#include "MainWindow.h"
|
||||||
|
|
||||||
int main(int argc, const char* argv[]) {
|
int main(int argc, const char* argv[]) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//
|
//
|
||||||
// OpenGLVersionChecker.cpp
|
// OpenGLVersionChecker.cpp
|
||||||
// interface/src
|
// libraries/gl/src/gl
|
||||||
//
|
//
|
||||||
// Created by David Rowe on 28 Jan 2016.
|
// Created by David Rowe on 28 Jan 2016.
|
||||||
// Copyright 2016 High Fidelity, Inc.
|
// Copyright 2016 High Fidelity, Inc.
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
|
|
||||||
#include "GLCanvas.h"
|
#include "GLWidget.h"
|
||||||
|
|
||||||
OpenGLVersionChecker::OpenGLVersionChecker(int& argc, char** argv) :
|
OpenGLVersionChecker::OpenGLVersionChecker(int& argc, char** argv) :
|
||||||
QApplication(argc, argv)
|
QApplication(argc, argv)
|
||||||
|
@ -25,10 +25,10 @@ bool OpenGLVersionChecker::isValidVersion() {
|
||||||
bool valid = true;
|
bool valid = true;
|
||||||
|
|
||||||
// Retrieve OpenGL version
|
// Retrieve OpenGL version
|
||||||
GLCanvas* glCanvas = new GLCanvas();
|
GLWidget* glWidget = new GLWidget();
|
||||||
glCanvas->initializeGL();
|
glWidget->initializeGL();
|
||||||
QString glVersion = QString((const char*)glGetString(GL_VERSION));
|
QString glVersion = QString((const char*)glGetString(GL_VERSION));
|
||||||
delete glCanvas;
|
delete glWidget;
|
||||||
|
|
||||||
// Compare against minimum
|
// Compare against minimum
|
||||||
// The GL_VERSION string begins with a version number in one of these forms:
|
// The GL_VERSION string begins with a version number in one of these forms:
|
|
@ -1,6 +1,6 @@
|
||||||
//
|
//
|
||||||
// OpenGLVersionChecker.h
|
// OpenGLVersionChecker.h
|
||||||
// interface/src
|
// libraries/gl/src/gl
|
||||||
//
|
//
|
||||||
// Created by David Rowe on 28 Jan 2016.
|
// Created by David Rowe on 28 Jan 2016.
|
||||||
// Copyright 2016 High Fidelity, Inc.
|
// Copyright 2016 High Fidelity, Inc.
|
Loading…
Reference in a new issue