--- a/src/gl/common.h Wed Jun 22 23:51:06 2022 +0300 +++ b/src/gl/common.h Sun Jun 26 19:44:45 2022 +0300 @@ -20,10 +20,10 @@ #include <QWidget> #include <QColor> #include <QOpenGLBuffer> -#include <QOpenGLFunctions> #include <QOpenGLShader> #include <QOpenGLShaderProgram> #include <QOpenGLVertexArrayObject> +#include <QOpenGLFunctions> #include <glm/gtc/type_ptr.hpp> #include "basics.h" #include "colors.h" @@ -47,6 +47,8 @@ } }; +QOpenGLFunctions& glfunc(); + namespace gl { class ShaderProgram; @@ -84,8 +86,6 @@ } }; -extern QOpenGLFunctions glfunc; - namespace gl { // Different ways to render the scene