diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-03-02 00:54:37 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-03-02 00:54:37 +0000 |
| commit | 53859c584f203b11b9a3a9cd5600e938421f2f36 (patch) | |
| tree | fb27aaa0195f5aca5cdc436e43fbb0b81f8de3d8 /FL/x.H | |
| parent | f14de4048eb36ce1aa07d837349dc9687f6f0a61 (diff) | |
Add support for SDL as a base library on OS X.
This commit adds the basic setup in CMake to allow SDL as a base
library for FLTK on OS X (and probably for other platforms as well).
The SDL library driver set is derived from yet another new driver
set named 'Pico'. 'Pico' is a base class for a driver that will
allow porting of FLTK with the tinyest amount of effort. This
implementation of the SDL driver shall be documented very well
to explain the porting process.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/x.H')
| -rw-r--r-- | FL/x.H | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -33,6 +33,25 @@ # include "mac.H" # elif defined(ANDROID) # pragma message "A clean port requires a driver-style system for Fl_X" +# elif defined(USE_SDL) +# pragma message "FL_PORTING: write a header file based on this file, win32.H, or mac.H to define the FLTK core internals" + +//typedef void *Window; +//typedef void *Fl_Region; +//typedef void *Fl_Bitmask; +//typedef void *Fl_Offscreen; +//#include <FL/Fl_Window.H> +//class FL_EXPORT Fl_X { +//public: +// Window xid; +// Window other_xid; +// Fl_X *next; +// char wait_for_expose; +// static Fl_X* first; +// static Fl_X* i(const Fl_Window* wi) {return (Fl_X*)wi->i;} +//}; + +# include "porting.H" # elif defined(FL_PORTING) # pragma message "FL_PORTING: write a header file based on this file, win32.H, or mac.H to define the FLTK core internals" # include "porting.H" |
