diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-01-23 01:33:47 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-01-23 18:12:47 +0100 |
| commit | 04ccc8cc46c45b81e6138bec0b48a188c4ffe406 (patch) | |
| tree | 3ad8604f5d433dc6b6c294c28549a58dd57efcbd /src/drivers/PicoAndroid/Fl_PicoAndroid_Graphics_Driver.cxx | |
| parent | b275ff07158e80d1744ddb2f6c51094a87cf079a (diff) | |
Remove experimental platforms Android, Pico, SDL (PR #376)
... as discussed in fltk.coredev: "FLTK 1.4.0 release schedule"
https://groups.google.com/g/fltkcoredev/c/PDbHTRpXVh0/m/JqboexZ_AwAJ
Diffstat (limited to 'src/drivers/PicoAndroid/Fl_PicoAndroid_Graphics_Driver.cxx')
| -rw-r--r-- | src/drivers/PicoAndroid/Fl_PicoAndroid_Graphics_Driver.cxx | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/src/drivers/PicoAndroid/Fl_PicoAndroid_Graphics_Driver.cxx b/src/drivers/PicoAndroid/Fl_PicoAndroid_Graphics_Driver.cxx deleted file mode 100644 index 856c89d6d..000000000 --- a/src/drivers/PicoAndroid/Fl_PicoAndroid_Graphics_Driver.cxx +++ /dev/null @@ -1,97 +0,0 @@ -// -// Rectangle drawing routines for the Fast Light Tool Kit (FLTK). -// -// Copyright 1998-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: -// -// https://www.fltk.org/COPYING.php -// -// Please see the following page on how to report bugs and issues: -// -// https://www.fltk.org/bugs.php -// - - -#include <config.h> -#include "Fl_PicoAndroid_Graphics_Driver.h" - -#include <jni.h> -#include <errno.h> - -#include <EGL/egl.h> -#include <GLES/gl.h> - -#include <android/log.h> -#include <android_native_app_glue.h> - -#include <FL/Fl.H> - -#define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, "native-activity", __VA_ARGS__)) - - -/* - By linking this module, the following static method will instantiate the - PicoSDL Graphics driver as the main display driver. - */ -Fl_Graphics_Driver *Fl_Graphics_Driver::newMainGraphicsDriver() -{ - return new Fl_PicoAndroid_Graphics_Driver(); -} - - -void Fl_PicoAndroid_Graphics_Driver::rectf(int x, int y, int w, int h) -{ - GLfloat q3[] = { - x, y, - x, y+h-3, - x+w-3, y+h-3, - x+w-3, y - }; - - uchar r, g, b; - Fl::get_color(Fl_Graphics_Driver::color(), r, g, b); - glColor4ub(r, g, b, 255); - - glEnableClientState(GL_VERTEX_ARRAY); - glVertexPointer(2, GL_FLOAT, 0, q3); - glDrawArrays(GL_TRIANGLE_FAN, 0, 4); - glDisableClientState(GL_VERTEX_ARRAY); -} - - -void Fl_PicoAndroid_Graphics_Driver::line(int x, int y, int x1, int y1) -{ - GLfloat q3[] = { - x, y, - x1, y1 - }; - - uchar r, g, b; - Fl::get_color(Fl_Graphics_Driver::color(), r, g, b); - glColor4ub(r, g, b, 255); - - glEnableClientState(GL_VERTEX_ARRAY); - glVertexPointer(2, GL_FLOAT, 0, q3); - glDrawArrays(GL_LINES, 0, 2); - glDisableClientState(GL_VERTEX_ARRAY); -} - - -void Fl_PicoAndroid_Graphics_Driver::point(int x, int y) -{ - GLfloat q3[] = { - x, y - }; - - uchar r, g, b; - Fl::get_color(Fl_Graphics_Driver::color(), r, g, b); - glColor4ub(r, g, b, 255); - - glEnableClientState(GL_VERTEX_ARRAY); - glVertexPointer(2, GL_FLOAT, 0, q3); - glDrawArrays(GL_POINTS, 0, 1); - glDisableClientState(GL_VERTEX_ARRAY); -} |
