summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl.H2
-rw-r--r--FL/Fl_Gl_Window.H24
2 files changed, 25 insertions, 1 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index 65dd2d706..a768a8220 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -146,7 +146,7 @@ public: // run time information about compile time configuration
static bool cfg_gfx_gdi; ///< GDI redering available, usually on MSWindows systems
static bool cfg_gfx_opengl; ///< OpenGL redering available, available on many platforms
static bool cfg_gfx_cairo; ///< Cairo redering available, available on many platforms
- static bool cfg_gfx_directx;///< DirectX redering available, available on many platforms
+ static bool cfg_gfx_directx;///< DirectX redering available, usually on MSWindows systems
/** @} */
/** \defgroup cfg_prn runtime printer driver configuration */
/** @{ */
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.