diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-11-04 17:31:12 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-10 07:59:03 +0100 |
commit | 42dbcedc73c8daf4753ab85796ea4b9494494ce3 (patch) | |
tree | 74df9994b6d88637340a3719329ff1a420d3cbe5 /include/vcl/opengl | |
parent | 73b1ef159b92e84c3b72fd0a772714761f5c3dac (diff) |
vcl: Get visual info for window from GLX when needed
Change-Id: Id8cea87391835694e20aa703b7fdb3f13434d47b
Diffstat (limited to 'include/vcl/opengl')
-rw-r--r-- | include/vcl/opengl/OpenGLHelper.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/vcl/opengl/OpenGLHelper.hxx b/include/vcl/opengl/OpenGLHelper.hxx index be2dfda1559c..b237fc8874cc 100644 --- a/include/vcl/opengl/OpenGLHelper.hxx +++ b/include/vcl/opengl/OpenGLHelper.hxx @@ -16,6 +16,12 @@ #include <rtl/ustring.hxx> +#if defined UNX && !defined MACOSX && !defined IOS && !defined ANDROID +# include <prex.h> +# include "GL/glxew.h" +# include <postx.h> +#endif + class VCLOPENGL_DLLPUBLIC OpenGLHelper { public: @@ -51,6 +57,10 @@ public: * checks if the system supports all features that are necessary for the OpenGL VCL support */ static bool supportsVCLOpenGL(); + +#if defined UNX && !defined MACOSX && !defined IOS && !defined ANDROID + static bool GetVisualInfo(Display* pDisplay, int nScreen, XVisualInfo& rVI); +#endif }; #define CHECK_GL_ERROR() OpenGLHelper::checkGLError(__FILE__, __LINE__) |