├── .gitignore ├── License.md ├── ReadMe.md ├── build.gradle ├── docs ├── Glues │ ├── License.txt │ └── ReadMe.txt ├── Import_to_AS_summary.txt ├── KenLab3d │ ├── Comments.txt │ ├── Faq.txt │ ├── Install.txt │ ├── JspenguinChanges.txt │ ├── ReadMe.txt │ └── Run.txt ├── LodePNG │ ├── License.txt │ └── ReadMe.md └── SDL2 │ ├── BUGS.txt │ ├── COPYING.txt │ ├── CREDITS.txt │ ├── INSTALL.txt │ ├── README-SDL.txt │ ├── README.txt │ ├── TODO.txt │ └── WhatsNew.txt ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── images ├── Ken_android_screen.jpg ├── Ken_motorola_droid_4.jpg ├── ic_launcher-web.png ├── ken_icon.bmp ├── ken_icon.ico └── src │ └── overlay_controls_source.xcf ├── kenlab3d ├── build.gradle └── src │ └── main │ ├── AndroidManifest.xml │ ├── assets │ └── KenLabData │ │ ├── BOARDS.KZP │ │ ├── HELPME.DOC │ │ ├── HINTS.TXT │ │ ├── HISCORE.DAT │ │ ├── INSTS.DAT │ │ ├── LAB3D.KZP │ │ ├── README.TXT │ │ ├── SAVGAME4.DAT │ │ ├── SAVGAME5.DAT │ │ ├── SAVGAME6.DAT │ │ ├── SAVGAME7.DAT │ │ ├── SONGS.KZP │ │ ├── SOUNDS.KZP │ │ ├── STORY.KZP │ │ ├── TABLES.DAT │ │ ├── WALLS.KZP │ │ ├── hires │ │ ├── alien-hurt.png │ │ ├── alien.png │ │ ├── bat-0.png │ │ ├── bat-1.png │ │ ├── bat-2.png │ │ ├── bee-0.png │ │ ├── bee-1.png │ │ ├── bee-2.png │ │ ├── bee-3.png │ │ ├── bee-4.png │ │ ├── bee-5.png │ │ ├── bigshadow.png │ │ ├── bul1fly-0.png │ │ ├── bul1fly-1.png │ │ ├── bul1fly-2.png │ │ ├── bul1get.png │ │ ├── bul2fly-0.png │ │ ├── bul2fly-1.png │ │ ├── bul2get.png │ │ ├── bul3fly-center-0.png │ │ ├── bul3fly-center-1.png │ │ ├── bul3fly-left-0.png │ │ ├── bul3fly-left-1.png │ │ ├── bul3fly-right-0.png │ │ ├── bul3fly-right-1.png │ │ ├── bul3get.png │ │ ├── bul3halfly-0.png │ │ ├── bul3halfly-1.png │ │ ├── bul4fly.png │ │ ├── bul5fly-0.png │ │ ├── bul5fly-1.png │ │ ├── door2-0.png │ │ ├── door2-1.png │ │ ├── door2-2.png │ │ ├── door2-3.png │ │ ├── door2-4.png │ │ ├── door2-5.png │ │ ├── earmonster-0.png │ │ ├── earmonster-1.png │ │ ├── earmonster-2.png │ │ ├── earmonster-3.png │ │ ├── earmonster-4.png │ │ ├── emptybulstand.png │ │ ├── explosion.png │ │ ├── extralife.png │ │ ├── getcompass.png │ │ ├── ghost-0.png │ │ ├── ghost-1.png │ │ ├── ghost-2.png │ │ ├── goldlock.png │ │ ├── hole.png │ │ ├── ken.png │ │ ├── kenboss-trans-0.png │ │ ├── kenboss-trans-1.png │ │ ├── kenboss-trans-2.png │ │ ├── kenface.png │ │ ├── kenfaceouch.png │ │ ├── light.png │ │ ├── lightning.png │ │ ├── lightshadow.png │ │ ├── medshadow.png │ │ ├── miniexplosion.png │ │ ├── rainbow.png │ │ ├── robot1.png │ │ ├── robot2.png │ │ ├── robot3.png │ │ ├── robot4.png │ │ ├── robot5.png │ │ ├── robot6.png │ │ ├── robot7.png │ │ ├── robot8.png │ │ ├── silverlock.png │ │ ├── smallshadow.png │ │ ├── spider-0.png │ │ ├── spider-1.png │ │ ├── spider-2.png │ │ ├── spider-3.png │ │ ├── spider-4.png │ │ ├── spider-5.png │ │ ├── trans0.png │ │ ├── trans1.png │ │ └── warp.png │ │ ├── ksmmidi.txt │ │ ├── wallparams.ini │ │ └── wallparams_pc.ini │ ├── cpp │ ├── Android.mk │ ├── CMakeLists.txt │ ├── Glues │ │ ├── glu.h │ │ ├── glues.h │ │ ├── glues_error.c │ │ ├── glues_error.h │ │ ├── glues_mipmap.c │ │ ├── glues_mipmap.h │ │ ├── glues_project.c │ │ ├── glues_project.h │ │ ├── glues_quad.c │ │ ├── glues_quad.h │ │ ├── glues_registry.c │ │ └── glues_registry.h │ ├── KenLab3D │ │ ├── Android.mk │ │ ├── adlibemu.c │ │ ├── adlibemu.h │ │ ├── androidutils.c │ │ ├── graphx.c │ │ ├── init.c │ │ ├── lab3d.c │ │ ├── lab3d.h │ │ ├── oldlab3d.c │ │ ├── sdl2keyhelper.c │ │ ├── sdl2keyhelper.h │ │ ├── setup.c │ │ └── subs.c │ ├── LodePNG │ │ ├── lodepng.c │ │ └── lodepng.h │ ├── SDL2 │ │ ├── Android.mk │ │ ├── include │ │ │ ├── SDL.h │ │ │ ├── SDL_assert.h │ │ │ ├── SDL_atomic.h │ │ │ ├── SDL_audio.h │ │ │ ├── SDL_bits.h │ │ │ ├── SDL_blendmode.h │ │ │ ├── SDL_clipboard.h │ │ │ ├── SDL_config.h │ │ │ ├── SDL_config_android.h │ │ │ ├── SDL_copying.h │ │ │ ├── SDL_cpuinfo.h │ │ │ ├── SDL_egl.h │ │ │ ├── SDL_endian.h │ │ │ ├── SDL_error.h │ │ │ ├── SDL_events.h │ │ │ ├── SDL_filesystem.h │ │ │ ├── SDL_gamecontroller.h │ │ │ ├── SDL_gesture.h │ │ │ ├── SDL_haptic.h │ │ │ ├── SDL_hints.h │ │ │ ├── SDL_joystick.h │ │ │ ├── SDL_keyboard.h │ │ │ ├── SDL_keycode.h │ │ │ ├── SDL_loadso.h │ │ │ ├── SDL_log.h │ │ │ ├── SDL_main.h │ │ │ ├── SDL_messagebox.h │ │ │ ├── SDL_mouse.h │ │ │ ├── SDL_mutex.h │ │ │ ├── SDL_name.h │ │ │ ├── SDL_opengl.h │ │ │ ├── SDL_opengl_glext.h │ │ │ ├── SDL_opengles.h │ │ │ ├── SDL_pixels.h │ │ │ ├── SDL_platform.h │ │ │ ├── SDL_power.h │ │ │ ├── SDL_quit.h │ │ │ ├── SDL_rect.h │ │ │ ├── SDL_render.h │ │ │ ├── SDL_revision.h │ │ │ ├── SDL_rwops.h │ │ │ ├── SDL_scancode.h │ │ │ ├── SDL_shape.h │ │ │ ├── SDL_stdinc.h │ │ │ ├── SDL_surface.h │ │ │ ├── SDL_system.h │ │ │ ├── SDL_syswm.h │ │ │ ├── SDL_thread.h │ │ │ ├── SDL_timer.h │ │ │ ├── SDL_touch.h │ │ │ ├── SDL_types.h │ │ │ ├── SDL_version.h │ │ │ ├── SDL_video.h │ │ │ ├── begin_code.h │ │ │ └── close_code.h │ │ └── src │ │ │ ├── SDL.c │ │ │ ├── SDL_assert.c │ │ │ ├── SDL_assert_c.h │ │ │ ├── SDL_error.c │ │ │ ├── SDL_error_c.h │ │ │ ├── SDL_hints.c │ │ │ ├── SDL_internal.h │ │ │ ├── SDL_log.c │ │ │ ├── atomic │ │ │ ├── SDL_atomic.c │ │ │ └── SDL_spinlock.c │ │ │ ├── audio │ │ │ ├── SDL_audio.c │ │ │ ├── SDL_audio_c.h │ │ │ ├── SDL_audiocvt.c │ │ │ ├── SDL_audiodev.c │ │ │ ├── SDL_audiodev_c.h │ │ │ ├── SDL_audiomem.h │ │ │ ├── SDL_audiotypecvt.c │ │ │ ├── SDL_mixer.c │ │ │ ├── SDL_sysaudio.h │ │ │ ├── SDL_wave.c │ │ │ ├── SDL_wave.h │ │ │ └── android │ │ │ │ ├── SDL_androidaudio.c │ │ │ │ └── SDL_androidaudio.h │ │ │ ├── core │ │ │ └── android │ │ │ │ ├── SDL_android.c │ │ │ │ └── SDL_android.h │ │ │ ├── cpuinfo │ │ │ └── SDL_cpuinfo.c │ │ │ ├── dynapi │ │ │ ├── SDL_dynapi.c │ │ │ ├── SDL_dynapi.h │ │ │ ├── SDL_dynapi_overrides.h │ │ │ └── SDL_dynapi_procs.h │ │ │ ├── events │ │ │ ├── SDL_clipboardevents.c │ │ │ ├── SDL_clipboardevents_c.h │ │ │ ├── SDL_dropevents.c │ │ │ ├── SDL_dropevents_c.h │ │ │ ├── SDL_events.c │ │ │ ├── SDL_events_c.h │ │ │ ├── SDL_gesture.c │ │ │ ├── SDL_gesture_c.h │ │ │ ├── SDL_keyboard.c │ │ │ ├── SDL_keyboard_c.h │ │ │ ├── SDL_mouse.c │ │ │ ├── SDL_mouse_c.h │ │ │ ├── SDL_quit.c │ │ │ ├── SDL_sysevents.h │ │ │ ├── SDL_touch.c │ │ │ ├── SDL_touch_c.h │ │ │ ├── SDL_windowevents.c │ │ │ ├── SDL_windowevents_c.h │ │ │ ├── blank_cursor.h │ │ │ ├── default_cursor.h │ │ │ └── scancodes_linux.h │ │ │ ├── file │ │ │ └── SDL_rwops.c │ │ │ ├── filesystem │ │ │ └── android │ │ │ │ └── SDL_sysfilesystem.c │ │ │ ├── joystick │ │ │ ├── SDL_gamecontroller.c │ │ │ ├── SDL_gamecontrollerdb.h │ │ │ ├── SDL_joystick.c │ │ │ ├── SDL_joystick_c.h │ │ │ ├── SDL_sysjoystick.h │ │ │ └── android │ │ │ │ ├── SDL_sysjoystick.c │ │ │ │ └── SDL_sysjoystick_c.h │ │ │ ├── libm │ │ │ ├── math_libm.h │ │ │ └── math_private.h │ │ │ ├── loadso │ │ │ └── dlopen │ │ │ │ └── SDL_sysloadso.c │ │ │ ├── main │ │ │ └── android │ │ │ │ └── SDL_android_main.c │ │ │ ├── render │ │ │ ├── SDL_render.c │ │ │ ├── SDL_sysrender.h │ │ │ ├── SDL_yuv_sw.c │ │ │ ├── SDL_yuv_sw_c.h │ │ │ ├── opengles │ │ │ │ ├── SDL_glesfuncs.h │ │ │ │ └── SDL_render_gles.c │ │ │ └── software │ │ │ │ ├── SDL_blendfillrect.c │ │ │ │ ├── SDL_blendfillrect.h │ │ │ │ ├── SDL_blendline.c │ │ │ │ ├── SDL_blendline.h │ │ │ │ ├── SDL_blendpoint.c │ │ │ │ ├── SDL_blendpoint.h │ │ │ │ ├── SDL_draw.h │ │ │ │ ├── SDL_drawline.c │ │ │ │ ├── SDL_drawline.h │ │ │ │ ├── SDL_drawpoint.c │ │ │ │ ├── SDL_drawpoint.h │ │ │ │ ├── SDL_render_sw.c │ │ │ │ ├── SDL_render_sw_c.h │ │ │ │ ├── SDL_rotate.c │ │ │ │ └── SDL_rotate.h │ │ │ ├── stdlib │ │ │ ├── SDL_getenv.c │ │ │ ├── SDL_iconv.c │ │ │ ├── SDL_malloc.c │ │ │ ├── SDL_qsort.c │ │ │ ├── SDL_stdlib.c │ │ │ └── SDL_string.c │ │ │ ├── thread │ │ │ ├── SDL_systhread.h │ │ │ ├── SDL_thread.c │ │ │ ├── SDL_thread_c.h │ │ │ └── pthread │ │ │ │ ├── SDL_syscond.c │ │ │ │ ├── SDL_sysmutex.c │ │ │ │ ├── SDL_sysmutex_c.h │ │ │ │ ├── SDL_syssem.c │ │ │ │ ├── SDL_systhread.c │ │ │ │ ├── SDL_systhread_c.h │ │ │ │ └── SDL_systls.c │ │ │ ├── timer │ │ │ ├── SDL_timer.c │ │ │ ├── SDL_timer_c.h │ │ │ └── unix │ │ │ │ └── SDL_systimer.c │ │ │ └── video │ │ │ ├── SDL_RLEaccel.c │ │ │ ├── SDL_RLEaccel_c.h │ │ │ ├── SDL_blit.c │ │ │ ├── SDL_blit.h │ │ │ ├── SDL_blit_0.c │ │ │ ├── SDL_blit_1.c │ │ │ ├── SDL_blit_A.c │ │ │ ├── SDL_blit_N.c │ │ │ ├── SDL_blit_auto.c │ │ │ ├── SDL_blit_auto.h │ │ │ ├── SDL_blit_copy.c │ │ │ ├── SDL_blit_copy.h │ │ │ ├── SDL_blit_slow.c │ │ │ ├── SDL_blit_slow.h │ │ │ ├── SDL_bmp.c │ │ │ ├── SDL_clipboard.c │ │ │ ├── SDL_egl.c │ │ │ ├── SDL_egl_c.h │ │ │ ├── SDL_fillrect.c │ │ │ ├── SDL_pixels.c │ │ │ ├── SDL_pixels_c.h │ │ │ ├── SDL_rect.c │ │ │ ├── SDL_rect_c.h │ │ │ ├── SDL_shape.c │ │ │ ├── SDL_shape_internals.h │ │ │ ├── SDL_stretch.c │ │ │ ├── SDL_surface.c │ │ │ ├── SDL_sysvideo.h │ │ │ ├── SDL_video.c │ │ │ └── android │ │ │ ├── SDL_androidclipboard.c │ │ │ ├── SDL_androidclipboard.h │ │ │ ├── SDL_androidevents.c │ │ │ ├── SDL_androidevents.h │ │ │ ├── SDL_androidgl.c │ │ │ ├── SDL_androidkeyboard.c │ │ │ ├── SDL_androidkeyboard.h │ │ │ ├── SDL_androidmessagebox.c │ │ │ ├── SDL_androidmessagebox.h │ │ │ ├── SDL_androidmouse.c │ │ │ ├── SDL_androidmouse.h │ │ │ ├── SDL_androidtouch.c │ │ │ ├── SDL_androidtouch.h │ │ │ ├── SDL_androidvideo.c │ │ │ ├── SDL_androidvideo.h │ │ │ ├── SDL_androidwindow.c │ │ │ └── SDL_androidwindow.h │ └── cmake │ │ ├── FindSDL2.cmake │ │ └── FindSDL2_image.cmake │ ├── java │ ├── org │ │ └── libsdl │ │ │ └── app │ │ │ └── SDLActivity.java │ └── ru │ │ └── exlmoto │ │ └── kenlab3d │ │ ├── KenLab3DActivity.java │ │ ├── KenLab3DLauncherActivity.java │ │ └── KenLab3DTouchButtonsRects.java │ └── res │ ├── drawable-hdpi │ └── ic_launcher.png │ ├── drawable-mdpi │ └── ic_launcher.png │ ├── drawable-nodpi │ ├── overlay_controls_game.png │ └── overlay_controls_settings.png │ ├── drawable-xhdpi │ └── ic_launcher.png │ ├── drawable-xxhdpi │ └── ic_launcher.png │ ├── drawable │ ├── icon_about_big.png │ └── kens_labyrinth_boxart.jpg │ ├── layout │ ├── about_layout.xml │ ├── activity_kenlab3dlauncher.xml │ └── range_error_layout.xml │ ├── values-v11 │ └── style.xml │ ├── values-v14 │ └── style.xml │ ├── values-v21 │ └── style.xml │ └── values │ ├── dimens.xml │ ├── strings.xml │ └── style.xml └── settings.gradle /License.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015-2016 Serg "EXL" Koles 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /ReadMe.md: -------------------------------------------------------------------------------- 1 | Ken's Labyrinth 2 | ============= 3 | 4 | Ken's Labyrinth is a first-person shooter DOS game, released in 1993 by Epic MegaGames (now called Epic Games). It was mostly coded by Ken Silverman, who went on to design the Build engine that was used for rendering a first-person viewpoint in Apogee Software's Duke Nukem 3D. It consists of three episodes, the first of which was released as shareware - [Wikipedia](https://en.wikipedia.org/wiki/Ken%27s_Labyrinth). 5 | 6 | ![Ken's Labyrinth running on Motorola Droid 4](images/Ken_motorola_droid_4.jpg) 7 | 8 | This is my port of Ken's Labyrinth on Android OS with using SDL2 library and rendering the videocontext of the game with using OpenGL ES. Added touch controls and some game engine improvements. 9 | 10 | ![Ken's Labyrinth Android Screen](images/Ken_android_screen.jpg) 11 | 12 | [Ken's Labyrinth port on Motorola Droid 4 video on YouTube](http://youtu.be/vnNax1uNLfo) 13 | 14 | ## Download 15 | 16 | You can download APK-package for Android OS from the [releases](https://github.com/EXL/KenLab3d/releases) section. 17 | 18 | ## Build instructions 19 | 20 | For example, GNU/Linux: 21 | 22 | * Install the latest [Android SDK](https://developer.android.com/sdk/) and [Android NDK](https://developer.android.com/ndk/); 23 | 24 | * Clone repository into deploy directory; 25 | 26 | ```sh 27 | cd ~/Deploy/ 28 | git clone https://github.com/EXL/KenLab3d KenLab3dAndroid 29 | ``` 30 | 31 | * Build the APK-package into deploy directory with Gradle building script; 32 | 33 | ```sh 34 | cd ~/Deploy/KenLab3dAndroid/ 35 | ANDROID_HOME="/opt/android-sdk/" ./gradlew assembleDebug 36 | ``` 37 | 38 | * Install KenLab3D APK-package on your Android device via adb; 39 | 40 | ```sh 41 | cd ~/Deploy/KenLab3dAndroid/ 42 | /opt/android-sdk/platform-tools/adb install -r kenlab3d/build/outputs/apk/kenlab3d-debug.apk 43 | ``` 44 | 45 | * Run and enjoy! 46 | 47 | You can also open this project in Android Studio IDE and build the APK-package by using this program. 48 | 49 | ## More information 50 | 51 | Please read [Porting Guide (In Russian)](http://exlmoto.ru/kenlab3d-droid) for more info about porting Ken's Labyrinth to Android OS. 52 | -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | repositories { 4 | jcenter() 5 | google() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.1.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | jcenter() 15 | google() 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /docs/Glues/License.txt: -------------------------------------------------------------------------------- 1 | SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008) 2 | Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved. 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a 5 | copy of this software and associated documentation files (the "Software"), 6 | to deal in the Software without restriction, including without limitation 7 | the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | and/or sell copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice including the dates of first publication and 12 | either this permission notice or a reference to 13 | http://oss.sgi.com/projects/FreeB/ 14 | shall be included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF 21 | OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | Except as contained in this notice, the name of Silicon Graphics, Inc. 25 | shall not be used in advertising or otherwise to promote the sale, use or 26 | other dealings in this Software without prior written authorization from 27 | Silicon Graphics, Inc. 28 | -------------------------------------------------------------------------------- /docs/Glues/ReadMe.txt: -------------------------------------------------------------------------------- 1 | GLU ES version 1.4 2 | 3 | This port is based on original GLU 1.3 and has original libutil and libtess 4 | (part of GLU) only. 5 | 6 | Warning, after gluCylinder(), gluDisk(), gluPartialDisk(), gluSphere() function 7 | call, color, vertex, texture and normal arrays are disabled. Array pointers are 8 | changed and must be reinstalled by caller to its original state. 9 | 10 | Currently QNX 6.4.x native target build is supported and Win32 x86 build for 11 | PowerVR OpenGL ES 1.1 emulator (http://www.imgtec.com). 12 | 13 | Win32 build uses MSVC 2005 (9.0) and you have to change path to Imagination 14 | Technologies PowerVR SDK in all project files. 15 | 16 | History: 17 | 18 | 1.4 - Small fixes, regarding intermediate casts to double during equation 19 | calculations. Added Win32 build target for PowerVR OpenGL ES 1.1 20 | emulator. Added GLU ES documentation, based on the OpenGL GLU 21 | documentation with ES specific fixes. 22 | 1.3 - libtess and tesselation tests (QNX native and SDL 1.3) have been added. 23 | 1.2 - SDL 1.3 based tests were added. 24 | 1.1 - Removed some texture formats, which are not supported by OpenGL ES 1.x, 25 | added arrays manipulation to the quadric functions. Sphere flat shading 26 | fixes. Disk texturing with inner radius more than 0.0f fixes. Updated 27 | tests. 28 | 1.0 - Initial public release. 29 | 30 | // 17.05.2009 31 | // Mike Gorchak , 32 | -------------------------------------------------------------------------------- /docs/Import_to_AS_summary.txt: -------------------------------------------------------------------------------- 1 | ECLIPSE ANDROID PROJECT IMPORT SUMMARY 2 | ====================================== 3 | 4 | Ignored Files: 5 | -------------- 6 | The following files were *not* copied into the new Gradle project; you 7 | should evaluate whether these are still needed in your project and if 8 | so manually move them: 9 | 10 | * .gitignore 11 | * LICENSE.md 12 | * README.md 13 | * ic_launcher-web.png 14 | * images/ 15 | * images/Ken_android_screen.jpg 16 | * images/Ken_motorola_droid_4.jpg 17 | * images/overlay_controls_source.xcf 18 | * proguard-project.txt 19 | 20 | Moved Files: 21 | ------------ 22 | Android Gradle projects use a different directory structure than ADT 23 | Eclipse projects. Here's how the projects were restructured: 24 | 25 | * AndroidManifest.xml => app/src/main/AndroidManifest.xml 26 | * assets/ => app/src/main/assets/ 27 | * jni/ => app/src/main/jni/ 28 | * res/ => app/src/main/res/ 29 | * src/ => app/src/main/java/ 30 | 31 | Next Steps: 32 | ----------- 33 | You can now build the project. The Gradle project needs network 34 | connectivity to download dependencies. 35 | 36 | Bugs: 37 | ----- 38 | If for some reason your project does not build, and you determine that 39 | it is due to a bug or limitation of the Eclipse to Gradle importer, 40 | please file a bug at http://b.android.com with category 41 | Component-Tools. 42 | 43 | (This import summary is for your information only, and can be deleted 44 | after import once you are satisfied with the results.) 45 | -------------------------------------------------------------------------------- /docs/KenLab3d/Comments.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/docs/KenLab3d/Comments.txt -------------------------------------------------------------------------------- /docs/KenLab3d/Faq.txt: -------------------------------------------------------------------------------- 1 | LAB3D/SDL FAQ 2 | ============= 3 | 4 | Q: Why does LAB3D/SDL crash immediately after starting on my Windows 95/98 5 | machine with a page fault in "OPENGL32.DLL" (and possibly "KERNEL32.DLL")? 6 | A: You are probably running Microsoft's slow, old and buggy software OpenGL 7 | implementation. Install display drivers with OpenGL support; your graphics 8 | card or chipset manufacturer should provide them (e.g. through their web 9 | site). 10 | 11 | Q: Why does LAB3D/SDL run slowly on my machine? 12 | A: There are several possible reasons for this. If you don't have a 3D 13 | accelerator, LAB3D/SDL will run very slowly. Similarly, if your system's 14 | OpenGL implementation is not accelerated, LAB3D/SDL will be unable to make use 15 | of 3D acceleration; updating your display drivers may fix this. Finally, you 16 | may be running LAB3D/SDL at an unnecessarily high graphics resolution; lower 17 | it to something like 800x600. 18 | 19 | Q: Why doesn't LAB3D/SDL have a fast software renderer like the original Ken's 20 | Labyrinth? 21 | A: Very few computers are sold nowadays without 3D acceleration and most games 22 | require 3D acceleration. Therefore, most people who would play LAB3D/SDL 23 | already have a 3D accelerator. To these people, software rendering is not of 24 | any use. The original Ken's Labyrinth software renderer is very fast but 25 | relies heavily on being able to access specific hardware directly (8086 or 26 | compatible with VGA) in a very specific manner (VGA Mode X, maximum resolution 27 | 360x240). A rewritten software renderer may appear in future versions. 28 | 29 | Q: Why doesn't LAB3D/SDL support Direct3D? 30 | A: OpenGL is a more widely supported 3D graphics API than Microsoft's 31 | Direct3D. The only case in which Direct3D support would be of use is for users 32 | of graphics accelerators with Direct3D acceleration but no OpenGL 33 | acceleration. I suggest you pester your graphics card or chipset manufacturer 34 | to produce OpenGL drivers or buy a better supported graphics card. Future 35 | versions of LAB3D/SDL may support Direct3D, but don't count on it. 36 | 37 | Q: Why doesn't LAB3D/SDL have an automap like Doom, Blake Stone or Descent? 38 | A: Because Ken's Labyrinth doesn't have an automap. Besides, you're supposed 39 | to get lost in labyrinths. 40 | -------------------------------------------------------------------------------- /docs/KenLab3d/Install.txt: -------------------------------------------------------------------------------- 1 | LAB3D/SDL Installation 2 | ====================== 3 | 4 | Hardware requirements 5 | --------------------- 6 | 7 | LAB3D/SDL requires a machine capable of running Windows or a Unix-like OS 8 | (e.g. Linux) and the Simple DirectMedia Layer with a little-endian CPU, and a 9 | graphics card capable of OpenGL. 10 | 11 | Recommended system: 12 | 13 | - Pentium II or equivalent CPU. 14 | - NVIDIA Riva TNT or better graphics accelerator (with OpenGL drivers). 15 | - 101-key PC keyboard or similar. 16 | 17 | Optional features: 18 | 19 | - 16-bit sound card. 20 | - MIDI sound. 21 | - Two-button mouse or better. 22 | - Joystick. 23 | 24 | Software requirements 25 | --------------------- 26 | 27 | Operating system: Windows 95/98/Me/XP, Linux, Solaris, BSD, ... 28 | Libraries: OpenGL 1.2, GLU 1.3, SDL 1.2. Slightly older versions 29 | of GLU may work. 30 | Compiler: GCC 2.95.2 or later recommended. Other compilers will 31 | require Makefile changes, but should work. 32 | Other utilities: Makefiles require GNU Make (or compatible) and sh 33 | (or compatible, e.g. bash). 34 | Data files: Ken's Labyrinth v2.1 (Epic Megagames registered), 35 | Ken's Labyrinth v2.0 (Epic Megagames shareware), 36 | Ken's Labyrinth v1.1 (Advanced Systems registered) or 37 | Ken's Labyrinth v1.0 (Advanced Systems shareware). 38 | 39 | Compiling (Unix with OSS support) 40 | --------------------------------- 41 | 42 | Run "make" in the source directory. 43 | 44 | Compiling (Windows) 45 | ------------------- 46 | 47 | Run "make -f Makefile.Win32" in the source directory. MinGW 3.1.0 is 48 | recommended for Windows use. 49 | 50 | Compiling (Unix without OSS support) 51 | ------------------------------------ 52 | 53 | Run "make -f Makefile.NoMIDI" in the source directory. Note that General MIDI 54 | music is not available if you do this (not much of a loss). 55 | 56 | Installation (not applicable to full download) 57 | ---------------------------------------------- 58 | 59 | Place the executable file ("ken" in Unix, "ken.exe" in Windows), "ksmmidi.txt" 60 | (if you want to use General MIDI music) and "ken.bmp" in the same directory as 61 | your copy of Ken's Labyrinth. You may give the executable file a different 62 | name if you like. Windows users should not change the extension of the 63 | executable. 64 | 65 | Setup 66 | ----- 67 | 68 | Before running the game, it may be a good idea to check the settings by 69 | running the setup routine. If you have a script or batch file named "setup" or 70 | "setup.bat", you can use this to start the setup routine. Otherwise, run the 71 | main program with command-line parameter "-setup". 72 | 73 | The setup routine is automatically run if no configuration file is found, so 74 | you can force setup to run the next time you start LAB3D/SDL by deleting 75 | the settings file ("settings.ini"). -------------------------------------------------------------------------------- /docs/KenLab3d/ReadMe.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/docs/KenLab3d/ReadMe.txt -------------------------------------------------------------------------------- /docs/KenLab3d/Run.txt: -------------------------------------------------------------------------------- 1 | LAB3D/SDL Usage 2 | =============== 3 | 4 | Users of binary packages are provided with scripts "setup" (Linux) and 5 | "setup.bat" (Windows) to run the setup. Alternatively, the "-setup" flag 6 | may be used as described below. 7 | 8 | Run the executable file, making sure that the current directory is the 9 | directory in which the data files are residing. 10 | 11 | Command-line parameters (these override settings chosen in setup): 12 | 13 | -setup Run setup. 14 | -res Use x resolution, simulating x 2D screen. 15 | Note that while w and h are integers, x and y can be 16 | any floating point numbers >= than 320x200. 17 | -asp Override aspect correction; and multiply the 18 | width and height of the 3D viewport; both are 19 | floating point numbers greater than 0.1. 20 | -win Run in a window. 21 | -fullscreen Run in fullscreen mode. 22 | -nearest No display filtering. 23 | -trilinear Trilinear display filtering. 24 | -nomusic Disable music. 25 | -gmmusic General MIDI music. 26 | -admusic Adlib emulation music. 27 | -nosound Disable sound effects. 28 | -sound Enable sound effects. 29 | -debug Extended graphics debug output. Only for 30 | troubleshooting purposes. 31 | 32 | To activate cheat codes, the last parameter must be either "snausty" (normal 33 | cheat mode) or "cheaton" (cheat codes use [LSHIFT]-[LCTRL] instead of both 34 | shift keys). Note that cheaters never prosper. 35 | 36 | Unrecognised options are ignored. 37 | -------------------------------------------------------------------------------- /docs/LodePNG/License.txt: -------------------------------------------------------------------------------- 1 | LodePNG version 20120528 2 | 3 | Copyright (c) 2005-2012 Lode Vandevenne 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 18 | 2. Altered source versions must be plainly marked as such, and must not be 19 | misrepresented as being the original software. 20 | 21 | 3. This notice may not be removed or altered from any source 22 | distribution. 23 | -------------------------------------------------------------------------------- /docs/LodePNG/ReadMe.md: -------------------------------------------------------------------------------- 1 | LodePNG 2 | ------- 3 | 4 | PNG encoder and decoder in C and C++. 5 | 6 | Home page: http://lodev.org/lodepng/ 7 | 8 | Only two files are needed to allow your program to read and write PNG files: lodepng.cpp and lodepng.h. 9 | -------------------------------------------------------------------------------- /docs/SDL2/BUGS.txt: -------------------------------------------------------------------------------- 1 | 2 | Bugs are now managed in the SDL bug tracker, here: 3 | 4 | http://bugzilla.libsdl.org/ 5 | 6 | You may report bugs there, and search to see if a given issue has already 7 | been reported, discussed, and maybe even fixed. 8 | 9 | 10 | You may also find help on the SDL mailing list. Subscription information: 11 | 12 | http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org 13 | 14 | Bug reports are welcome here, but we really appreciate if you use Bugzilla, as 15 | bugs discussed on the mailing list may be forgotten or missed. 16 | 17 | -------------------------------------------------------------------------------- /docs/SDL2/COPYING.txt: -------------------------------------------------------------------------------- 1 | 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | 21 | -------------------------------------------------------------------------------- /docs/SDL2/CREDITS.txt: -------------------------------------------------------------------------------- 1 | 2 | Simple DirectMedia Layer CREDITS 3 | Thanks to everyone who made this possible, including: 4 | 5 | * Cliff Matthews, for giving me a reason to start this project. :) 6 | -- Executor rocks! *grin* 7 | 8 | * Ryan Gordon for helping everybody out and keeping the dream alive. :) 9 | 10 | * Gabriel Jacobo for his work on the Android port and generally helping out all around. 11 | 12 | * Philipp Wiesemann for his attention to detail reviewing the entire SDL code base and proposes patches. 13 | 14 | * Andreas Schiffler for his dedication to unit tests, Visual Studio projects, and managing the Google Summer of Code. 15 | 16 | * Mike Sartain for incorporating SDL into Team Fortress 2 and cheering me on at Valve. 17 | 18 | * Alfred Reynolds for the game controller API and general (in)sanity 19 | 20 | * Jørgen Tjernø for numerous magical Mac OS X fixes. 21 | 22 | * Pierre-Loup Griffais for his deep knowledge of OpenGL drivers. 23 | 24 | * Julian Winter for the SDL 2.0 website. 25 | 26 | * Sheena Smith for many months of great work on the SDL wiki creating the API documentation and style guides. 27 | 28 | * Paul Hunkin for his port of SDL to Android during the Google Summer of Code 2010. 29 | 30 | * Eli Gottlieb for his work on shaped windows during the Google Summer of Code 2010. 31 | 32 | * Jim Grandpre for his work on multi-touch and gesture recognition during 33 | the Google Summer of Code 2010. 34 | 35 | * Edgar "bobbens" Simo for his force feedback API development during the 36 | Google Summer of Code 2008. 37 | 38 | * Aaron Wishnick for his work on audio resampling and pitch shifting during 39 | the Google Summer of Code 2008. 40 | 41 | * Holmes Futrell for his port of SDL to the iPhone and iPod Touch during the 42 | Google Summer of Code 2008. 43 | 44 | * Jon Atkins for SDL_image, SDL_mixer and SDL_net documentation. 45 | 46 | * Everybody at Loki Software, Inc. for their great contributions! 47 | 48 | And a big hand to everyone else who has contributed over the years. 49 | 50 | THANKS! :) 51 | 52 | -- Sam Lantinga 53 | 54 | -------------------------------------------------------------------------------- /docs/SDL2/INSTALL.txt: -------------------------------------------------------------------------------- 1 | 2 | To compile and install SDL: 3 | 4 | 1. Windows with Visual Studio: 5 | * Read VisualC.html 6 | 7 | Windows with gcc, either native or cross-compiling: 8 | * Read the FAQ at http://wiki.libsdl.org/moin.fcg/FAQWindows 9 | * Run './configure; make; make install' 10 | 11 | Mac OS X with Xcode: 12 | * Read docs/README-macosx.md 13 | 14 | Mac OS X from the command line: 15 | * Run './configure; make; make install' 16 | 17 | Linux and other UNIX systems: 18 | * Run './configure; make; make install' 19 | 20 | Android: 21 | * Read docs/README-android.md 22 | 23 | iOS: 24 | * Read docs/README-ios.md 25 | 26 | Using Cmake: 27 | * Read docs/README-cmake.md 28 | 29 | 2. Look at the example programs in ./test, and check out the online 30 | documentation at http://wiki.libsdl.org/ 31 | 32 | 3. Join the SDL developer mailing list by sending E-mail to 33 | sdl-request@libsdl.org 34 | and put "subscribe" in the subject of the message. 35 | 36 | Or alternatively you can use the web interface: 37 | http://www.libsdl.org/mailing-list.php 38 | 39 | That's it! 40 | Sam Lantinga 41 | -------------------------------------------------------------------------------- /docs/SDL2/README-SDL.txt: -------------------------------------------------------------------------------- 1 | 2 | Please distribute this file with the SDL runtime environment: 3 | 4 | The Simple DirectMedia Layer (SDL for short) is a cross-platform library 5 | designed to make it easy to write multi-media software, such as games and 6 | emulators. 7 | 8 | The Simple DirectMedia Layer library source code is available from: 9 | http://www.libsdl.org/ 10 | 11 | This library is distributed under the terms of the zlib license: 12 | http://www.zlib.net/zlib_license.html 13 | 14 | -------------------------------------------------------------------------------- /docs/SDL2/README.txt: -------------------------------------------------------------------------------- 1 | 2 | Simple DirectMedia Layer 3 | 4 | (SDL) 5 | 6 | Version 2.0 7 | 8 | --- 9 | http://www.libsdl.org/ 10 | 11 | Simple DirectMedia Layer is a cross-platform development library designed 12 | to provide low level access to audio, keyboard, mouse, joystick, and graphics 13 | hardware via OpenGL and Direct3D. It is used by video playback software, 14 | emulators, and popular games including Valve's award winning catalog 15 | and many Humble Bundle games. 16 | 17 | More extensive documentation is available in the docs directory, starting 18 | with README.md 19 | 20 | Enjoy! 21 | Sam Lantinga (slouken@libsdl.org) 22 | -------------------------------------------------------------------------------- /docs/SDL2/TODO.txt: -------------------------------------------------------------------------------- 1 | Future work roadmap: 2 | * http://wiki.libsdl.org/moin.cgi/Roadmap 3 | 4 | * Check 1.2 revisions: 5 | 3554 - Need to resolve semantics for locking keys on different platforms 6 | 4874 - Do we want screen rotation? At what level? 7 | 4974 - Windows file code needs to convert UTF-8 to Unicode, but we don't need to tap dance for Windows 95/98 8 | 4865 - See if this is still needed (mouse coordinate clamping) 9 | 4866 - See if this is still needed (blocking window repositioning) 10 | 11 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Apr 20 22:09:56 NOVT 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip 7 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /images/Ken_android_screen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/images/Ken_android_screen.jpg -------------------------------------------------------------------------------- /images/Ken_motorola_droid_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/images/Ken_motorola_droid_4.jpg -------------------------------------------------------------------------------- /images/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/images/ic_launcher-web.png -------------------------------------------------------------------------------- /images/ken_icon.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/images/ken_icon.bmp -------------------------------------------------------------------------------- /images/ken_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/images/ken_icon.ico -------------------------------------------------------------------------------- /images/src/overlay_controls_source.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/images/src/overlay_controls_source.xcf -------------------------------------------------------------------------------- /kenlab3d/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | 6 | defaultConfig { 7 | applicationId "ru.exlmoto.kenlab3d" 8 | minSdkVersion 10 9 | targetSdkVersion 14 10 | 11 | ndk { 12 | abiFilters "armeabi-v7a", "x86" 13 | } 14 | 15 | externalNativeBuild { 16 | cmake { 17 | arguments "-DANDROID_PLATFORM_LEVEL=14", "-DANDROID=ON" 18 | cFlags "-O3", "-ffast-math", "-fomit-frame-pointer" 19 | cppFlags "-O3", "-frtti", "-ffast-math", "-fomit-frame-pointer" 20 | } 21 | 22 | ndkBuild { 23 | arguments "V=1" /* Verbose ndk-build */ 24 | arguments "APP_PLATFORM=android-14" 25 | arguments "-j" + Runtime.runtime.availableProcessors() 26 | } 27 | } 28 | } 29 | 30 | buildTypes { 31 | release { 32 | minifyEnabled false 33 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' 34 | /************************************************************************************* 35 | * Use the following command to build a signed APK-package: 36 | * $ ./gradlew assembleRelease -Pandroid.injected.signing.store.file=$KEY_FILE \ 37 | -Pandroid.injected.signing.store.password=$STORE_PWD \ 38 | -Pandroid.injected.signing.key.alias=$KEY_ALIAS \ 39 | -Pandroid.injected.signing.key.password=$KEY_PWD 40 | *************************************************************************************/ 41 | } 42 | } 43 | 44 | externalNativeBuild { 45 | ndkBuild { 46 | path 'src/main/cpp/Android.mk' 47 | } 48 | 49 | // cmake { 50 | // path 'src/main/cpp/CMakeLists.txt' 51 | // } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /kenlab3d/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 10 | 11 | 20 | 25 | 29 | 30 | 31 | 32 | 33 | 34 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/BOARDS.KZP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/BOARDS.KZP -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/HELPME.DOC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/HELPME.DOC -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/HINTS.TXT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/HINTS.TXT -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/HISCORE.DAT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/HISCORE.DAT -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/INSTS.DAT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/INSTS.DAT -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/LAB3D.KZP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/LAB3D.KZP -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/README.TXT: -------------------------------------------------------------------------------- 1 | This directory contains the FULL version of Ken's Labyrinth! 2 | 3 | Ken's Labyrinth shareware was first released to the world on January 1, 1993. 4 | In March, 1993, an improved shareware version under the Epic MegaGames label 5 | was released. 6 | 7 | On November 16, 1999, I, Ken Silverman, with permission from Epic MegaGames, 8 | decided to release the full version of Ken's Labyrinth for free. This is due 9 | to the fact that Epic MegaGames no longer sells its older titles, which 10 | includes Ken's Labyrinth. You may copy this software freely. 11 | 12 | All I ask is that you follow these simple guidelines: 13 | 14 | 1) This software can not be sold for profit in any way. 15 | 16 | 2) When distributing, please do not remove any files that came with this 17 | original archive. This includes all text files. 18 | 19 | 3) Ignore the order information - you already have the full version if you're 20 | reading this! Also many of the phone numbers and addresses (excluding 21 | this README.TXT file) are out of date. 22 | 23 | 4) The last time I compiled this code was in 1993 - it's ancient history to 24 | me. You should look at this as a piece of history as well. In no way is 25 | this software meant to be representative of my current work or remotely 26 | competetive with today's current games. 27 | 28 | 5) I will NOT provide any support for this game. I know there are some bugs. 29 | For example, these bugs are all caused by newer hardware: 30 | 31 | * Sound Blaster sound effects will likely crash the computer. If you have 32 | a relatively new computer, consider yourself lucky if it works. 33 | 34 | * Doors flip open and closed at a very fast rate. Keep whapping at the 35 | space bar. Eventually the door will end up in the open state. 36 | 37 | * After pressing 'A' or 'Z', you get stuck at the ceiling or floor. If 38 | you like being in the center, simply don't use these keys. 39 | 40 | Since I have no plans of fixing these bugs, you will just have to deal 41 | with them in the best way that you can. 42 | 43 | Any new information about Ken's Labyrinth will be posted at my web site: 44 | http://www.advsys.net/ken 45 | 46 | -Ken S. 47 | 48 | P.S. As a special bonus, I have included 3 save games which will bring you 49 | straight to the ending sequences of all 3 episodes and another one which 50 | shows you what winning the jackpot at the slot machine is like. Enjoy! 51 | -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/SAVGAME4.DAT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/SAVGAME4.DAT -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/SAVGAME5.DAT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/SAVGAME5.DAT -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/SAVGAME6.DAT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/SAVGAME6.DAT -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/SAVGAME7.DAT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/SAVGAME7.DAT -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/SONGS.KZP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/SONGS.KZP -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/SOUNDS.KZP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/SOUNDS.KZP -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/STORY.KZP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/STORY.KZP -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/TABLES.DAT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/TABLES.DAT -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/WALLS.KZP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/WALLS.KZP -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/alien-hurt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/alien-hurt.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/alien.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/alien.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bat-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bat-0.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bat-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bat-1.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bat-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bat-2.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bee-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bee-0.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bee-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bee-1.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bee-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bee-2.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bee-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bee-3.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bee-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bee-4.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bee-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bee-5.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bigshadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bigshadow.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul1fly-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul1fly-0.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul1fly-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul1fly-1.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul1fly-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul1fly-2.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul1get.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul1get.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul2fly-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul2fly-0.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul2fly-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul2fly-1.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul2get.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul2get.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul3fly-center-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul3fly-center-0.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul3fly-center-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul3fly-center-1.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul3fly-left-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul3fly-left-0.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul3fly-left-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul3fly-left-1.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul3fly-right-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul3fly-right-0.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul3fly-right-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul3fly-right-1.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul3get.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul3get.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul3halfly-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul3halfly-0.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul3halfly-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul3halfly-1.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul4fly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul4fly.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul5fly-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul5fly-0.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/bul5fly-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/bul5fly-1.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/door2-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/door2-0.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/door2-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/door2-1.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/door2-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/door2-2.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/door2-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/door2-3.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/door2-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/door2-4.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/door2-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/door2-5.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/earmonster-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/earmonster-0.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/earmonster-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/earmonster-1.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/earmonster-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/earmonster-2.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/earmonster-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/earmonster-3.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/earmonster-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/earmonster-4.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/emptybulstand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/emptybulstand.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/explosion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/explosion.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/extralife.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/extralife.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/getcompass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/getcompass.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/ghost-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/ghost-0.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/ghost-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/ghost-1.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/ghost-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/ghost-2.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/goldlock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/goldlock.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/hole.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/hole.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/ken.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/ken.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/kenboss-trans-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/kenboss-trans-0.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/kenboss-trans-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/kenboss-trans-1.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/kenboss-trans-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/kenboss-trans-2.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/kenface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/kenface.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/kenfaceouch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/kenfaceouch.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/light.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/lightning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/lightning.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/lightshadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/lightshadow.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/medshadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/medshadow.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/miniexplosion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/miniexplosion.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/rainbow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/rainbow.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/robot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/robot1.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/robot2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/robot2.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/robot3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/robot3.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/robot4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/robot4.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/robot5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/robot5.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/robot6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/robot6.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/robot7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/robot7.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/robot8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/robot8.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/silverlock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/silverlock.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/smallshadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/smallshadow.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/spider-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/spider-0.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/spider-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/spider-1.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/spider-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/spider-2.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/spider-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/spider-3.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/spider-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/spider-4.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/spider-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/spider-5.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/trans0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/trans0.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/trans1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/trans1.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/hires/warp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/assets/KenLabData/hires/warp.png -------------------------------------------------------------------------------- /kenlab3d/src/main/assets/KenLabData/ksmmidi.txt: -------------------------------------------------------------------------------- 1 | 0 2 | 6 3 | 11 4 | 18 5 | 19 6 | 61 7 | 40 8 | 73 9 | 52 10 | 26 11 | 14 12 | 7 13 | 93 14 | 97 15 | 12 16 | 3 17 | 2 18 | 12 19 | 16 20 | 21 21 | 56 22 | 42 23 | 68 24 | 20 25 | 46 26 | 8 27 | 7 28 | 89 29 | 95 30 | 32 31 | 38 32 | 48 33 | 82 34 | 11 35 | 26 36 | 66 37 | 42 38 | 9 39 | 14 40 | 82 41 | 70 42 | 14 43 | 93 44 | 13 45 | 112 46 | 103 47 | 96 48 | 100 49 | 11 50 | 27 51 | 103 52 | 94 53 | 84 54 | 102 55 | 103 56 | 25 57 | 85 58 | 87 59 | 87 60 | 110 61 | 14 62 | 76 63 | 83 64 | 103 65 | 27 66 | 30 67 | 24 68 | 70 69 | 60 70 | 65 71 | 10 72 | 59 73 | 71 74 | 94 75 | 30 76 | 84 77 | 99 78 | 62 79 | 27 80 | 88 81 | 89 82 | 67 83 | 94 84 | 63 85 | 91 86 | 0 87 | 0 88 | 0 89 | 0 90 | 0 91 | 0 92 | 0 93 | 0 94 | 0 95 | 0 96 | 0 97 | 0 98 | 0 99 | 0 100 | 0 101 | 0 102 | 0 103 | 0 104 | 0 105 | 0 106 | 0 107 | 0 108 | 0 109 | 0 110 | 0 111 | 0 112 | 0 113 | 0 114 | 0 115 | 0 116 | 0 117 | 0 118 | 0 119 | 0 120 | 0 121 | 0 122 | 0 123 | 0 124 | 0 125 | 0 126 | 0 127 | 0 128 | 0 129 | 0 130 | 0 131 | 0 132 | 0 133 | 0 134 | 0 135 | 0 136 | 0 137 | 0 138 | 0 139 | 0 140 | 0 141 | 0 142 | 0 143 | 0 144 | 0 145 | 0 146 | 0 147 | 0 148 | 0 149 | 0 150 | 0 151 | 0 152 | 0 153 | 0 154 | 0 155 | 0 156 | 0 157 | 0 158 | 0 159 | 0 160 | 0 161 | 0 162 | 0 163 | 0 164 | 0 165 | 0 166 | 0 167 | 0 168 | 0 169 | 0 170 | 0 171 | 0 172 | 0 173 | 0 174 | 0 175 | 0 176 | 0 177 | 0 178 | 0 179 | 0 180 | 0 181 | 0 182 | 0 183 | 0 184 | 0 185 | 0 186 | 0 187 | 0 188 | 0 189 | 0 190 | 0 191 | 0 192 | 0 193 | 0 194 | 0 195 | 0 196 | 0 197 | 0 198 | 0 199 | 0 200 | 0 201 | 0 202 | 0 203 | 0 204 | 0 205 | 0 206 | 0 207 | 0 208 | 0 209 | 0 210 | 0 211 | 0 212 | 0 213 | 0 214 | 0 215 | 0 216 | 0 217 | 0 218 | 0 219 | 0 220 | 0 221 | 0 222 | 0 223 | 0 224 | 0 225 | 0 226 | 0 227 | 0 228 | 0 229 | 0 230 | 0 231 | 0 232 | 0 233 | 0 234 | 0 235 | 0 236 | 0 237 | 0 238 | 0 239 | 0 240 | 0 241 | 0 242 | 0 243 | 0 244 | 0 245 | 0 246 | 0 247 | 0 248 | 0 249 | 0 250 | 0 251 | 0 252 | 0 253 | 0 254 | 0 255 | 0 256 | 0 257 | 258 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/Android.mk: -------------------------------------------------------------------------------- 1 | include $(call all-subdir-makefiles) 2 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/Glues/glu.h: -------------------------------------------------------------------------------- 1 | glues.h -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/KenLab3D/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | # Ken's Labyrinth Shared Library 4 | include $(CLEAR_VARS) 5 | 6 | DEF := -DANDROID_NDK -DOPENGLES -DUSE_SDL2 7 | 8 | LOCAL_CFLAGS += -O3 -ffast-math -fomit-frame-pointer $(DEF) 9 | LOCAL_CPPFLAGS += -O3 -frtti -ffast-math -fomit-frame-pointer $(DEF) 10 | 11 | LOCAL_MODULE := KenLab3D 12 | 13 | SDL_PATH := ../SDL2 14 | 15 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include \ 16 | $(LOCAL_PATH)/../LodePNG \ 17 | $(LOCAL_PATH)/../Glues \ 18 | $(LOCAL_PATH) 19 | 20 | # Add your application source files here... 21 | LOCAL_SRC_FILES := $(SDL_PATH)/src/main/android/SDL_android_main.c \ 22 | adlibemu.c \ 23 | graphx.c \ 24 | init.c \ 25 | lab3d.c \ 26 | oldlab3d.c \ 27 | setup.c \ 28 | subs.c \ 29 | sdl2keyhelper.c \ 30 | androidutils.c 31 | 32 | LOCAL_SHARED_LIBRARIES := SDL2 33 | 34 | LOCAL_STATIC_LIBRARIES := Glues LodePNG 35 | 36 | LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog 37 | 38 | include $(BUILD_SHARED_LIBRARY) 39 | 40 | # LodePNG Static Library 41 | include $(CLEAR_VARS) 42 | 43 | DEF := -DANDROID_NDK 44 | LOCAL_CFLAGS += -O3 -ffast-math -fomit-frame-pointer $(DEF) 45 | LOCAL_CPPFLAGS += -O3 -frtti -ffast-math -fomit-frame-pointer $(DEF) 46 | 47 | LOCAL_MODULE := LodePNG 48 | LOCAL_SRC_FILES := ../LodePNG/lodepng.c 49 | 50 | include $(BUILD_STATIC_LIBRARY) 51 | 52 | # Glues Static Library 53 | include $(CLEAR_VARS) 54 | 55 | DEF := -DANDROID_NDK 56 | LOCAL_CFLAGS += -O3 -ffast-math -fomit-frame-pointer $(DEF) 57 | LOCAL_CPPFLAGS += -O3 -frtti -ffast-math -fomit-frame-pointer $(DEF) 58 | 59 | LOCAL_MODULE := Glues 60 | LOCAL_SRC_FILES := ../Glues/glues_error.c \ 61 | ../Glues/glues_mipmap.c \ 62 | ../Glues/glues_project.c \ 63 | ../Glues/glues_quad.c \ 64 | ../Glues/glues_registry.c 65 | 66 | include $(BUILD_STATIC_LIBRARY) 67 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/KenLab3D/adlibemu.h: -------------------------------------------------------------------------------- 1 | void adlibinit(long dasamplerate,long danumspeakers,long dabytespersample); 2 | void adlib0(long i,long v); 3 | void adlibgetsample(void *sndptr,long numbytes); 4 | void adlibsetvolume(int i); 5 | void randoinsts(); 6 | extern float lvol[9],rvol[9],lplc[9],rplc[9]; 7 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | ########################### 4 | # 5 | # SDL shared library 6 | # 7 | ########################### 8 | 9 | include $(CLEAR_VARS) 10 | 11 | LOCAL_MODULE := SDL2 12 | 13 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 14 | 15 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES) 16 | 17 | LOCAL_SRC_FILES := \ 18 | $(subst $(LOCAL_PATH)/,, \ 19 | $(wildcard $(LOCAL_PATH)/src/*.c) \ 20 | $(wildcard $(LOCAL_PATH)/src/audio/*.c) \ 21 | $(wildcard $(LOCAL_PATH)/src/audio/android/*.c) \ 22 | $(wildcard $(LOCAL_PATH)/src/audio/dummy/*.c) \ 23 | $(LOCAL_PATH)/src/atomic/SDL_atomic.c \ 24 | $(LOCAL_PATH)/src/atomic/SDL_spinlock.c.arm \ 25 | $(wildcard $(LOCAL_PATH)/src/core/android/*.c) \ 26 | $(wildcard $(LOCAL_PATH)/src/cpuinfo/*.c) \ 27 | $(wildcard $(LOCAL_PATH)/src/dynapi/*.c) \ 28 | $(wildcard $(LOCAL_PATH)/src/events/*.c) \ 29 | $(wildcard $(LOCAL_PATH)/src/file/*.c) \ 30 | $(wildcard $(LOCAL_PATH)/src/joystick/*.c) \ 31 | $(wildcard $(LOCAL_PATH)/src/joystick/android/*.c) \ 32 | $(wildcard $(LOCAL_PATH)/src/loadso/dlopen/*.c) \ 33 | $(wildcard $(LOCAL_PATH)/src/filesystem/android/*.c) \ 34 | $(wildcard $(LOCAL_PATH)/src/render/*.c) \ 35 | $(wildcard $(LOCAL_PATH)/src/render/*/*.c) \ 36 | $(wildcard $(LOCAL_PATH)/src/stdlib/*.c) \ 37 | $(wildcard $(LOCAL_PATH)/src/thread/*.c) \ 38 | $(wildcard $(LOCAL_PATH)/src/thread/pthread/*.c) \ 39 | $(wildcard $(LOCAL_PATH)/src/timer/*.c) \ 40 | $(wildcard $(LOCAL_PATH)/src/timer/unix/*.c) \ 41 | $(wildcard $(LOCAL_PATH)/src/video/*.c) \ 42 | $(wildcard $(LOCAL_PATH)/src/video/android/*.c) \ 43 | $(wildcard $(LOCAL_PATH)/src/test/*.c)) 44 | 45 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES 46 | LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid 47 | 48 | include $(BUILD_SHARED_LIBRARY) 49 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/include/SDL_bits.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_bits.h 24 | * 25 | * Functions for fiddling with bits and bitmasks. 26 | */ 27 | 28 | #ifndef _SDL_bits_h 29 | #define _SDL_bits_h 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \file SDL_bits.h 41 | */ 42 | 43 | /** 44 | * Get the index of the most significant bit. Result is undefined when called 45 | * with 0. This operation can also be stated as "count leading zeroes" and 46 | * "log base 2". 47 | * 48 | * \return Index of the most significant bit, or -1 if the value is 0. 49 | */ 50 | SDL_FORCE_INLINE int 51 | SDL_MostSignificantBitIndex32(Uint32 x) 52 | { 53 | #if defined(__GNUC__) && __GNUC__ >= 4 54 | /* Count Leading Zeroes builtin in GCC. 55 | * http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html 56 | */ 57 | if (x == 0) { 58 | return -1; 59 | } 60 | return 31 - __builtin_clz(x); 61 | #else 62 | /* Based off of Bit Twiddling Hacks by Sean Eron Anderson 63 | * , released in the public domain. 64 | * http://graphics.stanford.edu/~seander/bithacks.html#IntegerLog 65 | */ 66 | const Uint32 b[] = {0x2, 0xC, 0xF0, 0xFF00, 0xFFFF0000}; 67 | const int S[] = {1, 2, 4, 8, 16}; 68 | 69 | int msbIndex = 0; 70 | int i; 71 | 72 | if (x == 0) { 73 | return -1; 74 | } 75 | 76 | for (i = 4; i >= 0; i--) 77 | { 78 | if (x & b[i]) 79 | { 80 | x >>= S[i]; 81 | msbIndex |= S[i]; 82 | } 83 | } 84 | 85 | return msbIndex; 86 | #endif 87 | } 88 | 89 | /* Ends C function definitions when using C++ */ 90 | #ifdef __cplusplus 91 | } 92 | #endif 93 | #include "close_code.h" 94 | 95 | #endif /* _SDL_bits_h */ 96 | 97 | /* vi: set ts=4 sw=4 expandtab: */ 98 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/include/SDL_blendmode.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_blendmode.h 24 | * 25 | * Header file declaring the SDL_BlendMode enumeration 26 | */ 27 | 28 | #ifndef _SDL_blendmode_h 29 | #define _SDL_blendmode_h 30 | 31 | #include "begin_code.h" 32 | /* Set up for C function definitions, even when using C++ */ 33 | #ifdef __cplusplus 34 | extern "C" { 35 | #endif 36 | 37 | /** 38 | * \brief The blend mode used in SDL_RenderCopy() and drawing operations. 39 | */ 40 | typedef enum 41 | { 42 | SDL_BLENDMODE_NONE = 0x00000000, /**< no blending 43 | dstRGBA = srcRGBA */ 44 | SDL_BLENDMODE_BLEND = 0x00000001, /**< alpha blending 45 | dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA)) 46 | dstA = srcA + (dstA * (1-srcA)) */ 47 | SDL_BLENDMODE_ADD = 0x00000002, /**< additive blending 48 | dstRGB = (srcRGB * srcA) + dstRGB 49 | dstA = dstA */ 50 | SDL_BLENDMODE_MOD = 0x00000004 /**< color modulate 51 | dstRGB = srcRGB * dstRGB 52 | dstA = dstA */ 53 | } SDL_BlendMode; 54 | 55 | /* Ends C function definitions when using C++ */ 56 | #ifdef __cplusplus 57 | } 58 | #endif 59 | #include "close_code.h" 60 | 61 | #endif /* _SDL_blendmode_h */ 62 | 63 | /* vi: set ts=4 sw=4 expandtab: */ 64 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/include/SDL_clipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_clipboard.h 24 | * 25 | * Include file for SDL clipboard handling 26 | */ 27 | 28 | #ifndef _SDL_clipboard_h 29 | #define _SDL_clipboard_h 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Function prototypes */ 40 | 41 | /** 42 | * \brief Put UTF-8 text into the clipboard 43 | * 44 | * \sa SDL_GetClipboardText() 45 | */ 46 | extern DECLSPEC int SDLCALL SDL_SetClipboardText(const char *text); 47 | 48 | /** 49 | * \brief Get UTF-8 text from the clipboard, which must be freed with SDL_free() 50 | * 51 | * \sa SDL_SetClipboardText() 52 | */ 53 | extern DECLSPEC char * SDLCALL SDL_GetClipboardText(void); 54 | 55 | /** 56 | * \brief Returns a flag indicating whether the clipboard exists and contains a text string that is non-empty 57 | * 58 | * \sa SDL_GetClipboardText() 59 | */ 60 | extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void); 61 | 62 | 63 | /* Ends C function definitions when using C++ */ 64 | #ifdef __cplusplus 65 | } 66 | #endif 67 | #include "close_code.h" 68 | 69 | #endif /* _SDL_clipboard_h */ 70 | 71 | /* vi: set ts=4 sw=4 expandtab: */ 72 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/include/SDL_config.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef _SDL_config_h 23 | #define _SDL_config_h 24 | 25 | #include "SDL_platform.h" 26 | 27 | /** 28 | * \file SDL_config.h 29 | */ 30 | 31 | /* Add any platform that doesn't build using the configure system. */ 32 | #ifdef USING_PREMAKE_CONFIG_H 33 | #include "SDL_config_premake.h" 34 | #elif defined(__WIN32__) 35 | #include "SDL_config_windows.h" 36 | #elif defined(__WINRT__) 37 | #include "SDL_config_winrt.h" 38 | #elif defined(__MACOSX__) 39 | #include "SDL_config_macosx.h" 40 | #elif defined(__IPHONEOS__) 41 | #include "SDL_config_iphoneos.h" 42 | #elif defined(__ANDROID__) 43 | #include "SDL_config_android.h" 44 | #elif defined(__PSP__) 45 | #include "SDL_config_psp.h" 46 | #else 47 | /* This is a minimal configuration just to get SDL running on new platforms */ 48 | #include "SDL_config_minimal.h" 49 | #endif /* platform config */ 50 | 51 | #ifdef USING_GENERATED_CONFIG_H 52 | #error Wrong SDL_config.h, check your include path? 53 | #endif 54 | 55 | #endif /* _SDL_config_h */ 56 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/include/SDL_copying.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/include/SDL_error.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_error.h 24 | * 25 | * Simple error message routines for SDL. 26 | */ 27 | 28 | #ifndef _SDL_error_h 29 | #define _SDL_error_h 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Public functions */ 40 | /* SDL_SetError() unconditionally returns -1. */ 41 | extern DECLSPEC int SDLCALL SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1); 42 | extern DECLSPEC const char *SDLCALL SDL_GetError(void); 43 | extern DECLSPEC void SDLCALL SDL_ClearError(void); 44 | 45 | /** 46 | * \name Internal error functions 47 | * 48 | * \internal 49 | * Private error reporting function - used internally. 50 | */ 51 | /* @{ */ 52 | #define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM) 53 | #define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED) 54 | #define SDL_InvalidParamError(param) SDL_SetError("Parameter '%s' is invalid", (param)) 55 | typedef enum 56 | { 57 | SDL_ENOMEM, 58 | SDL_EFREAD, 59 | SDL_EFWRITE, 60 | SDL_EFSEEK, 61 | SDL_UNSUPPORTED, 62 | SDL_LASTERROR 63 | } SDL_errorcode; 64 | /* SDL_Error() unconditionally returns -1. */ 65 | extern DECLSPEC int SDLCALL SDL_Error(SDL_errorcode code); 66 | /* @} *//* Internal error functions */ 67 | 68 | /* Ends C function definitions when using C++ */ 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | #include "close_code.h" 73 | 74 | #endif /* _SDL_error_h */ 75 | 76 | /* vi: set ts=4 sw=4 expandtab: */ 77 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/include/SDL_gesture.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_gesture.h 24 | * 25 | * Include file for SDL gesture event handling. 26 | */ 27 | 28 | #ifndef _SDL_gesture_h 29 | #define _SDL_gesture_h 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | #include "SDL_video.h" 34 | 35 | #include "SDL_touch.h" 36 | 37 | 38 | #include "begin_code.h" 39 | /* Set up for C function definitions, even when using C++ */ 40 | #ifdef __cplusplus 41 | extern "C" { 42 | #endif 43 | 44 | typedef Sint64 SDL_GestureID; 45 | 46 | /* Function prototypes */ 47 | 48 | /** 49 | * \brief Begin Recording a gesture on the specified touch, or all touches (-1) 50 | * 51 | * 52 | */ 53 | extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId); 54 | 55 | 56 | /** 57 | * \brief Save all currently loaded Dollar Gesture templates 58 | * 59 | * 60 | */ 61 | extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *dst); 62 | 63 | /** 64 | * \brief Save a currently loaded Dollar Gesture template 65 | * 66 | * 67 | */ 68 | extern DECLSPEC int SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *dst); 69 | 70 | 71 | /** 72 | * \brief Load Dollar Gesture templates from a file 73 | * 74 | * 75 | */ 76 | extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src); 77 | 78 | 79 | /* Ends C function definitions when using C++ */ 80 | #ifdef __cplusplus 81 | } 82 | #endif 83 | #include "close_code.h" 84 | 85 | #endif /* _SDL_gesture_h */ 86 | 87 | /* vi: set ts=4 sw=4 expandtab: */ 88 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/include/SDL_name.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef _SDLname_h_ 23 | #define _SDLname_h_ 24 | 25 | #if defined(__STDC__) || defined(__cplusplus) 26 | #define NeedFunctionPrototypes 1 27 | #endif 28 | 29 | #define SDL_NAME(X) SDL_##X 30 | 31 | #endif /* _SDLname_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/include/SDL_opengles.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 1.X API headers. 26 | */ 27 | 28 | #ifdef __IPHONEOS__ 29 | #include 30 | #include 31 | #else 32 | #include 33 | #include 34 | #endif 35 | 36 | #ifndef APIENTRY 37 | #define APIENTRY 38 | #endif 39 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/include/SDL_power.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef _SDL_power_h 23 | #define _SDL_power_h 24 | 25 | /** 26 | * \file SDL_power.h 27 | * 28 | * Header for the SDL power management routines. 29 | */ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \brief The basic state for the system's power supply. 41 | */ 42 | typedef enum 43 | { 44 | SDL_POWERSTATE_UNKNOWN, /**< cannot determine power status */ 45 | SDL_POWERSTATE_ON_BATTERY, /**< Not plugged in, running on the battery */ 46 | SDL_POWERSTATE_NO_BATTERY, /**< Plugged in, no battery available */ 47 | SDL_POWERSTATE_CHARGING, /**< Plugged in, charging battery */ 48 | SDL_POWERSTATE_CHARGED /**< Plugged in, battery charged */ 49 | } SDL_PowerState; 50 | 51 | 52 | /** 53 | * \brief Get the current power supply details. 54 | * 55 | * \param secs Seconds of battery life left. You can pass a NULL here if 56 | * you don't care. Will return -1 if we can't determine a 57 | * value, or we're not running on a battery. 58 | * 59 | * \param pct Percentage of battery life left, between 0 and 100. You can 60 | * pass a NULL here if you don't care. Will return -1 if we 61 | * can't determine a value, or we're not running on a battery. 62 | * 63 | * \return The state of the battery (if any). 64 | */ 65 | extern DECLSPEC SDL_PowerState SDLCALL SDL_GetPowerInfo(int *secs, int *pct); 66 | 67 | /* Ends C function definitions when using C++ */ 68 | #ifdef __cplusplus 69 | } 70 | #endif 71 | #include "close_code.h" 72 | 73 | #endif /* _SDL_power_h */ 74 | 75 | /* vi: set ts=4 sw=4 expandtab: */ 76 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/include/SDL_quit.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_quit.h 24 | * 25 | * Include file for SDL quit event handling. 26 | */ 27 | 28 | #ifndef _SDL_quit_h 29 | #define _SDL_quit_h 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | /** 35 | * \file SDL_quit.h 36 | * 37 | * An ::SDL_QUIT event is generated when the user tries to close the application 38 | * window. If it is ignored or filtered out, the window will remain open. 39 | * If it is not ignored or filtered, it is queued normally and the window 40 | * is allowed to close. When the window is closed, screen updates will 41 | * complete, but have no effect. 42 | * 43 | * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) 44 | * and SIGTERM (system termination request), if handlers do not already 45 | * exist, that generate ::SDL_QUIT events as well. There is no way 46 | * to determine the cause of an ::SDL_QUIT event, but setting a signal 47 | * handler in your application will override the default generation of 48 | * quit events for that signal. 49 | * 50 | * \sa SDL_Quit() 51 | */ 52 | 53 | /* There are no functions directly affecting the quit event */ 54 | 55 | #define SDL_QuitRequested() \ 56 | (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0)) 57 | 58 | #endif /* _SDL_quit_h */ 59 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/include/SDL_revision.h: -------------------------------------------------------------------------------- 1 | #define SDL_REVISION "hg-10001:e12c38730512" 2 | #define SDL_REVISION_NUMBER 10001 3 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/include/SDL_touch.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_touch.h 24 | * 25 | * Include file for SDL touch event handling. 26 | */ 27 | 28 | #ifndef _SDL_touch_h 29 | #define _SDL_touch_h 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | #include "SDL_video.h" 34 | 35 | #include "begin_code.h" 36 | /* Set up for C function definitions, even when using C++ */ 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | typedef Sint64 SDL_TouchID; 42 | typedef Sint64 SDL_FingerID; 43 | 44 | typedef struct SDL_Finger 45 | { 46 | SDL_FingerID id; 47 | float x; 48 | float y; 49 | float pressure; 50 | } SDL_Finger; 51 | 52 | /* Used as the device ID for mouse events simulated with touch input */ 53 | #define SDL_TOUCH_MOUSEID ((Uint32)-1) 54 | 55 | 56 | /* Function prototypes */ 57 | 58 | /** 59 | * \brief Get the number of registered touch devices. 60 | */ 61 | extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void); 62 | 63 | /** 64 | * \brief Get the touch ID with the given index, or 0 if the index is invalid. 65 | */ 66 | extern DECLSPEC SDL_TouchID SDLCALL SDL_GetTouchDevice(int index); 67 | 68 | /** 69 | * \brief Get the number of active fingers for a given touch device. 70 | */ 71 | extern DECLSPEC int SDLCALL SDL_GetNumTouchFingers(SDL_TouchID touchID); 72 | 73 | /** 74 | * \brief Get the finger object of the given touch, with the given index. 75 | */ 76 | extern DECLSPEC SDL_Finger * SDLCALL SDL_GetTouchFinger(SDL_TouchID touchID, int index); 77 | 78 | /* Ends C function definitions when using C++ */ 79 | #ifdef __cplusplus 80 | } 81 | #endif 82 | #include "close_code.h" 83 | 84 | #endif /* _SDL_touch_h */ 85 | 86 | /* vi: set ts=4 sw=4 expandtab: */ 87 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/include/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_types.h 24 | * 25 | * \deprecated 26 | */ 27 | 28 | /* DEPRECATED */ 29 | #include "SDL_stdinc.h" 30 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/include/close_code.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file close_code.h 24 | * 25 | * This file reverses the effects of begin_code.h and should be included 26 | * after you finish any function and structure declarations in your headers 27 | */ 28 | 29 | #undef _begin_code_h 30 | 31 | /* Reset structure packing at previous byte alignment */ 32 | #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__WATCOMC__) || defined(__BORLANDC__) 33 | #ifdef __BORLANDC__ 34 | #pragma nopackwarning 35 | #endif 36 | #pragma pack(pop) 37 | #endif /* Compiler needs structure packing set */ 38 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/SDL_assert_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | extern void SDL_AssertionsQuit(void); 23 | 24 | /* vi: set ts=4 sw=4 expandtab: */ 25 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/SDL_error_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "./SDL_internal.h" 22 | 23 | /* This file defines a structure that carries language-independent 24 | error messages 25 | */ 26 | 27 | #ifndef _SDL_error_c_h 28 | #define _SDL_error_c_h 29 | 30 | #define ERR_MAX_STRLEN 128 31 | #define ERR_MAX_ARGS 5 32 | 33 | typedef struct SDL_error 34 | { 35 | /* This is a numeric value corresponding to the current error */ 36 | int error; 37 | 38 | /* This is a key used to index into a language hashtable containing 39 | internationalized versions of the SDL error messages. If the key 40 | is not in the hashtable, or no hashtable is available, the key is 41 | used directly as an error message format string. 42 | */ 43 | char key[ERR_MAX_STRLEN]; 44 | 45 | /* These are the arguments for the error functions */ 46 | int argc; 47 | union 48 | { 49 | void *value_ptr; 50 | #if 0 /* What is a character anyway? (UNICODE issues) */ 51 | unsigned char value_c; 52 | #endif 53 | int value_i; 54 | double value_f; 55 | char buf[ERR_MAX_STRLEN]; 56 | } args[ERR_MAX_ARGS]; 57 | } SDL_error; 58 | 59 | /* Defined in SDL_thread.c */ 60 | extern SDL_error *SDL_GetErrBuf(void); 61 | 62 | #endif /* _SDL_error_c_h */ 63 | 64 | /* vi: set ts=4 sw=4 expandtab: */ 65 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/SDL_internal.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #ifndef _SDL_internal_h 22 | #define _SDL_internal_h 23 | 24 | #include "dynapi/SDL_dynapi.h" 25 | 26 | #if SDL_DYNAMIC_API 27 | #include "dynapi/SDL_dynapi_overrides.h" 28 | /* force DECLSPEC and SDLCALL off...it's all internal symbols now. 29 | These will have actual #defines during SDL_dynapi.c only */ 30 | #define DECLSPEC 31 | #define SDLCALL 32 | #endif 33 | 34 | #include "SDL_config.h" 35 | 36 | #endif 37 | 38 | /* vi: set ts=4 sw=4 expandtab: */ 39 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/audio/SDL_audio_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | /* Functions and variables exported from SDL_audio.c for SDL_sysaudio.c */ 24 | 25 | /* Functions to get a list of "close" audio formats */ 26 | extern SDL_AudioFormat SDL_FirstAudioFormat(SDL_AudioFormat format); 27 | extern SDL_AudioFormat SDL_NextAudioFormat(void); 28 | 29 | /* Function to calculate the size and silence for a SDL_AudioSpec */ 30 | extern void SDL_CalculateAudioSpec(SDL_AudioSpec * spec); 31 | 32 | /* The actual mixing thread function */ 33 | extern int SDLCALL SDL_RunAudio(void *audiop); 34 | 35 | /* this is used internally to access some autogenerated code. */ 36 | typedef struct 37 | { 38 | SDL_AudioFormat src_fmt; 39 | SDL_AudioFormat dst_fmt; 40 | SDL_AudioFilter filter; 41 | } SDL_AudioTypeFilters; 42 | extern const SDL_AudioTypeFilters sdl_audio_type_filters[]; 43 | 44 | /* this is used internally to access some autogenerated code. */ 45 | typedef struct 46 | { 47 | SDL_AudioFormat fmt; 48 | int channels; 49 | int upsample; 50 | int multiple; 51 | SDL_AudioFilter filter; 52 | } SDL_AudioRateFilters; 53 | extern const SDL_AudioRateFilters sdl_audio_rate_filters[]; 54 | 55 | /* vi: set ts=4 sw=4 expandtab: */ 56 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/audio/SDL_audiodev_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "SDL.h" 22 | #include "../SDL_internal.h" 23 | #include "SDL_sysaudio.h" 24 | 25 | /* Open the audio device for playback, and don't block if busy */ 26 | /* #define USE_BLOCKING_WRITES */ 27 | 28 | #ifdef USE_BLOCKING_WRITES 29 | #define OPEN_FLAGS_OUTPUT O_WRONLY 30 | #define OPEN_FLAGS_INPUT O_RDONLY 31 | #else 32 | #define OPEN_FLAGS_OUTPUT (O_WRONLY|O_NONBLOCK) 33 | #define OPEN_FLAGS_INPUT (O_RDONLY|O_NONBLOCK) 34 | #endif 35 | 36 | extern void SDL_EnumUnixAudioDevices(const int classic, int (*test)(int)); 37 | 38 | /* vi: set ts=4 sw=4 expandtab: */ 39 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/audio/SDL_audiomem.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #define SDL_AllocAudioMem SDL_malloc 24 | #define SDL_FreeAudioMem SDL_free 25 | /* vi: set ts=4 sw=4 expandtab: */ 26 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/audio/SDL_wave.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | /* WAVE files are little-endian */ 24 | 25 | /*******************************************/ 26 | /* Define values for Microsoft WAVE format */ 27 | /*******************************************/ 28 | #define RIFF 0x46464952 /* "RIFF" */ 29 | #define WAVE 0x45564157 /* "WAVE" */ 30 | #define FACT 0x74636166 /* "fact" */ 31 | #define LIST 0x5453494c /* "LIST" */ 32 | #define BEXT 0x74786562 /* "bext" */ 33 | #define JUNK 0x4B4E554A /* "JUNK" */ 34 | #define FMT 0x20746D66 /* "fmt " */ 35 | #define DATA 0x61746164 /* "data" */ 36 | #define PCM_CODE 0x0001 37 | #define MS_ADPCM_CODE 0x0002 38 | #define IEEE_FLOAT_CODE 0x0003 39 | #define IMA_ADPCM_CODE 0x0011 40 | #define MP3_CODE 0x0055 41 | #define WAVE_MONO 1 42 | #define WAVE_STEREO 2 43 | 44 | /* Normally, these three chunks come consecutively in a WAVE file */ 45 | typedef struct WaveFMT 46 | { 47 | /* Not saved in the chunk we read: 48 | Uint32 FMTchunk; 49 | Uint32 fmtlen; 50 | */ 51 | Uint16 encoding; 52 | Uint16 channels; /* 1 = mono, 2 = stereo */ 53 | Uint32 frequency; /* One of 11025, 22050, or 44100 Hz */ 54 | Uint32 byterate; /* Average bytes per second */ 55 | Uint16 blockalign; /* Bytes per sample block */ 56 | Uint16 bitspersample; /* One of 8, 12, 16, or 4 for ADPCM */ 57 | } WaveFMT; 58 | 59 | /* The general chunk found in the WAVE file */ 60 | typedef struct Chunk 61 | { 62 | Uint32 magic; 63 | Uint32 length; 64 | Uint8 *data; 65 | } Chunk; 66 | 67 | /* vi: set ts=4 sw=4 expandtab: */ 68 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/audio/android/SDL_androidaudio.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef _SDL_androidaudio_h 24 | #define _SDL_androidaudio_h 25 | 26 | #include "../SDL_sysaudio.h" 27 | 28 | /* Hidden "this" pointer for the audio functions */ 29 | #define _THIS SDL_AudioDevice *this 30 | 31 | struct SDL_PrivateAudioData 32 | { 33 | /* Resume device if it was paused automatically */ 34 | int resume; 35 | }; 36 | 37 | static void AndroidAUD_CloseDevice(_THIS); 38 | 39 | #endif /* _SDL_androidaudio_h */ 40 | 41 | /* vi: set ts=4 sw=4 expandtab: */ 42 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/dynapi/SDL_dynapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef _SDL_dynapi_h 23 | #define _SDL_dynapi_h 24 | 25 | /* IMPORTANT: 26 | This is the master switch to disabling the dynamic API. We made it so you 27 | have to hand-edit an internal source file in SDL to turn it off; you 28 | can do it if you want it badly enough, but hopefully you won't want to. 29 | You should understand the ramifications of turning this off: it makes it 30 | hard to update your SDL in the field, and impossible if you've statically 31 | linked SDL into your app. Understand that platforms change, and if we can't 32 | drop in an updated SDL, your application can definitely break some time 33 | in the future, even if it's fine today. 34 | To be sure, as new system-level video and audio APIs are introduced, an 35 | updated SDL can transparently take advantage of them, but your program will 36 | not without this feature. Think hard before turning it off. 37 | */ 38 | #ifdef SDL_DYNAMIC_API /* Tried to force it on the command line? */ 39 | #error Nope, you have to edit this file to force this off. 40 | #endif 41 | 42 | #ifdef __APPLE__ 43 | #include "TargetConditionals.h" 44 | #endif 45 | 46 | #if TARGET_OS_IPHONE || __native_client__ || __EMSCRIPTEN__ /* probably not useful on iOS, NACL or Emscripten. */ 47 | #define SDL_DYNAMIC_API 0 48 | #elif SDL_BUILDING_WINRT /* probaly not useful on WinRT, given current .dll loading restrictions */ 49 | #define SDL_DYNAMIC_API 0 50 | #elif defined(__clang_analyzer__) 51 | #define SDL_DYNAMIC_API 0 /* Turn off for static analysis, so reports are more clear. */ 52 | #endif 53 | 54 | /* everyone else. This is where we turn on the API if nothing forced it off. */ 55 | #ifndef SDL_DYNAMIC_API 56 | #define SDL_DYNAMIC_API 1 57 | #endif 58 | 59 | #endif 60 | 61 | /* vi: set ts=4 sw=4 expandtab: */ 62 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/events/SDL_clipboardevents.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | /* Clipboard event handling code for SDL */ 24 | 25 | #include "SDL_events.h" 26 | #include "SDL_events_c.h" 27 | #include "SDL_clipboardevents_c.h" 28 | 29 | 30 | int 31 | SDL_SendClipboardUpdate(void) 32 | { 33 | int posted; 34 | 35 | /* Post the event, if desired */ 36 | posted = 0; 37 | if (SDL_GetEventState(SDL_CLIPBOARDUPDATE) == SDL_ENABLE) { 38 | SDL_Event event; 39 | event.type = SDL_CLIPBOARDUPDATE; 40 | 41 | posted = (SDL_PushEvent(&event) > 0); 42 | } 43 | return (posted); 44 | } 45 | 46 | /* vi: set ts=4 sw=4 expandtab: */ 47 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/events/SDL_clipboardevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #ifndef _SDL_clipboardevents_c_h 24 | #define _SDL_clipboardevents_c_h 25 | 26 | extern int SDL_SendClipboardUpdate(void); 27 | 28 | #endif /* _SDL_clipboardevents_c_h */ 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/events/SDL_dropevents.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | /* Drag and drop event handling code for SDL */ 24 | 25 | #include "SDL_events.h" 26 | #include "SDL_events_c.h" 27 | #include "SDL_dropevents_c.h" 28 | 29 | 30 | int 31 | SDL_SendDropFile(const char *file) 32 | { 33 | int posted; 34 | 35 | /* Post the event, if desired */ 36 | posted = 0; 37 | if (SDL_GetEventState(SDL_DROPFILE) == SDL_ENABLE) { 38 | SDL_Event event; 39 | event.type = SDL_DROPFILE; 40 | event.drop.file = SDL_strdup(file); 41 | posted = (SDL_PushEvent(&event) > 0); 42 | } 43 | return (posted); 44 | } 45 | 46 | /* vi: set ts=4 sw=4 expandtab: */ 47 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/events/SDL_dropevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #ifndef _SDL_dropevents_c_h 24 | #define _SDL_dropevents_c_h 25 | 26 | extern int SDL_SendDropFile(const char *file); 27 | 28 | #endif /* _SDL_dropevents_c_h */ 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/events/SDL_events_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | /* Useful functions and variables from SDL_events.c */ 24 | #include "SDL_events.h" 25 | #include "SDL_thread.h" 26 | #include "SDL_clipboardevents_c.h" 27 | #include "SDL_dropevents_c.h" 28 | #include "SDL_gesture_c.h" 29 | #include "SDL_keyboard_c.h" 30 | #include "SDL_mouse_c.h" 31 | #include "SDL_touch_c.h" 32 | #include "SDL_windowevents_c.h" 33 | 34 | /* Start and stop the event processing loop */ 35 | extern int SDL_StartEventLoop(void); 36 | extern void SDL_StopEventLoop(void); 37 | extern void SDL_QuitInterrupt(void); 38 | 39 | extern int SDL_SendAppEvent(SDL_EventType eventType); 40 | extern int SDL_SendSysWMEvent(SDL_SysWMmsg * message); 41 | extern int SDL_SendKeymapChangedEvent(void); 42 | 43 | extern int SDL_QuitInit(void); 44 | extern int SDL_SendQuit(void); 45 | extern void SDL_QuitQuit(void); 46 | 47 | extern void SDL_SendPendingQuit(void); 48 | 49 | /* The event filter function */ 50 | extern SDL_EventFilter SDL_EventOK; 51 | extern void *SDL_EventOKParam; 52 | 53 | /* vi: set ts=4 sw=4 expandtab: */ 54 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/events/SDL_gesture_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #ifndef _SDL_gesture_c_h 24 | #define _SDL_gesture_c_h 25 | 26 | extern int SDL_GestureAddTouch(SDL_TouchID touchId); 27 | 28 | extern void SDL_GestureProcessEvent(SDL_Event* event); 29 | 30 | extern int SDL_RecordGesture(SDL_TouchID touchId); 31 | 32 | #endif /* _SDL_gesture_c_h */ 33 | 34 | /* vi: set ts=4 sw=4 expandtab: */ 35 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/events/SDL_keyboard_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #ifndef _SDL_keyboard_c_h 24 | #define _SDL_keyboard_c_h 25 | 26 | #include "SDL_keycode.h" 27 | #include "SDL_events.h" 28 | 29 | /* Initialize the keyboard subsystem */ 30 | extern int SDL_KeyboardInit(void); 31 | 32 | /* Clear the state of the keyboard */ 33 | extern void SDL_ResetKeyboard(void); 34 | 35 | /* Get the default keymap */ 36 | extern void SDL_GetDefaultKeymap(SDL_Keycode * keymap); 37 | 38 | /* Set the mapping of scancode to key codes */ 39 | extern void SDL_SetKeymap(int start, SDL_Keycode * keys, int length); 40 | 41 | /* Set a platform-dependent key name, overriding the default platform-agnostic 42 | name. Encoded as UTF-8. The string is not copied, thus the pointer given to 43 | this function must stay valid forever (or at least until the call to 44 | VideoQuit()). */ 45 | extern void SDL_SetScancodeName(SDL_Scancode scancode, const char *name); 46 | 47 | /* Set the keyboard focus window */ 48 | extern void SDL_SetKeyboardFocus(SDL_Window * window); 49 | 50 | /* Send a keyboard key event */ 51 | extern int SDL_SendKeyboardKey(Uint8 state, SDL_Scancode scancode); 52 | 53 | /* Send keyboard text input */ 54 | extern int SDL_SendKeyboardText(const char *text); 55 | 56 | /* Send editing text for selected range from start to end */ 57 | extern int SDL_SendEditingText(const char *text, int start, int end); 58 | 59 | /* Shutdown the keyboard subsystem */ 60 | extern void SDL_KeyboardQuit(void); 61 | 62 | /* Convert to UTF-8 */ 63 | extern char *SDL_UCS4ToUTF8(Uint32 ch, char *dst); 64 | 65 | /* Toggle on or off pieces of the keyboard mod state. */ 66 | extern void SDL_ToggleModState(const SDL_Keymod modstate, const SDL_bool toggle); 67 | 68 | #endif /* _SDL_keyboard_c_h */ 69 | 70 | /* vi: set ts=4 sw=4 expandtab: */ 71 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/events/SDL_sysevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #include "../video/SDL_sysvideo.h" 24 | 25 | /* Useful functions and variables from SDL_sysevents.c */ 26 | 27 | #if defined(__HAIKU__) 28 | /* The Haiku event loops run in a separate thread */ 29 | #define MUST_THREAD_EVENTS 30 | #endif 31 | 32 | #ifdef __WIN32__ /* Windows doesn't allow a separate event thread */ 33 | #define CANT_THREAD_EVENTS 34 | #endif 35 | 36 | /* vi: set ts=4 sw=4 expandtab: */ 37 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/events/SDL_touch_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | #include "../../include/SDL_touch.h" 23 | 24 | #ifndef _SDL_touch_c_h 25 | #define _SDL_touch_c_h 26 | 27 | typedef struct SDL_Touch 28 | { 29 | SDL_TouchID id; 30 | int num_fingers; 31 | int max_fingers; 32 | SDL_Finger** fingers; 33 | } SDL_Touch; 34 | 35 | 36 | /* Initialize the touch subsystem */ 37 | extern int SDL_TouchInit(void); 38 | 39 | /* Add a touch, returning the index of the touch, or -1 if there was an error. */ 40 | extern int SDL_AddTouch(SDL_TouchID id, const char *name); 41 | 42 | /* Get the touch with a given id */ 43 | extern SDL_Touch *SDL_GetTouch(SDL_TouchID id); 44 | 45 | /* Send a touch down/up event for a touch */ 46 | extern int SDL_SendTouch(SDL_TouchID id, SDL_FingerID fingerid, 47 | SDL_bool down, float x, float y, float pressure); 48 | 49 | /* Send a touch motion event for a touch */ 50 | extern int SDL_SendTouchMotion(SDL_TouchID id, SDL_FingerID fingerid, 51 | float x, float y, float pressure); 52 | 53 | /* Remove a touch */ 54 | extern void SDL_DelTouch(SDL_TouchID id); 55 | 56 | /* Shutdown the touch subsystem */ 57 | extern void SDL_TouchQuit(void); 58 | 59 | #endif /* _SDL_touch_c_h */ 60 | 61 | /* vi: set ts=4 sw=4 expandtab: */ 62 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/events/SDL_windowevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #ifndef _SDL_windowevents_c_h 24 | #define _SDL_windowevents_c_h 25 | 26 | extern int SDL_SendWindowEvent(SDL_Window * window, Uint8 windowevent, 27 | int data1, int data2); 28 | 29 | #endif /* _SDL_windowevents_c_h */ 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/events/blank_cursor.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 23 | * A default blank 8x8 cursor */ 24 | 25 | #define BLANK_CWIDTH 8 26 | #define BLANK_CHEIGHT 8 27 | #define BLANK_CHOTX 0 28 | #define BLANK_CHOTY 0 29 | 30 | static const unsigned char blank_cdata[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; 31 | static const unsigned char blank_cmask[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/events/default_cursor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/cpp/SDL2/src/events/default_cursor.h -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/filesystem/android/SDL_sysfilesystem.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifdef SDL_FILESYSTEM_ANDROID 24 | 25 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 26 | /* System dependent filesystem routines */ 27 | 28 | #include 29 | #include 30 | 31 | #include "SDL_error.h" 32 | #include "SDL_filesystem.h" 33 | #include "SDL_system.h" 34 | 35 | 36 | char * 37 | SDL_GetBasePath(void) 38 | { 39 | /* The current working directory is / on Android */ 40 | return NULL; 41 | } 42 | 43 | char * 44 | SDL_GetPrefPath(const char *org, const char *app) 45 | { 46 | const char *path = SDL_AndroidGetInternalStoragePath(); 47 | if (path) { 48 | size_t pathlen = SDL_strlen(path)+2; 49 | char *fullpath = (char *)SDL_malloc(pathlen); 50 | if (!fullpath) { 51 | SDL_OutOfMemory(); 52 | return NULL; 53 | } 54 | SDL_snprintf(fullpath, pathlen, "%s/", path); 55 | return fullpath; 56 | } 57 | return NULL; 58 | } 59 | 60 | #endif /* SDL_FILESYSTEM_ANDROID */ 61 | 62 | /* vi: set ts=4 sw=4 expandtab: */ 63 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/joystick/SDL_joystick_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | /* Useful functions and variables from SDL_joystick.c */ 24 | #include "SDL_joystick.h" 25 | 26 | /* Initialization and shutdown functions */ 27 | extern int SDL_JoystickInit(void); 28 | extern void SDL_JoystickQuit(void); 29 | 30 | /* Initialization and shutdown functions */ 31 | extern int SDL_GameControllerInit(void); 32 | extern void SDL_GameControllerQuit(void); 33 | 34 | 35 | /* Internal event queueing functions */ 36 | extern int SDL_PrivateJoystickAxis(SDL_Joystick * joystick, 37 | Uint8 axis, Sint16 value); 38 | extern int SDL_PrivateJoystickBall(SDL_Joystick * joystick, 39 | Uint8 ball, Sint16 xrel, Sint16 yrel); 40 | extern int SDL_PrivateJoystickHat(SDL_Joystick * joystick, 41 | Uint8 hat, Uint8 value); 42 | extern int SDL_PrivateJoystickButton(SDL_Joystick * joystick, 43 | Uint8 button, Uint8 state); 44 | extern void SDL_PrivateJoystickBatteryLevel( SDL_Joystick * joystick, 45 | SDL_JoystickPowerLevel ePowerLevel ); 46 | 47 | /* Internal sanity checking functions */ 48 | extern int SDL_PrivateJoystickValid(SDL_Joystick * joystick); 49 | 50 | /* vi: set ts=4 sw=4 expandtab: */ 51 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/joystick/android/SDL_sysjoystick_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "../../SDL_internal.h" 23 | 24 | #ifdef SDL_JOYSTICK_ANDROID 25 | #include "../SDL_sysjoystick.h" 26 | 27 | extern int Android_OnPadDown(int device_id, int keycode); 28 | extern int Android_OnPadUp(int device_id, int keycode); 29 | extern int Android_OnJoy(int device_id, int axisnum, float value); 30 | extern int Android_OnHat(int device_id, int hat_id, int x, int y); 31 | extern int Android_AddJoystick(int device_id, const char *name, SDL_bool is_accelerometer, int nbuttons, int naxes, int nhats, int nballs); 32 | extern int Android_RemoveJoystick(int device_id); 33 | 34 | /* A linked list of available joysticks */ 35 | typedef struct SDL_joylist_item 36 | { 37 | int device_instance; 38 | int device_id; /* Android's device id */ 39 | char *name; /* "SideWinder 3D Pro" or whatever */ 40 | SDL_JoystickGUID guid; 41 | SDL_bool is_accelerometer; 42 | SDL_Joystick *joystick; 43 | int nbuttons, naxes, nhats, nballs; 44 | 45 | struct SDL_joylist_item *next; 46 | } SDL_joylist_item; 47 | 48 | typedef SDL_joylist_item joystick_hwdata; 49 | 50 | #endif /* SDL_JOYSTICK_ANDROID */ 51 | 52 | /* vi: set ts=4 sw=4 expandtab: */ 53 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/libm/math_libm.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | /* Math routines from uClibc: http://www.uclibc.org */ 24 | 25 | double SDL_uclibc_atan(double x); 26 | double SDL_uclibc_atan2(double y, double x); 27 | double SDL_uclibc_copysign(double x, double y); 28 | double SDL_uclibc_cos(double x); 29 | double SDL_uclibc_fabs(double x); 30 | double SDL_uclibc_floor(double x); 31 | double SDL_uclibc_log(double x); 32 | double SDL_uclibc_pow(double x, double y); 33 | double SDL_uclibc_scalbn(double x, int n); 34 | double SDL_uclibc_sin(double x); 35 | double SDL_uclibc_sqrt(double x); 36 | double SDL_uclibc_tan(double x); 37 | 38 | /* vi: set ts=4 sw=4 expandtab: */ 39 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/loadso/dlopen/SDL_sysloadso.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifdef SDL_LOADSO_DLOPEN 24 | 25 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 26 | /* System dependent library loading routines */ 27 | 28 | #include 29 | #include 30 | 31 | #include "SDL_loadso.h" 32 | 33 | void * 34 | SDL_LoadObject(const char *sofile) 35 | { 36 | void *handle = dlopen(sofile, RTLD_NOW|RTLD_LOCAL); 37 | const char *loaderror = (char *) dlerror(); 38 | if (handle == NULL) { 39 | SDL_SetError("Failed loading %s: %s", sofile, loaderror); 40 | } 41 | return (handle); 42 | } 43 | 44 | void * 45 | SDL_LoadFunction(void *handle, const char *name) 46 | { 47 | void *symbol = dlsym(handle, name); 48 | if (symbol == NULL) { 49 | /* append an underscore for platforms that need that. */ 50 | size_t len = 1 + SDL_strlen(name) + 1; 51 | char *_name = SDL_stack_alloc(char, len); 52 | _name[0] = '_'; 53 | SDL_strlcpy(&_name[1], name, len); 54 | symbol = dlsym(handle, _name); 55 | SDL_stack_free(_name); 56 | if (symbol == NULL) { 57 | SDL_SetError("Failed loading %s: %s", name, 58 | (const char *) dlerror()); 59 | } 60 | } 61 | return (symbol); 62 | } 63 | 64 | void 65 | SDL_UnloadObject(void *handle) 66 | { 67 | if (handle != NULL) { 68 | dlclose(handle); 69 | } 70 | } 71 | 72 | #endif /* SDL_LOADSO_DLOPEN */ 73 | 74 | /* vi: set ts=4 sw=4 expandtab: */ 75 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/main/android/SDL_android_main.c: -------------------------------------------------------------------------------- 1 | /* 2 | SDL_android_main.c, placed in the public domain by Sam Lantinga 3/13/14 3 | */ 4 | #include "../../SDL_internal.h" 5 | 6 | #ifdef __ANDROID__ 7 | 8 | /* Include the SDL main definition header */ 9 | #include "SDL_main.h" 10 | 11 | /******************************************************************************* 12 | Functions called by JNI 13 | *******************************************************************************/ 14 | #include 15 | 16 | /* Called before SDL_main() to initialize JNI bindings in SDL library */ 17 | extern void SDL_Android_Init(JNIEnv* env, jclass cls); 18 | 19 | /* Start up the SDL app */ 20 | JNIEXPORT int JNICALL Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject array) 21 | { 22 | int i; 23 | int argc; 24 | int status; 25 | 26 | /* This interface could expand with ABI negotiation, callbacks, etc. */ 27 | SDL_Android_Init(env, cls); 28 | 29 | SDL_SetMainReady(); 30 | 31 | /* Prepare the arguments. */ 32 | 33 | int len = (*env)->GetArrayLength(env, array); 34 | char* argv[1 + len + 1]; 35 | argc = 0; 36 | /* Use the name "app_process" so PHYSFS_platformCalcBaseDir() works. 37 | https://bitbucket.org/MartinFelis/love-android-sdl2/issue/23/release-build-crash-on-start 38 | */ 39 | argv[argc++] = SDL_strdup("app_process"); 40 | for (i = 0; i < len; ++i) { 41 | const char* utf; 42 | char* arg = NULL; 43 | jstring string = (*env)->GetObjectArrayElement(env, array, i); 44 | if (string) { 45 | utf = (*env)->GetStringUTFChars(env, string, 0); 46 | if (utf) { 47 | arg = SDL_strdup(utf); 48 | (*env)->ReleaseStringUTFChars(env, string, utf); 49 | } 50 | (*env)->DeleteLocalRef(env, string); 51 | } 52 | if (!arg) { 53 | arg = SDL_strdup(""); 54 | } 55 | argv[argc++] = arg; 56 | } 57 | argv[argc] = NULL; 58 | 59 | 60 | /* Run the application. */ 61 | 62 | status = SDL_main(argc, argv); 63 | 64 | /* Release the arguments. */ 65 | 66 | for (i = 0; i < argc; ++i) { 67 | SDL_free(argv[i]); 68 | } 69 | 70 | /* Do not issue an exit or the whole application will terminate instead of just the SDL thread */ 71 | /* exit(status); */ 72 | 73 | return status; 74 | } 75 | 76 | #endif /* __ANDROID__ */ 77 | 78 | /* vi: set ts=4 sw=4 expandtab: */ 79 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/render/software/SDL_blendfillrect.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | 24 | extern int SDL_BlendFillRect(SDL_Surface * dst, const SDL_Rect * rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 25 | extern int SDL_BlendFillRects(SDL_Surface * dst, const SDL_Rect * rects, int count, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 26 | 27 | /* vi: set ts=4 sw=4 expandtab: */ 28 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/render/software/SDL_blendline.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | 24 | extern int SDL_BlendLine(SDL_Surface * dst, int x1, int y1, int x2, int y2, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 25 | extern int SDL_BlendLines(SDL_Surface * dst, const SDL_Point * points, int count, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 26 | 27 | /* vi: set ts=4 sw=4 expandtab: */ 28 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/render/software/SDL_blendpoint.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | 24 | extern int SDL_BlendPoint(SDL_Surface * dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 25 | extern int SDL_BlendPoints(SDL_Surface * dst, const SDL_Point * points, int count, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 26 | 27 | /* vi: set ts=4 sw=4 expandtab: */ 28 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/render/software/SDL_drawline.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | 24 | extern int SDL_DrawLine(SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color); 25 | extern int SDL_DrawLines(SDL_Surface * dst, const SDL_Point * points, int count, Uint32 color); 26 | 27 | /* vi: set ts=4 sw=4 expandtab: */ 28 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/render/software/SDL_drawpoint.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | 24 | extern int SDL_DrawPoint(SDL_Surface * dst, int x, int y, Uint32 color); 25 | extern int SDL_DrawPoints(SDL_Surface * dst, const SDL_Point * points, int count, Uint32 color); 26 | 27 | /* vi: set ts=4 sw=4 expandtab: */ 28 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/render/software/SDL_render_sw_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | extern SDL_Renderer * SW_CreateRendererForSurface(SDL_Surface * surface); 23 | 24 | /* vi: set ts=4 sw=4 expandtab: */ 25 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/render/software/SDL_rotate.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef MIN 23 | #define MIN(a,b) (((a) < (b)) ? (a) : (b)) 24 | #endif 25 | 26 | extern SDL_Surface *SDLgfx_rotateSurface(SDL_Surface * src, double angle, int centerx, int centery, int smooth, int flipx, int flipy, int dstwidth, int dstheight, double cangle, double sangle); 27 | extern void SDLgfx_rotozoomSurfaceSizeTrig(int width, int height, double angle, int *dstwidth, int *dstheight, double *cangle, double *sangle); 28 | 29 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/thread/SDL_systhread.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | /* These are functions that need to be implemented by a port of SDL */ 24 | 25 | #ifndef _SDL_systhread_h 26 | #define _SDL_systhread_h 27 | 28 | #include "SDL_thread.h" 29 | #include "SDL_thread_c.h" 30 | 31 | /* This function creates a thread, passing args to SDL_RunThread(), 32 | saves a system-dependent thread id in thread->id, and returns 0 33 | on success. 34 | */ 35 | #ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD 36 | extern int SDL_SYS_CreateThread(SDL_Thread * thread, void *args, 37 | pfnSDL_CurrentBeginThread pfnBeginThread, 38 | pfnSDL_CurrentEndThread pfnEndThread); 39 | #else 40 | extern int SDL_SYS_CreateThread(SDL_Thread * thread, void *args); 41 | #endif 42 | 43 | /* This function does any necessary setup in the child thread */ 44 | extern void SDL_SYS_SetupThread(const char *name); 45 | 46 | /* This function sets the current thread priority */ 47 | extern int SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority); 48 | 49 | /* This function waits for the thread to finish and frees any data 50 | allocated by SDL_SYS_CreateThread() 51 | */ 52 | extern void SDL_SYS_WaitThread(SDL_Thread * thread); 53 | 54 | /* Mark thread as cleaned up as soon as it exits, without joining. */ 55 | extern void SDL_SYS_DetachThread(SDL_Thread * thread); 56 | 57 | /* Get the thread local storage for this thread */ 58 | extern SDL_TLSData *SDL_SYS_GetTLSData(); 59 | 60 | /* Set the thread local storage for this thread */ 61 | extern int SDL_SYS_SetTLSData(SDL_TLSData *data); 62 | 63 | #endif /* _SDL_systhread_h */ 64 | 65 | /* vi: set ts=4 sw=4 expandtab: */ 66 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/thread/pthread/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef _SDL_mutex_c_h 24 | #define _SDL_mutex_c_h 25 | 26 | struct SDL_mutex 27 | { 28 | pthread_mutex_t id; 29 | }; 30 | 31 | #endif /* _SDL_mutex_c_h */ 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/thread/pthread/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #include 24 | 25 | typedef pthread_t SYS_ThreadHandle; 26 | 27 | /* vi: set ts=4 sw=4 expandtab: */ 28 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/thread/pthread/SDL_systls.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | #include "SDL_thread.h" 23 | #include "../SDL_thread_c.h" 24 | 25 | #include 26 | 27 | 28 | #define INVALID_PTHREAD_KEY ((pthread_key_t)-1) 29 | 30 | static pthread_key_t thread_local_storage = INVALID_PTHREAD_KEY; 31 | static SDL_bool generic_local_storage = SDL_FALSE; 32 | 33 | SDL_TLSData * 34 | SDL_SYS_GetTLSData() 35 | { 36 | if (thread_local_storage == INVALID_PTHREAD_KEY && !generic_local_storage) { 37 | static SDL_SpinLock lock; 38 | SDL_AtomicLock(&lock); 39 | if (thread_local_storage == INVALID_PTHREAD_KEY && !generic_local_storage) { 40 | pthread_key_t storage; 41 | if (pthread_key_create(&storage, NULL) == 0) { 42 | SDL_MemoryBarrierRelease(); 43 | thread_local_storage = storage; 44 | } else { 45 | generic_local_storage = SDL_TRUE; 46 | } 47 | } 48 | SDL_AtomicUnlock(&lock); 49 | } 50 | if (generic_local_storage) { 51 | return SDL_Generic_GetTLSData(); 52 | } 53 | SDL_MemoryBarrierAcquire(); 54 | return (SDL_TLSData *)pthread_getspecific(thread_local_storage); 55 | } 56 | 57 | int 58 | SDL_SYS_SetTLSData(SDL_TLSData *data) 59 | { 60 | if (generic_local_storage) { 61 | return SDL_Generic_SetTLSData(data); 62 | } 63 | if (pthread_setspecific(thread_local_storage, data) != 0) { 64 | return SDL_SetError("pthread_setspecific() failed"); 65 | } 66 | return 0; 67 | } 68 | 69 | /* vi: set ts=4 sw=4 expandtab: */ 70 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/timer/SDL_timer_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | /* Useful functions and variables from SDL_timer.c */ 24 | #include "SDL_timer.h" 25 | 26 | #define ROUND_RESOLUTION(X) \ 27 | (((X+TIMER_RESOLUTION-1)/TIMER_RESOLUTION)*TIMER_RESOLUTION) 28 | 29 | extern void SDL_TicksInit(void); 30 | extern void SDL_TicksQuit(void); 31 | extern int SDL_TimerInit(void); 32 | extern void SDL_TimerQuit(void); 33 | 34 | /* vi: set ts=4 sw=4 expandtab: */ 35 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/SDL_RLEaccel.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/cpp/SDL2/src/video/SDL_RLEaccel.c -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/SDL_RLEaccel_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | /* Useful functions and variables from SDL_RLEaccel.c */ 24 | 25 | extern int SDL_RLESurface(SDL_Surface * surface); 26 | extern int SDL_RLEBlit(SDL_Surface * src, SDL_Rect * srcrect, 27 | SDL_Surface * dst, SDL_Rect * dstrect); 28 | extern int SDL_RLEAlphaBlit(SDL_Surface * src, SDL_Rect * srcrect, 29 | SDL_Surface * dst, SDL_Rect * dstrect); 30 | extern void SDL_UnRLESurface(SDL_Surface * surface, int recode); 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/SDL_blit_auto.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT! This file is generated by sdlgenblit.pl */ 2 | /* 3 | Simple DirectMedia Layer 4 | Copyright (C) 1997-2016 Sam Lantinga 5 | 6 | This software is provided 'as-is', without any express or implied 7 | warranty. In no event will the authors be held liable for any damages 8 | arising from the use of this software. 9 | 10 | Permission is granted to anyone to use this software for any purpose, 11 | including commercial applications, and to alter it and redistribute it 12 | freely, subject to the following restrictions: 13 | 14 | 1. The origin of this software must not be misrepresented; you must not 15 | claim that you wrote the original software. If you use this software 16 | in a product, an acknowledgment in the product documentation would be 17 | appreciated but is not required. 18 | 2. Altered source versions must be plainly marked as such, and must not be 19 | misrepresented as being the original software. 20 | 3. This notice may not be removed or altered from any source distribution. 21 | */ 22 | #include "../SDL_internal.h" 23 | 24 | /* *INDENT-OFF* */ 25 | 26 | extern SDL_BlitFuncEntry SDL_GeneratedBlitFuncTable[]; 27 | 28 | /* *INDENT-ON* */ 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/SDL_blit_copy.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | void SDL_BlitCopy(SDL_BlitInfo * info); 23 | 24 | /* vi: set ts=4 sw=4 expandtab: */ 25 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/SDL_blit_slow.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | extern void SDL_Blit_Slow(SDL_BlitInfo * info); 24 | 25 | /* vi: set ts=4 sw=4 expandtab: */ 26 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/SDL_clipboard.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #include "SDL_clipboard.h" 24 | #include "SDL_sysvideo.h" 25 | 26 | 27 | int 28 | SDL_SetClipboardText(const char *text) 29 | { 30 | SDL_VideoDevice *_this = SDL_GetVideoDevice(); 31 | 32 | if (!_this) { 33 | return SDL_SetError("Video subsystem must be initialized to set clipboard text"); 34 | } 35 | 36 | if (!text) { 37 | text = ""; 38 | } 39 | if (_this->SetClipboardText) { 40 | return _this->SetClipboardText(_this, text); 41 | } else { 42 | SDL_free(_this->clipboard_text); 43 | _this->clipboard_text = SDL_strdup(text); 44 | return 0; 45 | } 46 | } 47 | 48 | char * 49 | SDL_GetClipboardText(void) 50 | { 51 | SDL_VideoDevice *_this = SDL_GetVideoDevice(); 52 | 53 | if (!_this) { 54 | SDL_SetError("Video subsystem must be initialized to get clipboard text"); 55 | return SDL_strdup(""); 56 | } 57 | 58 | if (_this->GetClipboardText) { 59 | return _this->GetClipboardText(_this); 60 | } else { 61 | const char *text = _this->clipboard_text; 62 | if (!text) { 63 | text = ""; 64 | } 65 | return SDL_strdup(text); 66 | } 67 | } 68 | 69 | SDL_bool 70 | SDL_HasClipboardText(void) 71 | { 72 | SDL_VideoDevice *_this = SDL_GetVideoDevice(); 73 | 74 | if (!_this) { 75 | SDL_SetError("Video subsystem must be initialized to check clipboard text"); 76 | return SDL_FALSE; 77 | } 78 | 79 | if (_this->HasClipboardText) { 80 | return _this->HasClipboardText(_this); 81 | } else { 82 | if (_this->clipboard_text && _this->clipboard_text[0] != '\0') { 83 | return SDL_TRUE; 84 | } else { 85 | return SDL_FALSE; 86 | } 87 | } 88 | } 89 | 90 | /* vi: set ts=4 sw=4 expandtab: */ 91 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/SDL_pixels_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | /* Useful functions and variables from SDL_pixel.c */ 24 | 25 | #include "SDL_blit.h" 26 | 27 | /* Pixel format functions */ 28 | extern int SDL_InitFormat(SDL_PixelFormat * format, Uint32 pixel_format); 29 | 30 | /* Blit mapping functions */ 31 | extern SDL_BlitMap *SDL_AllocBlitMap(void); 32 | extern void SDL_InvalidateMap(SDL_BlitMap * map); 33 | extern int SDL_MapSurface(SDL_Surface * src, SDL_Surface * dst); 34 | extern void SDL_FreeBlitMap(SDL_BlitMap * map); 35 | 36 | /* Miscellaneous functions */ 37 | extern int SDL_CalculatePitch(SDL_Surface * surface); 38 | extern void SDL_DitherColors(SDL_Color * colors, int bpp); 39 | extern Uint8 SDL_FindColor(SDL_Palette * pal, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 40 | 41 | /* vi: set ts=4 sw=4 expandtab: */ 42 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/SDL_rect_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | extern SDL_bool SDL_GetSpanEnclosingRect(int width, int height, int numrects, const SDL_Rect * rects, SDL_Rect *span); 24 | 25 | /* vi: set ts=4 sw=4 expandtab: */ 26 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/SDL_shape_internals.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #ifndef _SDL_shape_internals_h 24 | #define _SDL_shape_internals_h 25 | 26 | #include "SDL_rect.h" 27 | #include "SDL_shape.h" 28 | #include "SDL_surface.h" 29 | 30 | #include "begin_code.h" 31 | /* Set up for C function definitions, even when using C++ */ 32 | #ifdef __cplusplus 33 | /* *INDENT-OFF* */ 34 | extern "C" { 35 | /* *INDENT-ON* */ 36 | #endif 37 | 38 | typedef struct { 39 | struct SDL_ShapeTree *upleft,*upright,*downleft,*downright; 40 | } SDL_QuadTreeChildren; 41 | 42 | typedef union { 43 | SDL_QuadTreeChildren children; 44 | SDL_Rect shape; 45 | } SDL_ShapeUnion; 46 | 47 | typedef enum { QuadShape,TransparentShape,OpaqueShape } SDL_ShapeKind; 48 | 49 | typedef struct { 50 | SDL_ShapeKind kind; 51 | SDL_ShapeUnion data; 52 | } SDL_ShapeTree; 53 | 54 | typedef void(*SDL_TraversalFunction)(SDL_ShapeTree*,void*); 55 | 56 | extern void SDL_CalculateShapeBitmap(SDL_WindowShapeMode mode,SDL_Surface *shape,Uint8* bitmap,Uint8 ppb); 57 | extern SDL_ShapeTree* SDL_CalculateShapeTree(SDL_WindowShapeMode mode,SDL_Surface* shape); 58 | extern void SDL_TraverseShapeTree(SDL_ShapeTree *tree,SDL_TraversalFunction function,void* closure); 59 | extern void SDL_FreeShapeTree(SDL_ShapeTree** shape_tree); 60 | 61 | /* Ends C function definitions when using C++ */ 62 | #ifdef __cplusplus 63 | /* *INDENT-OFF* */ 64 | } 65 | /* *INDENT-ON* */ 66 | #endif 67 | #include "close_code.h" 68 | 69 | #endif 70 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/android/SDL_androidclipboard.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_VIDEO_DRIVER_ANDROID 24 | 25 | #include "SDL_androidvideo.h" 26 | 27 | #include "../../core/android/SDL_android.h" 28 | 29 | int 30 | Android_SetClipboardText(_THIS, const char *text) 31 | { 32 | return Android_JNI_SetClipboardText(text); 33 | } 34 | 35 | char * 36 | Android_GetClipboardText(_THIS) 37 | { 38 | return Android_JNI_GetClipboardText(); 39 | } 40 | 41 | SDL_bool Android_HasClipboardText(_THIS) 42 | { 43 | return Android_JNI_HasClipboardText(); 44 | } 45 | 46 | #endif /* SDL_VIDEO_DRIVER_ANDROID */ 47 | 48 | /* vi: set ts=4 sw=4 expandtab: */ 49 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/android/SDL_androidclipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef _SDL_androidclipboard_h 24 | #define _SDL_androidclipboard_h 25 | 26 | extern int Android_SetClipboardText(_THIS, const char *text); 27 | extern char *Android_GetClipboardText(_THIS); 28 | extern SDL_bool Android_HasClipboardText(_THIS); 29 | 30 | #endif /* _SDL_androidclipboard_h */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/android/SDL_androidevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #include "SDL_androidvideo.h" 24 | 25 | extern void Android_PumpEvents(_THIS); 26 | 27 | /* vi: set ts=4 sw=4 expandtab: */ 28 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/android/SDL_androidgl.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_VIDEO_DRIVER_ANDROID 24 | 25 | /* Android SDL video driver implementation */ 26 | 27 | #include "SDL_video.h" 28 | #include "../SDL_egl_c.h" 29 | #include "SDL_androidwindow.h" 30 | 31 | #include "SDL_androidvideo.h" 32 | #include "../../core/android/SDL_android.h" 33 | 34 | #include 35 | 36 | #include 37 | 38 | SDL_EGL_CreateContext_impl(Android) 39 | SDL_EGL_MakeCurrent_impl(Android) 40 | 41 | void 42 | Android_GLES_SwapWindow(_THIS, SDL_Window * window) 43 | { 44 | /* The following two calls existed in the original Java code 45 | * If you happen to have a device that's affected by their removal, 46 | * please report to Bugzilla. -- Gabriel 47 | */ 48 | 49 | /*_this->egl_data->eglWaitNative(EGL_CORE_NATIVE_ENGINE); 50 | _this->egl_data->eglWaitGL();*/ 51 | SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface); 52 | } 53 | 54 | int 55 | Android_GLES_LoadLibrary(_THIS, const char *path) { 56 | return SDL_EGL_LoadLibrary(_this, path, (NativeDisplayType) 0); 57 | } 58 | 59 | #endif /* SDL_VIDEO_DRIVER_ANDROID */ 60 | 61 | /* vi: set ts=4 sw=4 expandtab: */ 62 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/android/SDL_androidkeyboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #include "SDL_androidvideo.h" 24 | 25 | extern void Android_InitKeyboard(void); 26 | extern int Android_OnKeyDown(int keycode); 27 | extern int Android_OnKeyUp(int keycode); 28 | 29 | extern SDL_bool Android_HasScreenKeyboardSupport(_THIS); 30 | extern SDL_bool Android_IsScreenKeyboardShown(_THIS, SDL_Window * window); 31 | 32 | extern void Android_StartTextInput(_THIS); 33 | extern void Android_StopTextInput(_THIS); 34 | extern void Android_SetTextInputRect(_THIS, SDL_Rect *rect); 35 | 36 | /* vi: set ts=4 sw=4 expandtab: */ 37 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/android/SDL_androidmessagebox.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_VIDEO_DRIVER_ANDROID 24 | 25 | #include "SDL_messagebox.h" 26 | 27 | int 28 | Android_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid) 29 | { 30 | int Android_JNI_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid); 31 | 32 | return Android_JNI_ShowMessageBox(messageboxdata, buttonid); 33 | } 34 | 35 | #endif /* SDL_VIDEO_DRIVER_ANDROID */ 36 | 37 | /* vi: set ts=4 sw=4 expandtab: */ 38 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/android/SDL_androidmessagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_VIDEO_DRIVER_ANDROID 24 | 25 | extern int Android_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid); 26 | 27 | #endif /* SDL_VIDEO_DRIVER_ANDROID */ 28 | 29 | /* vi: set ts=4 sw=4 expandtab: */ 30 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/android/SDL_androidmouse.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "../../SDL_internal.h" 23 | 24 | #if SDL_VIDEO_DRIVER_ANDROID 25 | 26 | #include "SDL_androidmouse.h" 27 | 28 | #include "SDL_events.h" 29 | #include "../../events/SDL_mouse_c.h" 30 | 31 | #include "../../core/android/SDL_android.h" 32 | 33 | #define ACTION_DOWN 0 34 | #define ACTION_UP 1 35 | #define ACTION_HOVER_MOVE 7 36 | #define ACTION_SCROLL 8 37 | #define BUTTON_PRIMARY 1 38 | #define BUTTON_SECONDARY 2 39 | #define BUTTON_TERTIARY 4 40 | 41 | void Android_OnMouse( int androidButton, int action, float x, float y) { 42 | static Uint8 SDLButton; 43 | 44 | if (!Android_Window) { 45 | return; 46 | } 47 | 48 | switch(action) { 49 | case ACTION_DOWN: 50 | // Determine which button originated the event, and store it for ACTION_UP 51 | SDLButton = SDL_BUTTON_LEFT; 52 | if (androidButton == BUTTON_SECONDARY) { 53 | SDLButton = SDL_BUTTON_RIGHT; 54 | } else if (androidButton == BUTTON_TERTIARY) { 55 | SDLButton = SDL_BUTTON_MIDDLE; 56 | } 57 | SDL_SendMouseMotion(Android_Window, 0, 0, x, y); 58 | SDL_SendMouseButton(Android_Window, 0, SDL_PRESSED, SDLButton); 59 | break; 60 | 61 | case ACTION_UP: 62 | // Android won't give us the button that originated the ACTION_DOWN event, so we'll 63 | // assume it's the one we stored 64 | SDL_SendMouseMotion(Android_Window, 0, 0, x, y); 65 | SDL_SendMouseButton(Android_Window, 0, SDL_RELEASED, SDLButton); 66 | break; 67 | 68 | case ACTION_HOVER_MOVE: 69 | SDL_SendMouseMotion(Android_Window, 0, 0, x, y); 70 | break; 71 | 72 | case ACTION_SCROLL: 73 | SDL_SendMouseWheel(Android_Window, 0, x, y, SDL_MOUSEWHEEL_NORMAL); 74 | break; 75 | 76 | default: 77 | break; 78 | } 79 | } 80 | 81 | #endif /* SDL_VIDEO_DRIVER_ANDROID */ 82 | 83 | /* vi: set ts=4 sw=4 expandtab: */ 84 | 85 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/android/SDL_androidmouse.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef _SDL_androidmouse_h 23 | #define _SDL_androidmouse_h 24 | 25 | #include "SDL_androidvideo.h" 26 | 27 | extern void Android_OnMouse( int button, int action, float x, float y); 28 | 29 | #endif /* _SDL_androidmouse_h */ 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/android/SDL_androidtouch.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #include "SDL_androidvideo.h" 24 | 25 | extern void Android_InitTouch(void); 26 | extern void Android_QuitTouch(void); 27 | extern void Android_OnTouch( int touch_device_id_in, int pointer_finger_id_in, int action, float x, float y, float p); 28 | 29 | /* vi: set ts=4 sw=4 expandtab: */ 30 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/android/SDL_androidvideo.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef _SDL_androidvideo_h 24 | #define _SDL_androidvideo_h 25 | 26 | #include "SDL_mutex.h" 27 | #include "SDL_rect.h" 28 | #include "../SDL_sysvideo.h" 29 | 30 | /* Called by the JNI layer when the screen changes size or format */ 31 | extern void Android_SetScreenResolution(int width, int height, Uint32 format, float rate); 32 | 33 | /* Private display data */ 34 | 35 | typedef struct SDL_VideoData 36 | { 37 | SDL_Rect textRect; 38 | } SDL_VideoData; 39 | 40 | extern int Android_ScreenWidth; 41 | extern int Android_ScreenHeight; 42 | extern Uint32 Android_ScreenFormat; 43 | extern SDL_sem *Android_PauseSem, *Android_ResumeSem; 44 | extern SDL_Window *Android_Window; 45 | 46 | 47 | #endif /* _SDL_androidvideo_h */ 48 | 49 | /* vi: set ts=4 sw=4 expandtab: */ 50 | -------------------------------------------------------------------------------- /kenlab3d/src/main/cpp/SDL2/src/video/android/SDL_androidwindow.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2016 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef _SDL_androidwindow_h 24 | #define _SDL_androidwindow_h 25 | 26 | #include "../../core/android/SDL_android.h" 27 | #include "../SDL_egl_c.h" 28 | 29 | extern int Android_CreateWindow(_THIS, SDL_Window * window); 30 | extern void Android_SetWindowTitle(_THIS, SDL_Window * window); 31 | extern void Android_DestroyWindow(_THIS, SDL_Window * window); 32 | extern SDL_bool Android_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo * info); 33 | 34 | typedef struct 35 | { 36 | EGLSurface egl_surface; 37 | EGLContext egl_context; /* We use this to preserve the context when losing focus */ 38 | ANativeWindow* native_window; 39 | 40 | } SDL_WindowData; 41 | 42 | #endif /* _SDL_androidwindow_h */ 43 | 44 | /* vi: set ts=4 sw=4 expandtab: */ 45 | -------------------------------------------------------------------------------- /kenlab3d/src/main/java/ru/exlmoto/kenlab3d/KenLab3DActivity.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************ 2 | ** The MIT License (MIT) 3 | ** 4 | ** Copyright (c) 2015-2016 Serg "EXL" Koles 5 | ** 6 | ** Permission is hereby granted, free of charge, to any person obtaining a copy 7 | ** of this software and associated documentation files (the "Software"), to deal 8 | ** in the Software without restriction, including without limitation the rights 9 | ** to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | ** copies of the Software, and to permit persons to whom the Software is 11 | ** furnished to do so, subject to the following conditions: 12 | ** 13 | ** The above copyright notice and this permission notice shall be included in all 14 | ** copies or substantial portions of the Software. 15 | ** 16 | ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | ** IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | ** AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | ** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | ** OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | ** SOFTWARE. 23 | ************************************************************************************/ 24 | 25 | package ru.exlmoto.kenlab3d; 26 | 27 | import org.libsdl.app.SDLActivity; 28 | 29 | import ru.exlmoto.kenlab3d.KenLab3DLauncherActivity.KenLab3DSettings; 30 | import android.content.Context; 31 | import android.os.Bundle; 32 | import android.os.Vibrator; 33 | import android.util.Log; 34 | import android.view.ViewGroup.LayoutParams; 35 | import android.widget.LinearLayout; 36 | 37 | public class KenLab3DActivity extends SDLActivity { 38 | 39 | private static final String APP_TAG = "KenLab3D_App"; 40 | 41 | private static Vibrator m_vibrator; 42 | 43 | // Access from JNI 44 | public static boolean m_hiResState; 45 | 46 | public static void toDebugLog(String debugMessage) { 47 | Log.d(APP_TAG, "=== " + debugMessage); 48 | } 49 | 50 | @SuppressWarnings("deprecation") 51 | @Override 52 | public void onCreate(Bundle savedInstanceState) { 53 | toDebugLog("Start SDL Activity from KenLab3DActivity"); 54 | super.onCreate(savedInstanceState); 55 | 56 | toDebugLog("Setting Vibration"); 57 | m_vibrator = (Vibrator)getSystemService(Context.VIBRATOR_SERVICE); 58 | 59 | if (KenLab3DSettings.s_TouchControls) { 60 | LinearLayout ll = new LinearLayout(this); 61 | if (KenLab3DLauncherActivity.g_isStateGame) { 62 | ll.setBackgroundDrawable(getResources().getDrawable(R.drawable.overlay_controls_game)); 63 | } else { 64 | ll.setBackgroundDrawable(getResources().getDrawable(R.drawable.overlay_controls_settings)); 65 | } 66 | addContentView(ll, new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, 67 | LayoutParams.MATCH_PARENT)); 68 | } 69 | } 70 | 71 | // JNI-method 72 | public static void doVibrate(int duration) { 73 | if (KenLab3DSettings.s_VibrationHaptics) { 74 | m_vibrator.vibrate(duration); 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /kenlab3d/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /kenlab3d/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /kenlab3d/src/main/res/drawable-nodpi/overlay_controls_game.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/res/drawable-nodpi/overlay_controls_game.png -------------------------------------------------------------------------------- /kenlab3d/src/main/res/drawable-nodpi/overlay_controls_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/res/drawable-nodpi/overlay_controls_settings.png -------------------------------------------------------------------------------- /kenlab3d/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /kenlab3d/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /kenlab3d/src/main/res/drawable/icon_about_big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/res/drawable/icon_about_big.png -------------------------------------------------------------------------------- /kenlab3d/src/main/res/drawable/kens_labyrinth_boxart.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EXL/KenLab3d/3f6a18272f41c027870f2207e63703d05be624d6/kenlab3d/src/main/res/drawable/kens_labyrinth_boxart.jpg -------------------------------------------------------------------------------- /kenlab3d/src/main/res/layout/about_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 10 | 11 | 19 | 20 | 27 | 28 | 35 | 36 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /kenlab3d/src/main/res/layout/range_error_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /kenlab3d/src/main/res/values-v11/style.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | -------------------------------------------------------------------------------- /kenlab3d/src/main/res/values-v14/style.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | -------------------------------------------------------------------------------- /kenlab3d/src/main/res/values-v21/style.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | -------------------------------------------------------------------------------- /kenlab3d/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 5dp 5 | 6 | -------------------------------------------------------------------------------- /kenlab3d/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Ken\'s Labyrinth 4 | Touch Controls 5 | Vibration Haptics 6 | Hi-Res PNG Textures 7 | Ken\'s Labyrinth Box Art 8 | Reconfigure Game 9 | Run Ken\'s Labyrinth! 10 | About Game 11 | Setup Ken\'s Labyrinth! 12 | File \"settings.ini\" was deleted. Please setup the game again. 13 | File \"settings.ini\" not found. 14 | Ken\'s Labyrinth Android Icon 15 | v1.2 | 05-MAY-2017 16 | © 1992–1993 Ken Silverman\n\nLAB3D/SDL conversion:\n© 2002–2004 Jan Lönnberg\nhttp://icculus.org/LAB3D\n\nLAB3D-SDL-enhanced:\n© 2011–2015 Jared Stafford\nhttp://jspenguin.org/software/lab3d_sdl\n\nOpenGL ES port:\n© 2014 Scott \"Pickle\" Smith\nhttps://github.com/Pickle/Lab3dGLES\n\nAndroid port:\n© 2015-2016 Serg \"EXL\" Koles\nhttp://exlmoto.ru/kenlab3d-droid\n\nGithub repository:\nhttps://github.com/EXL/KenLab3d 17 | ms 18 | 50 19 | Please set the vibration\nrange between 30...300. 20 | Error! 21 | Sound 22 | Music 23 | OK 24 | 25 | -------------------------------------------------------------------------------- /kenlab3d/src/main/res/values/style.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':kenlab3d' 2 | --------------------------------------------------------------------------------