diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-07-20 14:20:35 +0200 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-07-21 13:00:08 +0200 |
commit | 23c876deeb357b6306712ff0586a819176151c15 (patch) | |
tree | e511e84350e62f70c63cd9c5c1bbacbfef4d67ca /include/vcl/opengl/OpenGLHelper.hxx | |
parent | b8f4db5bad245c2e340b3217b10df994785eecd3 (diff) |
Extract getGLVersion() method to OpenGLHelper
Change-Id: If3b7a6c71164f2b55defe8c28cdce69de9283175
Diffstat (limited to 'include/vcl/opengl/OpenGLHelper.hxx')
-rw-r--r-- | include/vcl/opengl/OpenGLHelper.hxx | 3 |
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); |