diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-03-11 00:19:27 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-03-11 00:19:27 +0000 |
| commit | ac1932eaa7630d8dbe07846f027986f77afa6b5a (patch) | |
| tree | 51b9fbc9ca622eb18ef65570337e67a702dd27c9 /src/drivers/PicoAndroid/Fl_PicoAndroid_Window_Driver.H | |
| parent | 31fcd84ca990ded6b96f0e3a82adc3f38d0cdb2c (diff) | |
(incomplete) Add files required to compile for Android via Pico driver.
Don't get your hopes up just yet: this code does compile, but it doesn't fully link yet. If you like to test this, install the Android SDK and NDK, set the usual environment variables, then change into the "Android" direktory and run "mk". It will currently fail at the linker stage.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/PicoAndroid/Fl_PicoAndroid_Window_Driver.H')
| -rw-r--r-- | src/drivers/PicoAndroid/Fl_PicoAndroid_Window_Driver.H | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/drivers/PicoAndroid/Fl_PicoAndroid_Window_Driver.H b/src/drivers/PicoAndroid/Fl_PicoAndroid_Window_Driver.H new file mode 100644 index 000000000..250280a12 --- /dev/null +++ b/src/drivers/PicoAndroid/Fl_PicoAndroid_Window_Driver.H @@ -0,0 +1,51 @@ +// +// "$Id: Fl_PicoAndroid_Window_Driver.H 11017 2016-01-20 21:40:12Z matt $" +// +// Definition of Android Window interface +// for the Fast Light Tool Kit (FLTK). +// +// Copyright 2010-2016 by Bill Spitzak and others. +// +// This library is free software. Distribution and use rights are outlined in +// the file "COPYING" which should have been included with this file. If this +// file is missing or damaged, see the license at: +// +// http://www.fltk.org/COPYING.php +// +// Please report all bugs and problems on the following page: +// +// http://www.fltk.org/str.php +// + +/** + \file Fl_PicoAndroid_Window_Driver.H + \brief Definition of SDL Window interface. + */ + +#ifndef FL_PICOANDROID_WINDOW_DRIVER_H +#define FL_PICOANDROID_WINDOW_DRIVER_H + +#include "../Pico/Fl_Pico_Window_Driver.H" + +//#define __APPLE__ +//#include <SDL2/SDL.h> +//#undef __APPLE__ + + +class FL_EXPORT Fl_PicoAndroid_Window_Driver : public Fl_Pico_Window_Driver +{ +// SDL_Window *pNativeWindow; +public: + Fl_PicoAndroid_Window_Driver(Fl_Window *win); + virtual ~Fl_PicoAndroid_Window_Driver(); + + virtual Fl_X *makeWindow(); + virtual void flush(); +}; + + +#endif // FL_PICOSDL_WINDOW_DRIVER_H + +// +// End of "$Id: Fl_PicoSDL_Window_Driver.H 11017 2016-01-20 21:40:12Z matt $". +// |
