diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-03-11 22:01:55 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-03-11 22:01:55 +0000 |
| commit | 823a6cc2adebca1146fac784d6b9844263bd477b (patch) | |
| tree | 3e9f7269f347cdb55c0bf03b55fc22fa8e25e930 /src/drivers/PicoAndroid/Fl_PicoAndroid_Screen_Driver.H | |
| parent | f11fe83e5ece71bf85d10079bafa10763cb674d2 (diff) | |
Android "Hello" compiles and runs!
http://matthiasm.com/andoidFLTK.jpg
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11351 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/PicoAndroid/Fl_PicoAndroid_Screen_Driver.H')
| -rw-r--r-- | src/drivers/PicoAndroid/Fl_PicoAndroid_Screen_Driver.H | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/drivers/PicoAndroid/Fl_PicoAndroid_Screen_Driver.H b/src/drivers/PicoAndroid/Fl_PicoAndroid_Screen_Driver.H index e9b10fb5a..b966312c9 100644 --- a/src/drivers/PicoAndroid/Fl_PicoAndroid_Screen_Driver.H +++ b/src/drivers/PicoAndroid/Fl_PicoAndroid_Screen_Driver.H @@ -30,20 +30,35 @@ #include <jni.h> #include <errno.h> +#include <EGL/egl.h> +#include <GLES/gl.h> + #include <android/sensor.h> #include <android/log.h> #include <android_native_app_glue.h> +class Fl_PicoAndroid_Window_Driver; + class FL_EXPORT Fl_PicoAndroid_Screen_Driver : public Fl_Pico_Screen_Driver { + friend class Fl_PicoAndroid_Window_Driver; + struct android_app* pApp; + EGLDisplay pDisplay; + EGLSurface pSurface; + EGLContext pContext; + int32_t pWidth; + int32_t pHeight; static void handleAppCmdCB(struct android_app* app, int32_t cmd); void handleAppCmd(struct android_app* app, int32_t cmd); static int32_t handleInputEventCB(struct android_app* app, AInputEvent* event); int32_t handleInputEvent(struct android_app* app, AInputEvent* event); + void initDisplay(); + void termDisplay(); + void drawFrame(); public: Fl_PicoAndroid_Screen_Driver(); |
