From 1e08d029e241d616fda18d4540d4198c6b95d0c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Wed, 26 Jun 2019 17:54:14 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@564 a8b55f48-bf90-11e4-a774-851b48703e85 --- qglview/glframebuffer.h | 2 ++ qglview/gltypes.h | 4 ++-- qglview/glvbo.h | 2 +- qglview/renderer_deferred_shading.h | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/qglview/glframebuffer.h b/qglview/glframebuffer.h index d960f5d..a1d2e8f 100644 --- a/qglview/glframebuffer.h +++ b/qglview/glframebuffer.h @@ -20,6 +20,8 @@ #define GLFRAMEBUFFER_H #include "gltypes.h" +#include + class GLFramebuffer : protected QOpenGLExtraFunctions { diff --git a/qglview/gltypes.h b/qglview/gltypes.h index fe389df..27658ec 100644 --- a/qglview/gltypes.h +++ b/qglview/gltypes.h @@ -54,7 +54,7 @@ # include # endif #endif -#include +#include #include #include #include @@ -162,7 +162,7 @@ void glDrawQuad(QOpenGLShaderProgram * prog = nullptr, QVector4D * corner_dirs = QMatrix4x4 getGLMatrix(GLenum matrix); void setGLMatrix(QMatrix4x4 matrix); inline void deleteGLTexture(GLuint & tex) {if (tex != 0) glDeleteTextures(1, &tex); tex = 0;} -//# define QGLCI if (!QOpenGLContext::currentContext()) return; QOpenGLExtraFunctions gf(QOpenGLContext::currentContext()); +//# define QGLCI if (!QOpenGLContext::currentContext()) return; QOpenGLFunctions gf(QOpenGLContext::currentContext()); //# define QGLC gf. //inline void glActiveTextureChannel(int channel) {QGLCI gf.glActiveTexture(GL_TEXTURE0 + channel);} //inline void glDisableTextures(int channels = 8) {QGLCI for (int i = channels - 1; i >= 0; --i) {glActiveTextureChannel(i); glDisable(GL_TEXTURE_2D); glDisable(GL_TEXTURE_CUBE_MAP);}} diff --git a/qglview/glvbo.h b/qglview/glvbo.h index 37024e3..2f5ed06 100644 --- a/qglview/glvbo.h +++ b/qglview/glvbo.h @@ -22,7 +22,7 @@ #include "gltypes.h" #include "chunkstream.h" -class GLVBO : protected QOpenGLExtraFunctions +class GLVBO : protected QOpenGLFunctions { friend class GLObjectBase; friend QDataStream & operator <<(QDataStream & s, const GLVBO & m); diff --git a/qglview/renderer_deferred_shading.h b/qglview/renderer_deferred_shading.h index e3fbf8f..19c567d 100644 --- a/qglview/renderer_deferred_shading.h +++ b/qglview/renderer_deferred_shading.h @@ -22,6 +22,7 @@ #include "qglview.h" #include + class RendererDeferredShading: public GLRendererBase { public: