From eb8207ff1bde8a1e092e60d4b2c15336c78e3a40 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 17 Jan 2016 00:44:07 +0000 Subject: 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 --- src/Fl.cxx | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 80 insertions(+), 1 deletion(-) (limited to 'src/Fl.cxx') 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 +#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... // -- cgit v1.2.3