summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-01-17 00:44:07 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-01-17 00:44:07 +0000
commiteb8207ff1bde8a1e092e60d4b2c15336c78e3a40 (patch)
treeb1c9db0aa00c0245e8d5a01c09b305ef83185f92 /src/Fl.cxx
parent3235168654b225ce256ae4b54324d68b563b9413 (diff)
Trying to create a more detaild way to configure the library, added runtime information, added an OpenGL graphics driver that renders a button on top of an OpenGL window (see test/cube).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11006 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl.cxx')
-rw-r--r--src/Fl.cxx81
1 files changed, 80 insertions, 1 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index db4e8de4e..3de2de770 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -21,7 +21,7 @@
// mostly to get around the single active context in QD and
// to implement clipping. This should be changed into pure
// Quartz calls in the near future.
-#include <config.h>
+#include "config_lib.h"
/* We require Windows 2000 features (e.g. VK definitions) */
#if defined(WIN32)
@@ -76,6 +76,85 @@ void fl_cleanup_dc_list(void);
extern double fl_mac_flush_and_wait(double time_to_wait);
#endif // WIN32
+
+//
+// Runtime configuartion flags
+//
+#ifdef FL_CFG_GFX_XLIB
+bool Fl::cfg_gfx_xlib = 1;
+#else
+bool Fl::cfg_gfx_xlib = 0;
+#endif
+#ifdef FL_CFG_GFX_QUARTZ
+bool Fl::cgf_gfx_quartz = 1;
+#else
+bool Fl::cgf_gfx_quartz = 0;
+#endif
+#ifdef FL_CFG_GFX_GDI
+bool Fl::cfg_gfx_gdi = 1;
+#else
+bool Fl::cfg_gfx_gdi = 0;
+#endif
+#ifdef FL_CFG_GFX_OPENGL
+bool Fl::cfg_gfx_opengl = 1;
+#else
+bool Fl::cfg_gfx_opengl = 0;
+#endif
+#ifdef FL_CFG_GFX_CAIRO
+bool Fl::cfg_gfx_cairo = 1;
+#else
+bool Fl::cfg_gfx_cairo = 0;
+#endif
+#ifdef FL_CFG_GFX_DIRECTX
+bool Fl::cfg_gfx_directx = 1;
+#else
+bool Fl::cfg_gfx_directx = 0;
+#endif
+
+#ifdef FL_CFG_PRN_PS
+bool Fl::cfg_prn_ps = 1;
+#else
+bool Fl::cfg_prn_ps = 0;
+#endif
+#ifdef FL_CFG_PRN_QUARTZ
+bool Fl::cgf_prn_quartz = 1;
+#else
+bool Fl::cgf_prn_quartz = 0;
+#endif
+#ifdef FL_CFG_PRN_GDI
+bool Fl::cfg_prn_gdi = 1;
+#else
+bool Fl::cfg_prn_gdi = 0;
+#endif
+
+#ifdef FL_CFG_WIN_X11
+bool Fl::cfg_win_x11 = 1;
+#else
+bool Fl::cfg_win_x11 = 0;
+#endif
+#ifdef FL_CFG_WIN_COCOA
+bool Fl::cgf_win_cocoa = 1;
+#else
+bool Fl::cgf_win_cocoa = 0;
+#endif
+#ifdef FL_CFG_WIN_WIN32
+bool Fl::cfg_win_win32 = 1;
+#else
+bool Fl::cfg_win_win32 = 0;
+#endif
+
+#ifdef FL_SYS_POSIX
+bool Fl::cfg_sys_posix = 1;
+#else
+bool Fl::cfg_sys_posix = 0;
+#endif
+#ifdef FL_SYS_WIN32
+bool Fl::cfg_sys_win32 = 1;
+#else
+bool Fl::cfg_sys_win32 = 0;
+#endif
+
+
//
// Globals...
//