diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2018-03-10 00:46:12 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2018-03-10 00:46:12 +0000 |
| commit | c0cbf0fbde0ac33d3743a6d50bf0fa9f6664a008 (patch) | |
| tree | 8fb9b3e1db8bfef8052deb549af986023fc86915 /FL/platform_types.h | |
| parent | dc2fb581b76ea84ebd70a7ced1291dd26b40fc71 (diff) | |
Android: crude graphics clipping
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12726 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/platform_types.h')
| -rw-r--r-- | FL/platform_types.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/FL/platform_types.h b/FL/platform_types.h index 226ce5958..286fc68d1 100644 --- a/FL/platform_types.h +++ b/FL/platform_types.h @@ -112,6 +112,20 @@ typedef struct HGLRC__ *GLContext; #include <sys/stat.h> struct dirent {char d_name[1];}; +#elif defined(__ANDROID__) + +// see: src/driver/Android/Fl_Android_Graphics_Driver_region.cxx +typedef struct Fl_Clip_Rect *Fl_Region; + +// TODO: the types below have not yet been ported +typedef unsigned long Fl_Offscreen; +typedef unsigned long Fl_Bitmask; +typedef int FL_SOCKET; +typedef struct __GLXcontextRec *GLContext; +#include <sys/stat.h> +#include <sys/types.h> +#include <dirent.h> + #elif defined(FL_PORTING) # pragma message "FL_PORTING: define OS-dependent types" typedef void* Fl_Offscreen; |
