summaryrefslogtreecommitdiff
path: root/include/vcl/opengl/OpenGLHelper.hxx
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-07-20 14:20:35 +0200
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-07-21 13:00:08 +0200
commit23c876deeb357b6306712ff0586a819176151c15 (patch)
treee511e84350e62f70c63cd9c5c1bbacbfef4d67ca /include/vcl/opengl/OpenGLHelper.hxx
parentb8f4db5bad245c2e340b3217b10df994785eecd3 (diff)
Extract getGLVersion() method to OpenGLHelper
Change-Id: If3b7a6c71164f2b55defe8c28cdce69de9283175
Diffstat (limited to 'include/vcl/opengl/OpenGLHelper.hxx')
-rw-r--r--include/vcl/opengl/OpenGLHelper.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/opengl/OpenGLHelper.hxx b/include/vcl/opengl/OpenGLHelper.hxx
index 9cc485b03646..87a71fac5ab9 100644
--- a/include/vcl/opengl/OpenGLHelper.hxx
+++ b/include/vcl/opengl/OpenGLHelper.hxx
@@ -36,6 +36,9 @@ public:
*/
static void createFramebuffer(long nWidth, long nHeight,
GLuint& nFramebufferId, GLuint& nRenderbufferTextId, GLuint& nRenderbufferColorId);
+
+ // Get OpenGL version (needs a context)
+ static float getGLVersion();
};
VCLOPENGL_DLLPUBLIC std::ostream& operator<<(std::ostream& rStrm, const glm::mat4& rMatrix);