summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-10-24 17:03:39 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-11-10 07:58:15 +0100
commit877a4be0c329927bc9d9ede7b3951b0e8624ba58 (patch)
treeef7af500b200b024fb4d0ef8af86eb41c22277c5 /include
parentf446172d5f5edd270e5021bebac5f39d11cdab83 (diff)
add a OpenGLContext::init for unix backend
That one does not need the indirection through a Window instance to get to the X resources that are necessary for a GLX context. Change-Id: I3195a5f2b447172434881bd9b0b230c8992c1c87
Diffstat (limited to 'include')
-rw-r--r--include/vcl/opengl/OpenGLContext.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx
index 2c9210366f0f..a99e6c343b2e 100644
--- a/include/vcl/opengl/OpenGLContext.hxx
+++ b/include/vcl/opengl/OpenGLContext.hxx
@@ -158,6 +158,12 @@ public:
bool init(vcl::Window* pParent = 0);
bool init(SystemChildWindow* pChildWindow);
+// these methods are for the deep platform layer, don't use them in normal code
+// only in vcl's platform code
+#if defined( UNX ) && !defined MACOSX && !defined IOS && !defined ANDROID
+ bool init(Display* dpy, Window win, int screen);
+#endif
+
void makeCurrent();
void resetCurrent();
void swapBuffers();