Class Fl_Gl_Window_Driver, with its platform-specific derived classes, is created to hold platform-specific, OpenGL code. File gl_draw.cxx still needs to be converted to the driver model. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11716 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
93 lines
2.0 KiB
C
93 lines
2.0 KiB
C
/*
|
|
* "$Id$"
|
|
*
|
|
* Configuration file for the Fast Light Tool Kit (FLTK).
|
|
*
|
|
* Copyright 1998-2016 by Bill Spitzak and others.
|
|
*/
|
|
|
|
#ifndef FL_CONFIG_LIB_H
|
|
#define FL_CONFIG_LIB_H
|
|
|
|
#include <config.h>
|
|
|
|
|
|
/* find the right graphics configuration */
|
|
#if !defined(FL_CFG_GFX_XLIB) && !defined(FL_CFG_GFX_QUARTZ) && !defined(FL_CFG_GFX_GDI)
|
|
|
|
#ifdef __APPLE__ /* default configurations */
|
|
# define FL_CFG_GFX_QUARTZ
|
|
# ifdef HAVE_GL
|
|
# define FL_CFG_GFX_OPENGL
|
|
# endif
|
|
#elif defined(WIN32)
|
|
# define FL_CFG_GFX_GDI
|
|
# ifdef HAVE_GL
|
|
# define FL_CFG_GFX_OPENGL
|
|
# endif
|
|
#elif defined(FL_PORTING)
|
|
# pragma message "FL_PORTING: please choose a core graphics library"
|
|
#elif defined(USE_X11) /* X11 */
|
|
# define FL_CFG_GFX_XLIB
|
|
# ifdef HAVE_GL
|
|
# define FL_CFG_GFX_OPENGL
|
|
# endif
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
/* find the right printer driver configuration */
|
|
#if !defined(FL_CFG_PRN_PS) && !defined(FL_CFG_PRN_QUARTZ) && !defined(FL_CFG_PRN_WIN32)
|
|
|
|
#ifdef __APPLE__ /* default configurations */
|
|
# define FL_CFG_PRN_QUARTZ
|
|
#elif defined(WIN32)
|
|
# define FL_CFG_PRN_WIN32
|
|
#elif defined(FL_PORTING)
|
|
# pragma message "FL_PORTING: please choose a printer driver"
|
|
#elif defined(USE_X11) /* X11 */
|
|
# define FL_CFG_PRN_PS
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
/* find the right window manager configuration */
|
|
#if !defined(FL_CFG_WIN_X11) && !defined(FL_CFG_WIN_COCOA) && !defined(FL_CFG_WIN_WIN32)
|
|
|
|
#ifdef __APPLE__ /* default configurations */
|
|
# define FL_CFG_WIN_COCOA
|
|
#elif defined(WIN32)
|
|
# define FL_CFG_WIN_WIN32
|
|
#elif defined(FL_PORTING)
|
|
# pragma message "FL_PORTING: please choose a window management library"
|
|
#elif defined(USE_X11) /* X11 */
|
|
# define FL_CFG_WIN_X11
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
/* find the right system configuration */
|
|
#if !defined(FL_CFG_SYS_POSIX) && !defined(FL_CFG_SYS_WIN32)
|
|
|
|
#ifdef __APPLE__ /* default configurations */
|
|
# define FL_CFG_SYS_POSIX
|
|
#elif defined(WIN32)
|
|
# define FL_CFG_SYS_WIN32
|
|
#elif defined(FL_PORTING)
|
|
# pragma message "FL_PORTING: please choose a system library"
|
|
#elif defined(USE_X11) /* X11 */
|
|
# define FL_CFG_SYS_POSIX
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
#endif
|
|
|
|
/*
|
|
* End of "$Id$".
|
|
*/
|