From 23c876deeb357b6306712ff0586a819176151c15 Mon Sep 17 00:00:00 2001 From: Zolnai Tamás Date: Sun, 20 Jul 2014 14:20:35 +0200 Subject: Extract getGLVersion() method to OpenGLHelper Change-Id: If3b7a6c71164f2b55defe8c28cdce69de9283175 --- include/vcl/opengl/OpenGLHelper.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/vcl/opengl/OpenGLHelper.hxx') 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); -- cgit