diff --git a/src/GLWidget.cpp b/src/GLWidget.cpp index f331669..4989af8 100644 --- a/src/GLWidget.cpp +++ b/src/GLWidget.cpp @@ -21,6 +21,8 @@ GLWidget::GLWidget(Simulation * simulation) : simulation(simulation) { void GLWidget::initializeGL() { initializeOpenGLFunctions(); + std::cout << "OpenGL Version: " << format().majorVersion() << "." << format().minorVersion() << std::endl; + pendulaProgram = new QOpenGLShaderProgram; pendulaProgram->addShaderFromSourceFile(QOpenGLShader::Vertex, ":/shaders/vertex_pendula.glsl"); pendulaProgram->addShaderFromSourceFile(QOpenGLShader::Fragment, ":/shaders/fragment_pendula.glsl"); diff --git a/src/Simulation.h b/src/Simulation.h index b2f6ef2..5781abf 100644 --- a/src/Simulation.h +++ b/src/Simulation.h @@ -5,8 +5,6 @@ #include "Pendulum.h" #include -using namespace std::chrono; - class QTimer; class FPS; diff --git a/src/main.cpp b/src/main.cpp index 3293be6..70b48ce 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -8,7 +8,7 @@ int main(int argc, char* argv[]) { fmt.setDepthBufferSize(24); fmt.setSamples(8); fmt.setSwapInterval(1); - fmt.setVersion(3, 3); + fmt.setVersion(4, 3); fmt.setProfile(QSurfaceFormat::CoreProfile); QSurfaceFormat::setDefaultFormat(fmt);