summaryrefslogtreecommitdiff
path: root/FL/Fl_Gl_Window.H
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-01-18 22:55:46 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-01-18 22:55:46 +0000
commitb86f2f735a004a66f62f70ec30aea01b828731bd (patch)
tree1352d35984db4800527aadce0b700bf4dfd42a13 /FL/Fl_Gl_Window.H
parent884928f68c6403947abb65b246a3bb3f2b23d6bf (diff)
Replaced static initializer with Fl_OpenGL_Display_Device.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11008 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Gl_Window.H')
-rw-r--r--FL/Fl_Gl_Window.H24
1 files changed, 24 insertions, 0 deletions
diff --git a/FL/Fl_Gl_Window.H b/FL/Fl_Gl_Window.H
index 18725d08b..18188589a 100644
--- a/FL/Fl_Gl_Window.H
+++ b/FL/Fl_Gl_Window.H
@@ -24,6 +24,30 @@
#include "Fl_Window.H"
+
+// ------ this should be in a separate file! -----------------------------------
+#ifdef FL_CFG_GFX_OPENGL
+
+#include <FL/Fl_Device.h>
+
+class Fl_OpenGL_Graphics_Driver;
+/**
+ OpenGL Surface.
+ This surface is needed as an interface between GL windows and the GL graphics driver.
+ */
+class FL_EXPORT Fl_OpenGL_Display_Device : public Fl_Surface_Device {
+public:
+ static const char *class_id;
+ const char *class_name() {return class_id;};
+ Fl_OpenGL_Display_Device(Fl_OpenGL_Graphics_Driver *graphics_driver);
+ static Fl_OpenGL_Display_Device *display_device();
+};
+
+#endif
+// ------ end of separate file! ------------------------------------------------
+
+
+
#ifndef GLContext
/**
Opaque pointer type to hide system specific implementation.