├── CMakeLists.txt ├── LICENSE ├── README.md ├── cmake ├── BuildSetup.cmake └── HelperFunctions.cmake ├── docs ├── Building The Code.md ├── Credits.md ├── Differences To 3DO DOOM.md ├── How To Play.md ├── Known Issues.md ├── License & Copyright.md ├── PhoenixDoomBanner.png └── Q&A.md ├── source ├── Audio │ ├── Audio.cpp │ ├── Audio.h │ ├── AudioData.h │ ├── AudioDataMgr.cpp │ ├── AudioDataMgr.h │ ├── AudioLoader.cpp │ ├── AudioLoader.h │ ├── AudioOutputDevice.cpp │ ├── AudioOutputDevice.h │ ├── AudioSystem.cpp │ ├── AudioSystem.h │ ├── AudioVoice.h │ ├── Sound.cpp │ ├── Sound.h │ └── Sounds.h ├── Base │ ├── Angle.h │ ├── BitInputStream.h │ ├── ByteInputStream.h │ ├── ControllerInput.cpp │ ├── ControllerInput.h │ ├── Endian.h │ ├── FMath.h │ ├── FatalErrors.cpp │ ├── FatalErrors.h │ ├── FileInputStream.cpp │ ├── FileInputStream.h │ ├── FileUtils.cpp │ ├── FileUtils.h │ ├── Finally.h │ ├── Fixed.h │ ├── FourCID.h │ ├── IniUtils.cpp │ ├── IniUtils.h │ ├── Input.cpp │ ├── Input.h │ ├── Macros.h │ ├── Mem.h │ ├── MouseButton.h │ ├── Random.cpp │ ├── Random.h │ ├── Resource.h │ ├── ResourceMgr.cpp │ ├── ResourceMgr.h │ ├── Tables.cpp │ └── Tables.h ├── CMakeLists.txt ├── GFX │ ├── Blit.h │ ├── CelImages.cpp │ ├── CelImages.h │ ├── ImageData.h │ ├── Renderer.cpp │ ├── Renderer.h │ ├── Renderer_BspTraversal.cpp │ ├── Renderer_FlatDraw.cpp │ ├── Renderer_Internal.h │ ├── Renderer_PostFx.cpp │ ├── Renderer_SpriteDraw.cpp │ ├── Renderer_WallDraw.cpp │ ├── Renderer_WallPrep.cpp │ ├── Renderer_WeaponDraw.cpp │ ├── Sprites.cpp │ ├── Sprites.h │ ├── Textures.cpp │ ├── Textures.h │ ├── Video.cpp │ └── Video.h ├── Game │ ├── Cheats.cpp │ ├── Cheats.h │ ├── Config.cpp │ ├── Config.h │ ├── Controls.cpp │ ├── Controls.h │ ├── Data.cpp │ ├── Data.h │ ├── DoomDefines.h │ ├── DoomMain.cpp │ ├── DoomMain.h │ ├── DoomRez.h │ ├── Game.cpp │ ├── Game.h │ ├── GameDataFS.cpp │ ├── GameDataFS.h │ ├── Prefs.cpp │ ├── Prefs.h │ ├── Resources.cpp │ ├── Resources.h │ ├── Tick.cpp │ ├── Tick.h │ ├── TickCounter.cpp │ └── TickCounter.h ├── Main_Mac.mm ├── Main_StandardCpp.cpp ├── Main_Windows.cpp ├── Map │ ├── Ceiling.cpp │ ├── Ceiling.h │ ├── Change.cpp │ ├── Change.h │ ├── Doors.cpp │ ├── Doors.h │ ├── Floor.cpp │ ├── Floor.h │ ├── Lights.cpp │ ├── Lights.h │ ├── Map.cpp │ ├── Map.h │ ├── MapData.cpp │ ├── MapData.h │ ├── MapUtil.cpp │ ├── MapUtil.h │ ├── Platforms.cpp │ ├── Platforms.h │ ├── Setup.cpp │ ├── Setup.h │ ├── Sight.cpp │ ├── Sight.h │ ├── Specials.cpp │ ├── Specials.h │ ├── Switch.cpp │ └── Switch.h ├── Things │ ├── Base.cpp │ ├── Base.h │ ├── Enemy.cpp │ ├── Enemy.h │ ├── Info.cpp │ ├── Info.h │ ├── Interactions.cpp │ ├── Interactions.h │ ├── MapObj.cpp │ ├── MapObj.h │ ├── Move.cpp │ ├── Move.h │ ├── Player.h │ ├── PlayerSprites.cpp │ ├── PlayerSprites.h │ ├── Shoot.cpp │ ├── Shoot.h │ ├── Slide.cpp │ ├── Slide.h │ ├── States.h │ ├── Teleport.cpp │ ├── Teleport.h │ ├── User.cpp │ └── User.h ├── ThreeDO │ ├── CDImageFileInputStream.cpp │ ├── CDImageFileInputStream.h │ ├── CelUtils.cpp │ ├── CelUtils.h │ ├── ChunkedStreamFileUtils.cpp │ ├── ChunkedStreamFileUtils.h │ ├── MovieDecoder.cpp │ ├── MovieDecoder.h │ ├── OperaFS.cpp │ └── OperaFS.h └── UI │ ├── Automap.cpp │ ├── Automap.h │ ├── FinaleScreen.cpp │ ├── FinaleScreen.h │ ├── IntermissionScreen.cpp │ ├── IntermissionScreen.h │ ├── IntroLogos.cpp │ ├── IntroLogos.h │ ├── IntroMovies.cpp │ ├── IntroMovies.h │ ├── MainMenu.cpp │ ├── MainMenu.h │ ├── OptionsMenu.cpp │ ├── OptionsMenu.h │ ├── StatusBarUI.cpp │ ├── StatusBarUI.h │ ├── TitleScreens.cpp │ ├── TitleScreens.h │ ├── UIUtils.cpp │ ├── UIUtils.h │ ├── WipeFx.cpp │ └── WipeFx.h ├── third_party_libs └── libsdl │ ├── CMakeLists.txt │ └── sdl2 │ ├── Android.mk │ ├── BUGS.txt │ ├── CMakeLists.txt │ ├── COPYING.txt │ ├── CREDITS.txt │ ├── INSTALL.txt │ ├── Makefile.in │ ├── Makefile.minimal │ ├── Makefile.os2 │ ├── Makefile.pandora │ ├── Makefile.psp │ ├── Makefile.wiz │ ├── README-SDL.txt │ ├── README.txt │ ├── SDL2.spec │ ├── SDL2.spec.in │ ├── SDL2Config.cmake │ ├── TODO.txt │ ├── VisualC.html │ ├── WhatsNew.txt │ ├── acinclude │ ├── ac_check_define.m4 │ ├── alsa.m4 │ ├── ax_check_compiler_flags.m4 │ ├── ax_gcc_archflag.m4 │ ├── ax_gcc_x86_cpuid.m4 │ ├── esd.m4 │ ├── libtool.m4 │ ├── ltoptions.m4 │ ├── ltsugar.m4 │ ├── ltversion.m4 │ ├── lt~obsolete.m4 │ └── pkg_config.m4 │ ├── autogen.sh │ ├── build-scripts │ ├── androidbuild.sh │ ├── androidbuildlibs.sh │ ├── checker-buildbot.sh │ ├── config.guess │ ├── config.sub │ ├── config.sub.patch │ ├── emscripten-buildbot.sh │ ├── g++-fat.sh │ ├── gcc-fat.sh │ ├── install-sh │ ├── iosbuild.sh │ ├── ltmain.sh │ ├── mkinstalldirs │ ├── nacl-buildbot.sh │ ├── naclbuild.sh │ ├── os2-buildbot.sh │ ├── raspberrypi-buildbot.sh │ ├── showrev.sh │ ├── strip_fPIC.sh │ ├── update-copyright.sh │ ├── updaterev.sh │ ├── windows-buildbot-zipper.bat │ ├── winrtbuild.bat │ └── winrtbuild.ps1 │ ├── cmake │ ├── macros.cmake │ └── sdlchecks.cmake │ ├── cmake_uninstall.cmake.in │ ├── configure │ ├── configure.ac │ ├── 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.h.cmake │ ├── SDL_config.h.in │ ├── SDL_config_android.h │ ├── SDL_config_iphoneos.h │ ├── SDL_config_linux.h │ ├── SDL_config_macosx.h │ ├── SDL_config_minimal.h │ ├── SDL_config_os2.h │ ├── SDL_config_pandora.h │ ├── SDL_config_psp.h │ ├── SDL_config_windows.h │ ├── SDL_config_winrt.h │ ├── SDL_config_wiz.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_opengles2.h │ ├── SDL_opengles2_gl2.h │ ├── SDL_opengles2_gl2ext.h │ ├── SDL_opengles2_gl2platform.h │ ├── SDL_opengles2_khrplatform.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_sensor.h │ ├── SDL_shape.h │ ├── SDL_stdinc.h │ ├── SDL_surface.h │ ├── SDL_system.h │ ├── SDL_syswm.h │ ├── SDL_test.h │ ├── SDL_test_assert.h │ ├── SDL_test_common.h │ ├── SDL_test_compare.h │ ├── SDL_test_crc32.h │ ├── SDL_test_font.h │ ├── SDL_test_fuzzer.h │ ├── SDL_test_harness.h │ ├── SDL_test_images.h │ ├── SDL_test_log.h │ ├── SDL_test_md5.h │ ├── SDL_test_memory.h │ ├── SDL_test_random.h │ ├── SDL_thread.h │ ├── SDL_timer.h │ ├── SDL_touch.h │ ├── SDL_types.h │ ├── SDL_version.h │ ├── SDL_video.h │ ├── SDL_vulkan.h │ ├── begin_code.h │ └── close_code.h │ ├── sdl2-config.cmake.in │ ├── sdl2-config.in │ ├── sdl2.m4 │ ├── sdl2.pc.in │ └── src │ ├── SDL.c │ ├── SDL_assert.c │ ├── SDL_assert_c.h │ ├── SDL_dataqueue.c │ ├── SDL_dataqueue.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_audiotypecvt.c │ ├── SDL_mixer.c │ ├── SDL_sysaudio.h │ ├── SDL_wave.c │ ├── SDL_wave.h │ ├── alsa │ │ ├── SDL_alsa_audio.c │ │ └── SDL_alsa_audio.h │ ├── android │ │ ├── SDL_androidaudio.c │ │ └── SDL_androidaudio.h │ ├── arts │ │ ├── SDL_artsaudio.c │ │ └── SDL_artsaudio.h │ ├── coreaudio │ │ ├── SDL_coreaudio.h │ │ └── SDL_coreaudio.m │ ├── directsound │ │ ├── SDL_directsound.c │ │ └── SDL_directsound.h │ ├── disk │ │ ├── SDL_diskaudio.c │ │ └── SDL_diskaudio.h │ ├── dsp │ │ ├── SDL_dspaudio.c │ │ └── SDL_dspaudio.h │ ├── dummy │ │ ├── SDL_dummyaudio.c │ │ └── SDL_dummyaudio.h │ ├── emscripten │ │ ├── SDL_emscriptenaudio.c │ │ └── SDL_emscriptenaudio.h │ ├── esd │ │ ├── SDL_esdaudio.c │ │ └── SDL_esdaudio.h │ ├── fusionsound │ │ ├── SDL_fsaudio.c │ │ └── SDL_fsaudio.h │ ├── haiku │ │ ├── SDL_haikuaudio.cc │ │ └── SDL_haikuaudio.h │ ├── jack │ │ ├── SDL_jackaudio.c │ │ └── SDL_jackaudio.h │ ├── nacl │ │ ├── SDL_naclaudio.c │ │ └── SDL_naclaudio.h │ ├── nas │ │ ├── SDL_nasaudio.c │ │ └── SDL_nasaudio.h │ ├── netbsd │ │ ├── SDL_netbsdaudio.c │ │ └── SDL_netbsdaudio.h │ ├── openslES │ │ ├── SDL_openslES.c │ │ └── SDL_openslES.h │ ├── paudio │ │ ├── SDL_paudio.c │ │ └── SDL_paudio.h │ ├── psp │ │ ├── SDL_pspaudio.c │ │ └── SDL_pspaudio.h │ ├── pulseaudio │ │ ├── SDL_pulseaudio.c │ │ └── SDL_pulseaudio.h │ ├── qsa │ │ ├── SDL_qsa_audio.c │ │ └── SDL_qsa_audio.h │ ├── sndio │ │ ├── SDL_sndioaudio.c │ │ └── SDL_sndioaudio.h │ ├── sun │ │ ├── SDL_sunaudio.c │ │ └── SDL_sunaudio.h │ ├── wasapi │ │ ├── SDL_wasapi.c │ │ ├── SDL_wasapi.h │ │ ├── SDL_wasapi_win32.c │ │ └── SDL_wasapi_winrt.cpp │ └── winmm │ │ ├── SDL_winmm.c │ │ └── SDL_winmm.h │ ├── core │ ├── android │ │ ├── SDL_android.c │ │ ├── SDL_android.h │ │ └── keyinfotable.h │ ├── linux │ │ ├── SDL_dbus.c │ │ ├── SDL_dbus.h │ │ ├── SDL_evdev.c │ │ ├── SDL_evdev.h │ │ ├── SDL_evdev_kbd.c │ │ ├── SDL_evdev_kbd.h │ │ ├── SDL_evdev_kbd_default_accents.h │ │ ├── SDL_evdev_kbd_default_keymap.h │ │ ├── SDL_fcitx.c │ │ ├── SDL_fcitx.h │ │ ├── SDL_ibus.c │ │ ├── SDL_ibus.h │ │ ├── SDL_ime.c │ │ ├── SDL_ime.h │ │ ├── SDL_threadprio.c │ │ ├── SDL_udev.c │ │ └── SDL_udev.h │ ├── unix │ │ ├── SDL_poll.c │ │ └── SDL_poll.h │ ├── windows │ │ ├── SDL_directx.h │ │ ├── SDL_windows.c │ │ ├── SDL_windows.h │ │ ├── SDL_xinput.c │ │ └── SDL_xinput.h │ └── winrt │ │ ├── SDL_winrtapp_common.cpp │ │ ├── SDL_winrtapp_common.h │ │ ├── SDL_winrtapp_direct3d.cpp │ │ ├── SDL_winrtapp_direct3d.h │ │ ├── SDL_winrtapp_xaml.cpp │ │ └── SDL_winrtapp_xaml.h │ ├── cpuinfo │ └── SDL_cpuinfo.c │ ├── dynapi │ ├── SDL_dynapi.c │ ├── SDL_dynapi.h │ ├── SDL_dynapi_overrides.h │ ├── SDL_dynapi_procs.h │ └── gendynapi.pl │ ├── events │ ├── SDL_clipboardevents.c │ ├── SDL_clipboardevents_c.h │ ├── SDL_displayevents.c │ ├── SDL_displayevents_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_darwin.h │ ├── scancodes_linux.h │ ├── scancodes_windows.h │ └── scancodes_xfree86.h │ ├── file │ ├── SDL_rwops.c │ └── cocoa │ │ ├── SDL_rwopsbundlesupport.h │ │ └── SDL_rwopsbundlesupport.m │ ├── filesystem │ ├── android │ │ └── SDL_sysfilesystem.c │ ├── cocoa │ │ └── SDL_sysfilesystem.m │ ├── dummy │ │ └── SDL_sysfilesystem.c │ ├── emscripten │ │ └── SDL_sysfilesystem.c │ ├── haiku │ │ └── SDL_sysfilesystem.cc │ ├── nacl │ │ └── SDL_sysfilesystem.c │ ├── unix │ │ └── SDL_sysfilesystem.c │ ├── windows │ │ └── SDL_sysfilesystem.c │ └── winrt │ │ └── SDL_sysfilesystem.cpp │ ├── haptic │ ├── SDL_haptic.c │ ├── SDL_haptic_c.h │ ├── SDL_syshaptic.h │ ├── android │ │ ├── SDL_syshaptic.c │ │ └── SDL_syshaptic_c.h │ ├── darwin │ │ ├── SDL_syshaptic.c │ │ └── SDL_syshaptic_c.h │ ├── dummy │ │ └── SDL_syshaptic.c │ ├── linux │ │ └── SDL_syshaptic.c │ └── windows │ │ ├── SDL_dinputhaptic.c │ │ ├── SDL_dinputhaptic_c.h │ │ ├── SDL_windowshaptic.c │ │ ├── SDL_windowshaptic_c.h │ │ ├── SDL_xinputhaptic.c │ │ └── SDL_xinputhaptic_c.h │ ├── hidapi │ ├── AUTHORS.txt │ ├── HACKING.txt │ ├── LICENSE-bsd.txt │ ├── LICENSE-gpl3.txt │ ├── LICENSE-orig.txt │ ├── LICENSE.txt │ ├── Makefile.am │ ├── README.txt │ ├── android │ │ ├── hid.cpp │ │ ├── jni │ │ │ ├── Android.mk │ │ │ └── Application.mk │ │ └── project.properties │ ├── bootstrap │ ├── configure.ac │ ├── doxygen │ │ └── Doxyfile │ ├── hidapi │ │ └── hidapi.h │ ├── hidtest │ │ ├── Makefile.am │ │ └── hidtest.cpp │ ├── ios │ │ ├── Makefile-manual │ │ ├── Makefile.am │ │ └── hid.m │ ├── libusb │ │ ├── Makefile-manual │ │ ├── Makefile.am │ │ ├── Makefile.freebsd │ │ ├── Makefile.linux │ │ ├── hid.c │ │ └── hidusb.cpp │ ├── linux │ │ ├── Makefile-manual │ │ ├── Makefile.am │ │ ├── README.txt │ │ ├── hid.c │ │ ├── hid.cpp │ │ └── hidraw.cpp │ ├── m4 │ │ ├── ax_pthread.m4 │ │ └── pkg.m4 │ ├── mac │ │ ├── Makefile-manual │ │ ├── Makefile.am │ │ └── hid.c │ ├── pc │ │ ├── hidapi-hidraw.pc.in │ │ ├── hidapi-libusb.pc.in │ │ └── hidapi.pc.in │ ├── testgui │ │ ├── Makefile-manual │ │ ├── Makefile.am │ │ ├── Makefile.freebsd │ │ ├── Makefile.linux │ │ ├── Makefile.mac │ │ ├── Makefile.mingw │ │ ├── TestGUI.app.in │ │ │ └── Contents │ │ │ │ ├── Info.plist │ │ │ │ ├── PkgInfo │ │ │ │ └── Resources │ │ │ │ ├── English.lproj │ │ │ │ └── InfoPlist.strings │ │ │ │ └── Signal11.icns │ │ ├── copy_to_bundle.sh │ │ ├── mac_support.cpp │ │ ├── mac_support.h │ │ ├── mac_support_cocoa.m │ │ ├── start.sh │ │ ├── test.cpp │ │ ├── testgui.sln │ │ └── testgui.vcproj │ ├── udev │ │ └── 99-hid.rules │ └── windows │ │ ├── Makefile-manual │ │ ├── Makefile.am │ │ ├── Makefile.mingw │ │ ├── ddk_build │ │ ├── hidapi.def │ │ ├── makefile │ │ └── sources │ │ ├── hid.c │ │ ├── hidapi.sln │ │ ├── hidapi.vcproj │ │ └── hidtest.vcproj │ ├── 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 │ ├── bsd │ │ └── SDL_sysjoystick.c │ ├── controller_type.h │ ├── darwin │ │ ├── SDL_sysjoystick.c │ │ └── SDL_sysjoystick_c.h │ ├── dummy │ │ └── SDL_sysjoystick.c │ ├── emscripten │ │ ├── SDL_sysjoystick.c │ │ └── SDL_sysjoystick_c.h │ ├── haiku │ │ └── SDL_haikujoystick.cc │ ├── hidapi │ │ ├── SDL_hidapi_ps4.c │ │ ├── SDL_hidapi_switch.c │ │ ├── SDL_hidapi_xbox360.c │ │ ├── SDL_hidapi_xboxone.c │ │ ├── SDL_hidapijoystick.c │ │ └── SDL_hidapijoystick_c.h │ ├── iphoneos │ │ ├── SDL_sysjoystick.m │ │ └── SDL_sysjoystick_c.h │ ├── linux │ │ ├── SDL_sysjoystick.c │ │ └── SDL_sysjoystick_c.h │ ├── psp │ │ └── SDL_sysjoystick.c │ ├── sort_controllers.py │ ├── steam │ │ ├── SDL_steamcontroller.c │ │ └── SDL_steamcontroller.h │ └── windows │ │ ├── SDL_dinputjoystick.c │ │ ├── SDL_dinputjoystick_c.h │ │ ├── SDL_mmjoystick.c │ │ ├── SDL_windowsjoystick.c │ │ ├── SDL_windowsjoystick_c.h │ │ ├── SDL_xinputjoystick.c │ │ └── SDL_xinputjoystick_c.h │ ├── libm │ ├── e_atan2.c │ ├── e_exp.c │ ├── e_fmod.c │ ├── e_log.c │ ├── e_log10.c │ ├── e_pow.c │ ├── e_rem_pio2.c │ ├── e_sqrt.c │ ├── k_cos.c │ ├── k_rem_pio2.c │ ├── k_sin.c │ ├── k_tan.c │ ├── math_libm.h │ ├── math_private.h │ ├── s_atan.c │ ├── s_copysign.c │ ├── s_cos.c │ ├── s_fabs.c │ ├── s_floor.c │ ├── s_scalbn.c │ ├── s_sin.c │ └── s_tan.c │ ├── loadso │ ├── dlopen │ │ └── SDL_sysloadso.c │ ├── dummy │ │ └── SDL_sysloadso.c │ └── windows │ │ └── SDL_sysloadso.c │ ├── main │ ├── android │ │ └── SDL_android_main.c │ ├── dummy │ │ └── SDL_dummy_main.c │ ├── haiku │ │ ├── SDL_BApp.h │ │ ├── SDL_BeApp.cc │ │ └── SDL_BeApp.h │ ├── nacl │ │ └── SDL_nacl_main.c │ ├── psp │ │ └── SDL_psp_main.c │ ├── uikit │ │ └── SDL_uikit_main.c │ ├── windows │ │ ├── SDL_windows_main.c │ │ └── version.rc │ └── winrt │ │ ├── SDL2-WinRTResource_BlankCursor.cur │ │ ├── SDL2-WinRTResources.rc │ │ └── SDL_winrt_main_NonXAML.cpp │ ├── power │ ├── SDL_power.c │ ├── SDL_syspower.h │ ├── android │ │ └── SDL_syspower.c │ ├── emscripten │ │ └── SDL_syspower.c │ ├── haiku │ │ └── SDL_syspower.c │ ├── linux │ │ └── SDL_syspower.c │ ├── macosx │ │ └── SDL_syspower.c │ ├── psp │ │ └── SDL_syspower.c │ ├── uikit │ │ ├── SDL_syspower.h │ │ └── SDL_syspower.m │ ├── windows │ │ └── SDL_syspower.c │ └── winrt │ │ └── SDL_syspower.cpp │ ├── render │ ├── SDL_d3dmath.c │ ├── SDL_d3dmath.h │ ├── SDL_render.c │ ├── SDL_sysrender.h │ ├── SDL_yuv_sw.c │ ├── SDL_yuv_sw_c.h │ ├── direct3d │ │ ├── SDL_render_d3d.c │ │ ├── SDL_shaders_d3d.c │ │ └── SDL_shaders_d3d.h │ ├── direct3d11 │ │ ├── SDL_render_d3d11.c │ │ ├── SDL_render_winrt.cpp │ │ ├── SDL_render_winrt.h │ │ ├── SDL_shaders_d3d11.c │ │ └── SDL_shaders_d3d11.h │ ├── metal │ │ ├── SDL_render_metal.m │ │ ├── SDL_shaders_metal.metal │ │ ├── SDL_shaders_metal_ios.h │ │ ├── SDL_shaders_metal_osx.h │ │ └── build-metal-shaders.sh │ ├── opengl │ │ ├── SDL_glfuncs.h │ │ ├── SDL_render_gl.c │ │ ├── SDL_shaders_gl.c │ │ └── SDL_shaders_gl.h │ ├── opengles │ │ ├── SDL_glesfuncs.h │ │ └── SDL_render_gles.c │ ├── opengles2 │ │ ├── SDL_gles2funcs.h │ │ ├── SDL_render_gles2.c │ │ ├── SDL_shaders_gles2.c │ │ └── SDL_shaders_gles2.h │ ├── psp │ │ └── SDL_render_psp.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 │ ├── sensor │ ├── SDL_sensor.c │ ├── SDL_sensor_c.h │ ├── SDL_syssensor.h │ ├── android │ │ ├── SDL_androidsensor.c │ │ └── SDL_androidsensor.h │ ├── coremotion │ │ ├── SDL_coremotionsensor.h │ │ └── SDL_coremotionsensor.m │ └── dummy │ │ ├── SDL_dummysensor.c │ │ └── SDL_dummysensor.h │ ├── stdlib │ ├── SDL_getenv.c │ ├── SDL_iconv.c │ ├── SDL_malloc.c │ ├── SDL_qsort.c │ ├── SDL_stdlib.c │ └── SDL_string.c │ ├── test │ ├── SDL_test_assert.c │ ├── SDL_test_common.c │ ├── SDL_test_compare.c │ ├── SDL_test_crc32.c │ ├── SDL_test_font.c │ ├── SDL_test_fuzzer.c │ ├── SDL_test_harness.c │ ├── SDL_test_imageBlit.c │ ├── SDL_test_imageBlitBlend.c │ ├── SDL_test_imageFace.c │ ├── SDL_test_imagePrimitives.c │ ├── SDL_test_imagePrimitivesBlend.c │ ├── SDL_test_log.c │ ├── SDL_test_md5.c │ ├── SDL_test_memory.c │ └── SDL_test_random.c │ ├── thread │ ├── SDL_systhread.h │ ├── SDL_thread.c │ ├── SDL_thread_c.h │ ├── generic │ │ ├── SDL_syscond.c │ │ ├── SDL_sysmutex.c │ │ ├── SDL_sysmutex_c.h │ │ ├── SDL_syssem.c │ │ ├── SDL_systhread.c │ │ ├── SDL_systhread_c.h │ │ └── SDL_systls.c │ ├── psp │ │ ├── SDL_syscond.c │ │ ├── SDL_sysmutex.c │ │ ├── SDL_sysmutex_c.h │ │ ├── SDL_syssem.c │ │ ├── SDL_systhread.c │ │ └── SDL_systhread_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 │ ├── stdcpp │ │ ├── SDL_syscond.cpp │ │ ├── SDL_sysmutex.cpp │ │ ├── SDL_sysmutex_c.h │ │ ├── SDL_systhread.cpp │ │ └── SDL_systhread_c.h │ └── windows │ │ ├── SDL_sysmutex.c │ │ ├── SDL_syssem.c │ │ ├── SDL_systhread.c │ │ ├── SDL_systhread_c.h │ │ └── SDL_systls.c │ ├── timer │ ├── SDL_timer.c │ ├── SDL_timer_c.h │ ├── dummy │ │ └── SDL_systimer.c │ ├── haiku │ │ └── SDL_systimer.c │ ├── psp │ │ └── SDL_systimer.c │ ├── unix │ │ └── SDL_systimer.c │ └── windows │ │ └── 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 │ ├── SDL_vulkan_internal.h │ ├── SDL_vulkan_utils.c │ ├── SDL_yuv.c │ ├── SDL_yuv_c.h │ ├── android │ ├── SDL_androidclipboard.c │ ├── SDL_androidclipboard.h │ ├── SDL_androidevents.c │ ├── SDL_androidevents.h │ ├── SDL_androidgl.c │ ├── SDL_androidgl.h │ ├── 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_androidvulkan.c │ ├── SDL_androidvulkan.h │ ├── SDL_androidwindow.c │ └── SDL_androidwindow.h │ ├── cocoa │ ├── SDL_cocoaclipboard.h │ ├── SDL_cocoaclipboard.m │ ├── SDL_cocoaevents.h │ ├── SDL_cocoaevents.m │ ├── SDL_cocoakeyboard.h │ ├── SDL_cocoakeyboard.m │ ├── SDL_cocoamessagebox.h │ ├── SDL_cocoamessagebox.m │ ├── SDL_cocoametalview.h │ ├── SDL_cocoametalview.m │ ├── SDL_cocoamodes.h │ ├── SDL_cocoamodes.m │ ├── SDL_cocoamouse.h │ ├── SDL_cocoamouse.m │ ├── SDL_cocoamousetap.h │ ├── SDL_cocoamousetap.m │ ├── SDL_cocoaopengl.h │ ├── SDL_cocoaopengl.m │ ├── SDL_cocoaopengles.h │ ├── SDL_cocoaopengles.m │ ├── SDL_cocoashape.h │ ├── SDL_cocoashape.m │ ├── SDL_cocoavideo.h │ ├── SDL_cocoavideo.m │ ├── SDL_cocoavulkan.h │ ├── SDL_cocoavulkan.m │ ├── SDL_cocoawindow.h │ └── SDL_cocoawindow.m │ ├── directfb │ ├── SDL_DirectFB_WM.c │ ├── SDL_DirectFB_WM.h │ ├── SDL_DirectFB_dyn.c │ ├── SDL_DirectFB_dyn.h │ ├── SDL_DirectFB_events.c │ ├── SDL_DirectFB_events.h │ ├── SDL_DirectFB_modes.c │ ├── SDL_DirectFB_modes.h │ ├── SDL_DirectFB_mouse.c │ ├── SDL_DirectFB_mouse.h │ ├── SDL_DirectFB_opengl.c │ ├── SDL_DirectFB_opengl.h │ ├── SDL_DirectFB_render.c │ ├── SDL_DirectFB_render.h │ ├── SDL_DirectFB_shape.c │ ├── SDL_DirectFB_shape.h │ ├── SDL_DirectFB_video.c │ ├── SDL_DirectFB_video.h │ ├── SDL_DirectFB_window.c │ └── SDL_DirectFB_window.h │ ├── dummy │ ├── SDL_nullevents.c │ ├── SDL_nullevents_c.h │ ├── SDL_nullframebuffer.c │ ├── SDL_nullframebuffer_c.h │ ├── SDL_nullvideo.c │ └── SDL_nullvideo.h │ ├── emscripten │ ├── SDL_emscriptenevents.c │ ├── SDL_emscriptenevents.h │ ├── SDL_emscriptenframebuffer.c │ ├── SDL_emscriptenframebuffer.h │ ├── SDL_emscriptenmouse.c │ ├── SDL_emscriptenmouse.h │ ├── SDL_emscriptenopengles.c │ ├── SDL_emscriptenopengles.h │ ├── SDL_emscriptenvideo.c │ └── SDL_emscriptenvideo.h │ ├── haiku │ ├── SDL_BWin.h │ ├── SDL_bclipboard.cc │ ├── SDL_bclipboard.h │ ├── SDL_bevents.cc │ ├── SDL_bevents.h │ ├── SDL_bframebuffer.cc │ ├── SDL_bframebuffer.h │ ├── SDL_bkeyboard.cc │ ├── SDL_bkeyboard.h │ ├── SDL_bmodes.cc │ ├── SDL_bmodes.h │ ├── SDL_bopengl.cc │ ├── SDL_bopengl.h │ ├── SDL_bvideo.cc │ ├── SDL_bvideo.h │ ├── SDL_bwindow.cc │ └── SDL_bwindow.h │ ├── khronos │ ├── EGL │ │ ├── egl.h │ │ ├── eglext.h │ │ └── eglplatform.h │ ├── GLES2 │ │ ├── gl2.h │ │ ├── gl2ext.h │ │ └── gl2platform.h │ ├── KHR │ │ └── khrplatform.h │ └── vulkan │ │ ├── vk_icd.h │ │ ├── vk_layer.h │ │ ├── vk_platform.h │ │ ├── vk_sdk_platform.h │ │ ├── vulkan.h │ │ ├── vulkan.hpp │ │ ├── vulkan_android.h │ │ ├── vulkan_core.h │ │ ├── vulkan_fuchsia.h │ │ ├── vulkan_ios.h │ │ ├── vulkan_macos.h │ │ ├── vulkan_mir.h │ │ ├── vulkan_vi.h │ │ ├── vulkan_wayland.h │ │ ├── vulkan_win32.h │ │ ├── vulkan_xcb.h │ │ ├── vulkan_xlib.h │ │ └── vulkan_xlib_xrandr.h │ ├── kmsdrm │ ├── SDL_kmsdrmdyn.c │ ├── SDL_kmsdrmdyn.h │ ├── SDL_kmsdrmevents.c │ ├── SDL_kmsdrmevents.h │ ├── SDL_kmsdrmmouse.c │ ├── SDL_kmsdrmmouse.h │ ├── SDL_kmsdrmopengles.c │ ├── SDL_kmsdrmopengles.h │ ├── SDL_kmsdrmsym.h │ ├── SDL_kmsdrmvideo.c │ └── SDL_kmsdrmvideo.h │ ├── nacl │ ├── SDL_naclevents.c │ ├── SDL_naclevents_c.h │ ├── SDL_naclglue.c │ ├── SDL_naclopengles.c │ ├── SDL_naclopengles.h │ ├── SDL_naclvideo.c │ ├── SDL_naclvideo.h │ ├── SDL_naclwindow.c │ └── SDL_naclwindow.h │ ├── pandora │ ├── SDL_pandora.c │ ├── SDL_pandora.h │ ├── SDL_pandora_events.c │ └── SDL_pandora_events.h │ ├── psp │ ├── SDL_pspevents.c │ ├── SDL_pspevents_c.h │ ├── SDL_pspgl.c │ ├── SDL_pspgl_c.h │ ├── SDL_pspmouse.c │ ├── SDL_pspmouse_c.h │ ├── SDL_pspvideo.c │ └── SDL_pspvideo.h │ ├── qnx │ ├── gl.c │ ├── keyboard.c │ ├── sdl_qnx.h │ └── video.c │ ├── raspberry │ ├── SDL_rpievents.c │ ├── SDL_rpievents_c.h │ ├── SDL_rpimouse.c │ ├── SDL_rpimouse.h │ ├── SDL_rpiopengles.c │ ├── SDL_rpiopengles.h │ ├── SDL_rpivideo.c │ └── SDL_rpivideo.h │ ├── sdlgenblit.pl │ ├── uikit │ ├── SDL_uikitappdelegate.h │ ├── SDL_uikitappdelegate.m │ ├── SDL_uikitclipboard.h │ ├── SDL_uikitclipboard.m │ ├── SDL_uikitevents.h │ ├── SDL_uikitevents.m │ ├── SDL_uikitmessagebox.h │ ├── SDL_uikitmessagebox.m │ ├── SDL_uikitmetalview.h │ ├── SDL_uikitmetalview.m │ ├── SDL_uikitmodes.h │ ├── SDL_uikitmodes.m │ ├── SDL_uikitopengles.h │ ├── SDL_uikitopengles.m │ ├── SDL_uikitopenglview.h │ ├── SDL_uikitopenglview.m │ ├── SDL_uikitvideo.h │ ├── SDL_uikitvideo.m │ ├── SDL_uikitview.h │ ├── SDL_uikitview.m │ ├── SDL_uikitviewcontroller.h │ ├── SDL_uikitviewcontroller.m │ ├── SDL_uikitvulkan.h │ ├── SDL_uikitvulkan.m │ ├── SDL_uikitwindow.h │ ├── SDL_uikitwindow.m │ └── keyinfotable.h │ ├── vivante │ ├── SDL_vivanteopengles.c │ ├── SDL_vivanteopengles.h │ ├── SDL_vivanteplatform.c │ ├── SDL_vivanteplatform.h │ ├── SDL_vivantevideo.c │ ├── SDL_vivantevideo.h │ ├── SDL_vivantevulkan.c │ └── SDL_vivantevulkan.h │ ├── wayland │ ├── SDL_waylandclipboard.c │ ├── SDL_waylandclipboard.h │ ├── SDL_waylanddatamanager.c │ ├── SDL_waylanddatamanager.h │ ├── SDL_waylanddyn.c │ ├── SDL_waylanddyn.h │ ├── SDL_waylandevents.c │ ├── SDL_waylandevents_c.h │ ├── SDL_waylandmouse.c │ ├── SDL_waylandmouse.h │ ├── SDL_waylandopengles.c │ ├── SDL_waylandopengles.h │ ├── SDL_waylandsym.h │ ├── SDL_waylandtouch.c │ ├── SDL_waylandtouch.h │ ├── SDL_waylandvideo.c │ ├── SDL_waylandvideo.h │ ├── SDL_waylandvulkan.c │ ├── SDL_waylandvulkan.h │ ├── SDL_waylandwindow.c │ └── SDL_waylandwindow.h │ ├── windows │ ├── SDL_msctf.h │ ├── SDL_vkeys.h │ ├── SDL_windowsclipboard.c │ ├── SDL_windowsclipboard.h │ ├── SDL_windowsevents.c │ ├── SDL_windowsevents.h │ ├── SDL_windowsframebuffer.c │ ├── SDL_windowsframebuffer.h │ ├── SDL_windowskeyboard.c │ ├── SDL_windowskeyboard.h │ ├── SDL_windowsmessagebox.c │ ├── SDL_windowsmessagebox.h │ ├── SDL_windowsmodes.c │ ├── SDL_windowsmodes.h │ ├── SDL_windowsmouse.c │ ├── SDL_windowsmouse.h │ ├── SDL_windowsopengl.c │ ├── SDL_windowsopengl.h │ ├── SDL_windowsopengles.c │ ├── SDL_windowsopengles.h │ ├── SDL_windowsshape.c │ ├── SDL_windowsshape.h │ ├── SDL_windowstaskdialog.h │ ├── SDL_windowsvideo.c │ ├── SDL_windowsvideo.h │ ├── SDL_windowsvulkan.c │ ├── SDL_windowsvulkan.h │ ├── SDL_windowswindow.c │ ├── SDL_windowswindow.h │ └── wmmsg.h │ ├── winrt │ ├── SDL_winrtevents.cpp │ ├── SDL_winrtevents_c.h │ ├── SDL_winrtgamebar.cpp │ ├── SDL_winrtgamebar_cpp.h │ ├── SDL_winrtkeyboard.cpp │ ├── SDL_winrtmessagebox.cpp │ ├── SDL_winrtmessagebox.h │ ├── SDL_winrtmouse.cpp │ ├── SDL_winrtmouse_c.h │ ├── SDL_winrtopengles.cpp │ ├── SDL_winrtopengles.h │ ├── SDL_winrtpointerinput.cpp │ ├── SDL_winrtvideo.cpp │ └── SDL_winrtvideo_cpp.h │ ├── x11 │ ├── SDL_x11clipboard.c │ ├── SDL_x11clipboard.h │ ├── SDL_x11dyn.c │ ├── SDL_x11dyn.h │ ├── SDL_x11events.c │ ├── SDL_x11events.h │ ├── SDL_x11framebuffer.c │ ├── SDL_x11framebuffer.h │ ├── SDL_x11keyboard.c │ ├── SDL_x11keyboard.h │ ├── SDL_x11messagebox.c │ ├── SDL_x11messagebox.h │ ├── SDL_x11modes.c │ ├── SDL_x11modes.h │ ├── SDL_x11mouse.c │ ├── SDL_x11mouse.h │ ├── SDL_x11opengl.c │ ├── SDL_x11opengl.h │ ├── SDL_x11opengles.c │ ├── SDL_x11opengles.h │ ├── SDL_x11shape.c │ ├── SDL_x11shape.h │ ├── SDL_x11sym.h │ ├── SDL_x11touch.c │ ├── SDL_x11touch.h │ ├── SDL_x11video.c │ ├── SDL_x11video.h │ ├── SDL_x11vulkan.c │ ├── SDL_x11vulkan.h │ ├── SDL_x11window.c │ ├── SDL_x11window.h │ ├── SDL_x11xinput2.c │ ├── SDL_x11xinput2.h │ ├── edid-parse.c │ ├── edid.h │ ├── imKStoUCS.c │ └── imKStoUCS.h │ └── yuv2rgb │ ├── LICENSE │ ├── README.md │ ├── yuv_rgb.c │ ├── yuv_rgb.h │ ├── yuv_rgb_sse_func.h │ └── yuv_rgb_std_func.h └── thirdy_party_docs_and_tools ├── AIFF and AIFC File Format ├── AIFC to Wav SDX2 format decoder │ ├── About.txt │ ├── aifc2wav-5.1.c │ └── aifc2wav-5.c ├── AIFF-1.3.pdf ├── AIFF-C.9.26.91.pdf └── Audio Interchange File Format.html ├── Cel File Format ├── 3DO File Format.html ├── Gimp Cel Importer Plugin │ └── gimp-plugin-3docel-master │ │ ├── 3docel.c │ │ ├── 3docel.h │ │ ├── README │ │ └── bittwiddle.h └── Source Of Info.txt ├── Cinepak Video Codec └── Cinepak (CVID) stream format.txt ├── Homogenous Clipping └── 3D Clipping in Homogeneous Coordinates - Development Chaos Theory.pdf └── OperaFS Tools And Source ├── 3do-tools ├── README.md ├── bin │ └── OperaTool │ │ └── OperaTool.exe └── src │ ├── 3DOHomebrewSigning.sln │ ├── 3DOHomebrewSigning │ ├── 3DODisk.cpp │ ├── 3DODisk.h │ ├── 3DOHomebrewSigning.cpp │ ├── 3DOHomebrewSigning.vcxproj │ ├── Readme.txt │ ├── Utilities.cpp │ ├── Utilities.h │ ├── bigd.c │ ├── bigd.h │ ├── bigdigits.c │ ├── bigdigits.h │ ├── bigdtypes.h │ ├── global.h │ ├── md5.h │ ├── md5c.cpp │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h │ ├── OperaTool.sln │ └── OperaTool │ ├── Opera.cs │ ├── OperaTool.csproj │ ├── Program.cs │ ├── Properties │ └── AssemblyInfo.cs │ └── Util.cs ├── OperaFS[De]Compiler ├── OperaFS.exe ├── Readme.txt ├── operafs-1.0b2.tar.gz └── zlib1.dll └── Sources.txt /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.15) 2 | project(PhoenixDoom) 3 | 4 | # Where CMake will search for .cmake module files 5 | set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") 6 | 7 | # Causes CMake projects to go into their own folders 8 | set_property(GLOBAL PROPERTY USE_FOLDERS ON) 9 | 10 | # Include common build scripts and do basic build setup 11 | include(HelperFunctions) 12 | include(BuildSetup) 13 | 14 | build_setup() 15 | 16 | # Global identifiers for each project/target 17 | set(GAME_NAME PhoenixDoom) 18 | set(LIBSDL_NAME SDL) 19 | 20 | # Adding individual projects and libraries 21 | set(GAME_SRC_DIR "${PROJECT_SOURCE_DIR}/source") 22 | set(THIRD_PARTY_LIBS_DIR "${PROJECT_SOURCE_DIR}/third_party_libs") 23 | set(LIBSDL_DIR "${THIRD_PARTY_LIBS_DIR}/libsdl") 24 | 25 | add_subdirectory("${LIBSDL_DIR}") 26 | add_subdirectory("${GAME_SRC_DIR}") 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2019 Darragh Coy, Olde Skuul, id Software and ZeniMax Media 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 | # Phoenix DOOM 2 | 3 | A backport & remaster of 3DO DOOM for Windows, MacOS and Linux. 4 | 5 | ![alt text](docs/PhoenixDoomBanner.png "I went through hell to bring you this source port...") 6 | 7 | ## About This Project 8 | 9 | Phoenix DOOM is a project derived from the [3DO DOOM source code release by Rebecca Ann Heineman](https://github.com/Olde-Skuul/doom3do). The aim of this project is to allow the original 3DO version of DOOM to be played on modern operating systems with enhancements, bug fixes and other quality of life improvements. The idea is to improve upon and remaster the original while still preserving its primary essence. 10 | 11 | See the following documents for more info on the project: 12 | 13 | - [How To Play & Configuring](docs/How%20To%20Play.md) 14 | - [Differences To 3DO DOOM](docs/Differences%20To%203DO%20DOOM.md) 15 | - [Q&A / About The Project](docs/Q%26A.md) 16 | - [Known Issues](docs/Known%20Issues.md) 17 | - [Credits](docs/Credits.md) 18 | - [License / Copyright](docs/License%20%26%20Copyright.md) 19 | - [Building The Code / Development](docs/Building%20The%20Code.md) 20 | -------------------------------------------------------------------------------- /cmake/BuildSetup.cmake: -------------------------------------------------------------------------------- 1 | macro(detect_compiler) 2 | if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") 3 | set(COMPILER_CLANG TRUE) 4 | elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") 5 | set(COMPILER_GCC TRUE) 6 | elseif (MSVC) 7 | set(COMPILER_MSVC TRUE) 8 | else() 9 | message(FATAL_ERROR "Unknown or currently unsupported compiler '${CMAKE_CXX_COMPILER_ID}'!") 10 | endif() 11 | endmacro() 12 | 13 | macro(detect_platform) 14 | if (WIN32) 15 | set(PLATFORM_WINDOWS TRUE) 16 | elseif (APPLE) 17 | set(PLATFORM_MAC TRUE) # Note: could also be iOS etc. but not targetting those - can just assume Mac... 18 | elseif (UNIX AND NOT APPLE) 19 | set(PLATFORM_LINUX TRUE) 20 | else() 21 | message(FATAL_ERROR "Unknown or currently unsupported platform!") 22 | endif() 23 | endmacro() 24 | 25 | macro(compiler_agnostic_setup) 26 | set(CMAKE_C_STANDARD 11) 27 | set(CMAKE_CXX_STANDARD 17) 28 | endmacro() 29 | 30 | macro(compiler_specific_setup) 31 | # Clang, Apple Clang, or GCC - enable debugging 32 | if (COMPILER_CLANG OR COMPILER_GCC) 33 | set(CMAKE_C_FLAGS -g) 34 | set(CMAKE_CXX_FLAGS -g) 35 | endif() 36 | endmacro() 37 | 38 | macro(build_setup) 39 | detect_compiler() 40 | detect_platform() 41 | compiler_agnostic_setup() 42 | compiler_specific_setup() 43 | endmacro() 44 | -------------------------------------------------------------------------------- /cmake/HelperFunctions.cmake: -------------------------------------------------------------------------------- 1 | #----------------------------------------------------------------------------------------------------------------------- 2 | # Setup grouping/folders for the current target. 3 | # Useful to group source and other files in IDEs like Visual Studio. 4 | #----------------------------------------------------------------------------------------------------------------------- 5 | function(setup_source_groups SOURCE_FILES OTHER_FILES) 6 | # CMakeLists.txt is special - put it at the root of the project for easy access 7 | set(OTHER_FILES_MINUS_CMAKE_LISTS "${OTHER_FILES}") 8 | list(REMOVE_ITEM OTHER_FILES_MINUS_CMAKE_LISTS "CMakeLists.txt") 9 | source_group(TREE "${CMAKE_CURRENT_LIST_DIR}" PREFIX "" FILES "CMakeLists.txt") 10 | 11 | # Regular source and other files 12 | if (SOURCE_FILES) 13 | source_group(TREE "${CMAKE_CURRENT_LIST_DIR}" PREFIX "Source Files" FILES ${SOURCE_FILES}) 14 | endif() 15 | 16 | if (OTHER_FILES_MINUS_CMAKE_LISTS) 17 | source_group(TREE "${CMAKE_CURRENT_LIST_DIR}" PREFIX "Other Files" FILES ${OTHER_FILES_MINUS_CMAKE_LISTS}) 18 | endif() 19 | endfunction() 20 | -------------------------------------------------------------------------------- /docs/Known Issues.md: -------------------------------------------------------------------------------- 1 | # Known Issues 2 | 3 | Some known issues/bugs in the game: 4 | 5 | - **There is corruption on level 10's crate maze with the very small crate textures.** Found this in the 3DO version also - is it a data problem? Perhaps the build tools that generated this texture failed somehow for that particular asset. 6 | 7 | - **A switch on the 'Limbo' level is not working; it does nothing when you attempt to interact with it.** Appears to be the same on the 3DO too, level design bug? It's functional on PC, though I'm not sure exactly what it does. 8 | 9 | - **In some cases sprites can clip through walls or be clipped by walls when they shouldn't be.** The cases where this happens are similar to both PC and 3DO Doom; it's due to the limitations of the sprite clipping technique used. 10 | -------------------------------------------------------------------------------- /docs/PhoenixDoomBanner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BodbDearg/phoenix_doom/9648b1cc742634d5aefc18cd3699cd7cb2c0e21c/docs/PhoenixDoomBanner.png -------------------------------------------------------------------------------- /source/Audio/AudioLoader.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | struct AudioData; 7 | 8 | namespace AudioLoader { 9 | //------------------------------------------------------------------------------------------------------------------ 10 | // Loads an audio file from the specified file path and saves the loaded data to the given object. 11 | // Supported sound file formats are: 12 | // (1) AIFF 13 | // (2) AIFF-C (Uncompressed, and SDX2 compressed) 14 | //------------------------------------------------------------------------------------------------------------------ 15 | bool loadFromFile(const char* const filePath, AudioData& audioData) noexcept; 16 | 17 | //------------------------------------------------------------------------------------------------------------------ 18 | // Same as 'loadFromFile' but loads the audio from a buffer instead 19 | //------------------------------------------------------------------------------------------------------------------ 20 | bool loadFromBuffer(const std::byte* const pBuffer, const uint32_t bufferSize, AudioData& audioData) noexcept; 21 | } 22 | -------------------------------------------------------------------------------- /source/Audio/AudioVoice.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | //------------------------------------------------------------------------------------------------------------------------------------------ 6 | // Used to keep track of a playing piece of audio 7 | //------------------------------------------------------------------------------------------------------------------------------------------ 8 | struct AudioVoice { 9 | enum class State : uint8_t { 10 | STOPPED, // Voice is not in use 11 | PLAYING, 12 | PAUSED 13 | }; 14 | 15 | State state; 16 | bool bIsLooped; 17 | uint16_t curSampleFrac; // Fractional position in between samples (up to 65535/65536) 18 | uint32_t curSample; // Whole sample position in the source audio 19 | uint32_t audioDataHandle; // Handle to audio data from the data manager 20 | float lVolume; // Left channel volume 21 | float rVolume; // Right channel volume 22 | }; 23 | -------------------------------------------------------------------------------- /source/Audio/Sound.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Base/Fixed.h" 4 | 5 | void S_Clear() noexcept; 6 | uint32_t S_StartSound( 7 | const Fixed* const pOriginXY, 8 | const uint32_t soundId, 9 | const bool bStopOtherInstances = false 10 | ) noexcept; 11 | 12 | void S_StartSong(const uint32_t musicId) noexcept; 13 | void S_StopSong() noexcept; 14 | -------------------------------------------------------------------------------- /source/Base/FatalErrors.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace FatalErrors { 4 | // Functions that can be called to handle fatal errors like out of memory. 5 | // The program will terminate after each fatal error type. 6 | [[noreturn]] void outOfMemory() noexcept; 7 | 8 | // Issue a generic fatal error message with any message. 9 | // This is useful for very specific error messages for a certain part of the application. 10 | [[noreturn]] void error(const char* const pStr) noexcept; 11 | 12 | // Same as above, but with 'printf' style formatting of the error 13 | [[noreturn]] void errorWithFormat(const char* const pFormatStr, ...) noexcept; 14 | } 15 | -------------------------------------------------------------------------------- /source/Base/FileUtils.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Macros.h" 4 | 5 | #include 6 | 7 | BEGIN_NAMESPACE(FileUtils) 8 | 9 | bool getContentsOfFile( 10 | const char* const filePath, 11 | std::byte*& pOutputMem, 12 | size_t& outputSize, 13 | const size_t numExtraBytes = 0, 14 | const std::byte extraBytesValue = std::byte(0) 15 | ) noexcept; 16 | 17 | bool writeDataToFile( 18 | const char* const filePath, 19 | const std::byte* const pData, 20 | const size_t dataSize, 21 | const bool bAppend = false 22 | ) noexcept; 23 | 24 | bool fileExists(const char* filePath) noexcept; 25 | 26 | END_NAMESPACE(FileUtils) 27 | -------------------------------------------------------------------------------- /source/Base/Mem.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | #define MEM_FREE_AND_NULL(ptr)\ 9 | do {\ 10 | MemFree(ptr);\ 11 | ptr = nullptr;\ 12 | } while (0) 13 | 14 | inline std::byte* MemAlloc(const uint32_t numBytes) noexcept { 15 | return reinterpret_cast(std::malloc(numBytes)); 16 | } 17 | 18 | inline void MemFree(void* const pMem) noexcept { 19 | std::free(pMem); 20 | } 21 | 22 | template 23 | inline T& AllocObj() noexcept { 24 | return *reinterpret_cast(MemAlloc((uint32_t) sizeof(T))); 25 | } 26 | 27 | template 28 | inline void FreeObj(T& obj) noexcept { 29 | MemFree(&obj); 30 | } 31 | 32 | template 33 | inline void MemClear(T& obj) noexcept { 34 | std::memset((void*) &obj, 0, sizeof(obj)); 35 | } 36 | 37 | template 38 | inline T1 BitCast(T2& obj) noexcept { 39 | static_assert(sizeof(T1) == sizeof(T2)); 40 | static_assert(alignof(T1) == alignof(T2)); 41 | 42 | T1 castObj; 43 | std::memcpy(&castObj, &obj, sizeof(T1)); 44 | return castObj; 45 | } 46 | -------------------------------------------------------------------------------- /source/Base/MouseButton.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | //------------------------------------------------------------------------------------------------------------------------------------------ 6 | // Enum representing one of the 5 available mouse buttons in SDL 7 | //------------------------------------------------------------------------------------------------------------------------------------------ 8 | enum class MouseButton : uint8_t { 9 | LEFT, 10 | MIDDLE, 11 | RIGHT, 12 | X1, 13 | X2, 14 | INVALID 15 | }; 16 | 17 | static constexpr uint8_t NUM_MOUSE_BUTTONS = (uint32_t) MouseButton::INVALID; 18 | -------------------------------------------------------------------------------- /source/Base/Random.cpp: -------------------------------------------------------------------------------- 1 | #include "Random.h" 2 | 3 | #include 4 | 5 | static std::mt19937 gRandom; 6 | 7 | void Random::init() noexcept { 8 | std::random_device randomDevice; 9 | gRandom.seed(randomDevice()); 10 | } 11 | 12 | void Random::init(const uint32_t seed) noexcept { 13 | gRandom.seed(seed); 14 | } 15 | 16 | bool Random::nextBool() noexcept { 17 | return (std::uniform_int_distribution()(gRandom) & 1) != 0; 18 | } 19 | 20 | uint32_t Random::nextU32() noexcept { 21 | return std::uniform_int_distribution()(gRandom); 22 | } 23 | 24 | uint32_t Random::nextU32(const uint32_t max) noexcept { 25 | return std::uniform_int_distribution(0, max)(gRandom); 26 | } 27 | 28 | uint16_t Random::nextU16() noexcept { 29 | return std::uniform_int_distribution()(gRandom); 30 | } 31 | 32 | uint16_t Random::nextU16(const uint16_t max) noexcept { 33 | return std::uniform_int_distribution(0, max)(gRandom); 34 | } 35 | 36 | uint8_t Random::nextU8() noexcept { 37 | return (uint8_t) std::uniform_int_distribution()(gRandom); 38 | } 39 | 40 | uint8_t Random::nextU8(const uint8_t max) noexcept { 41 | return (uint8_t) std::uniform_int_distribution(0, max)(gRandom); 42 | } 43 | 44 | float Random::nextFloat() noexcept { 45 | return std::uniform_real_distribution()(gRandom); 46 | } 47 | -------------------------------------------------------------------------------- /source/Base/Random.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | //------------------------------------------------------------------------------------------------------------------------------------------ 4 | // Random number generation utilities 5 | //------------------------------------------------------------------------------------------------------------------------------------------ 6 | namespace Random { 7 | void init() noexcept; 8 | void init(const uint32_t seed) noexcept; 9 | 10 | bool nextBool() noexcept; 11 | 12 | uint32_t nextU32() noexcept; 13 | uint32_t nextU32(const uint32_t max) noexcept; 14 | 15 | uint16_t nextU16() noexcept; 16 | uint16_t nextU16(const uint16_t max) noexcept; 17 | 18 | uint8_t nextU8() noexcept; 19 | uint8_t nextU8(const uint8_t max) noexcept; 20 | 21 | // Gives a float between 0 and 1 22 | float nextFloat() noexcept; 23 | } 24 | -------------------------------------------------------------------------------- /source/Base/Resource.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | //------------------------------------------------------------------------------------------------------------------------------------------ 7 | // Represents a single resource in the manager 8 | //------------------------------------------------------------------------------------------------------------------------------------------ 9 | struct Resource { 10 | uint32_t number; 11 | uint32_t type; 12 | uint32_t offset; // Offset within the resource file 13 | uint32_t size; // Size of the resource 14 | std::byte* pData; // Non null if the resource is loaded 15 | }; 16 | -------------------------------------------------------------------------------- /source/GFX/Renderer.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Base/Macros.h" 4 | #include 5 | 6 | BEGIN_NAMESPACE(Renderer) 7 | 8 | // Dev/cheat z offset applied to the camera for testing 9 | extern float gDebugCameraZOffset; 10 | 11 | // The original maximum size of the 3D view 12 | static constexpr uint32_t REFERENCE_3D_VIEW_WIDTH = 280; 13 | static constexpr uint32_t REFERENCE_3D_VIEW_HEIGHT = 160; 14 | 15 | void init() noexcept; // Initialize the renderer (done once) 16 | void shutdown() noexcept; 17 | 18 | void initMathTables() noexcept; // Re-initialize the renderer math tables; must be done if screen size changes! 19 | void drawPlayerView() noexcept; // Render the 3d view for the player 20 | 21 | END_NAMESPACE(Renderer) 22 | -------------------------------------------------------------------------------- /source/Game/Cheats.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Base/Macros.h" 4 | 5 | //------------------------------------------------------------------------------------------------------------------------------------------ 6 | // Simple module that tracks for cheat key sequences in-game and applies cheats 7 | //------------------------------------------------------------------------------------------------------------------------------------------ 8 | BEGIN_NAMESPACE(Cheats) 9 | 10 | void init() noexcept; 11 | void shutdown() noexcept; 12 | void update() noexcept; 13 | 14 | END_NAMESPACE(Cheats) 15 | -------------------------------------------------------------------------------- /source/Game/Data.cpp: -------------------------------------------------------------------------------- 1 | #include "Data.h" 2 | 3 | ammotype_e gWeaponAmmos[NUMWEAPONS] = { 4 | am_noammo, // Fists 5 | am_clip, // Pistol 6 | am_shell, // Shotgun 7 | am_clip, // Chain gun 8 | am_misl, // Rocket launcher 9 | am_cell, // Plasma rifle 10 | am_cell, // BFG 9000 11 | am_noammo // Chainsaw 12 | }; 13 | 14 | uint32_t gMaxAmmo[NUMAMMO] = { 15 | 200, 16 | 50, 17 | 300, 18 | 50 19 | }; 20 | 21 | uint32_t gTotalGameTicks; 22 | uint32_t gMaxLevel; 23 | skill_e gStartSkill; 24 | uint32_t gStartMap; 25 | const CelImageArray* gpBigNumFont; 26 | uint32_t gTotalKillsInLevel; 27 | uint32_t gItemsFoundInLevel; 28 | uint32_t gSecretsFoundInLevel; 29 | player_t gPlayer; 30 | gameaction_e gGameAction; 31 | skill_e gGameSkill; 32 | uint32_t gGameMap; 33 | uint32_t gNextMap; 34 | uint32_t gScreenSize; 35 | bool gbAlwaysRun; 36 | bool gbDoWipe; 37 | uint32_t gValidCount; 38 | PerfCounterMode gPerfCounterMode = PerfCounterMode::NONE; 39 | uint64_t gPerfCounterAverageUSec; 40 | uint64_t gPerfCounterRunningTotal; 41 | uint64_t gPerfCounterTicksDone; 42 | -------------------------------------------------------------------------------- /source/Game/DoomMain.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | enum gameaction_e : uint8_t; 6 | 7 | // Function types for the game mini loop 8 | typedef void (*GameLoopStartFunc)() noexcept; 9 | typedef void (*GameLoopStopFunc)() noexcept; 10 | typedef gameaction_e (*GameLoopTickFunc)() noexcept; 11 | typedef void (*GameLoopDrawFunc)(const bool bPresent, const bool bSaveFrameBuffer) noexcept; 12 | 13 | // Used for running one screen or section of the game. 14 | // Runs a game loop with start, stop, update and draw functions. 15 | // Certain stuff like ticking at the right rate, user inputs etc. are handled by the loop. 16 | gameaction_e RunGameLoop( 17 | const GameLoopStartFunc start, 18 | const GameLoopStopFunc stop, 19 | const GameLoopTickFunc ticker, 20 | const GameLoopDrawFunc drawer 21 | ) noexcept; 22 | 23 | void D_DoomMain() noexcept; 24 | -------------------------------------------------------------------------------- /source/Game/Game.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | enum skill_e : uint8_t; 6 | 7 | void G_DoLoadLevel() noexcept; 8 | void G_PlayerFinishLevel() noexcept; 9 | void G_PlayerReborn() noexcept; 10 | void G_DoReborn() noexcept; 11 | void G_ExitLevel() noexcept; 12 | void G_SecretExitLevel() noexcept; 13 | void G_InitNew(const skill_e skill, const uint32_t map) noexcept; 14 | void G_RunGame() noexcept; 15 | -------------------------------------------------------------------------------- /source/Game/Prefs.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Base/Macros.h" 4 | 5 | //------------------------------------------------------------------------------------------------------------------------------------------ 6 | // Functionality to load and save player progress and preferences. 7 | // Saves to a simple .ini file in the same folder as the config file. 8 | //------------------------------------------------------------------------------------------------------------------------------------------ 9 | BEGIN_NAMESPACE(Prefs) 10 | 11 | void load() noexcept; 12 | void save() noexcept; 13 | 14 | END_NAMESPACE(Prefs) 15 | -------------------------------------------------------------------------------- /source/Game/Resources.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Base/Macros.h" 4 | #include 5 | #include 6 | 7 | struct Resource; 8 | 9 | BEGIN_NAMESPACE(Resources) 10 | 11 | void init() noexcept; 12 | void shutdown() noexcept; 13 | 14 | const Resource* get(const uint32_t num) noexcept; 15 | std::byte* getData(const uint32_t num) noexcept; 16 | 17 | const Resource* load(const uint32_t num) noexcept; 18 | std::byte* loadData(const uint32_t num) noexcept; 19 | 20 | void free(const uint32_t num) noexcept; 21 | void release(const uint32_t num) noexcept; 22 | 23 | uint32_t getEndResourceNum() noexcept; 24 | 25 | END_NAMESPACE(Resources) 26 | -------------------------------------------------------------------------------- /source/Game/TickCounter.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Base/Macros.h" 4 | #include 5 | 6 | //------------------------------------------------------------------------------------------------------------------------------------------ 7 | // Simple module that keeps track of time for the game and tells how many ticks need to be simulated. 8 | //------------------------------------------------------------------------------------------------------------------------------------------ 9 | BEGIN_NAMESPACE(TickCounter) 10 | 11 | void init() noexcept; 12 | void shutdown() noexcept; 13 | uint32_t update() noexcept; // Update time tracking and return the number of ticks that must be simulated 14 | 15 | END_NAMESPACE(TickCounter) 16 | -------------------------------------------------------------------------------- /source/Main_Mac.mm: -------------------------------------------------------------------------------- 1 | #include "Game/DoomMain.h" 2 | 3 | int main(int argc, char* argv[]) noexcept { 4 | @autoreleasepool { 5 | D_DoomMain(); 6 | } 7 | 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /source/Main_StandardCpp.cpp: -------------------------------------------------------------------------------- 1 | #include "Game/DoomMain.h" 2 | 3 | int main() noexcept { 4 | D_DoomMain(); 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /source/Main_Windows.cpp: -------------------------------------------------------------------------------- 1 | #include "Game/DoomMain.h" 2 | 3 | #define WIN32_LEAN_AND_MEAN 4 | #include 5 | 6 | int WINAPI wWinMain( 7 | [[maybe_unused]] HINSTANCE hInstance, 8 | [[maybe_unused]] HINSTANCE hPrevInstance, 9 | [[maybe_unused]] LPWSTR lpCmdLine, 10 | [[maybe_unused]] int nCmdShow 11 | ) { 12 | D_DoomMain(); 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /source/Map/Ceiling.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | struct line_t; 4 | 5 | // Enums for ceiling types 6 | enum ceiling_e { 7 | lowerToFloor, 8 | raiseToHighest, 9 | lowerAndCrush, 10 | crushAndRaise, 11 | fastCrushAndRaise 12 | }; 13 | 14 | bool EV_DoCeiling(line_t& line, const ceiling_e type) noexcept; 15 | bool EV_CeilingCrushStop(line_t& line) noexcept; 16 | void ResetCeilings() noexcept; 17 | -------------------------------------------------------------------------------- /source/Map/Change.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | struct sector_t; 4 | 5 | bool ChangeSector(sector_t& sector, const bool bCrunch) noexcept; 6 | -------------------------------------------------------------------------------- /source/Map/Doors.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | struct line_t; 4 | struct mobj_t; 5 | struct sector_t; 6 | 7 | // Enums for door types 8 | enum vldoor_e { 9 | normaldoor, 10 | close30ThenOpen, 11 | close, 12 | open, 13 | raiseIn5Mins 14 | }; 15 | 16 | bool EV_DoDoor(line_t& line, const vldoor_e type) noexcept; 17 | void EV_VerticalDoor(line_t& line, mobj_t& thing) noexcept; 18 | void P_SpawnDoorCloseIn30(sector_t& sec) noexcept; 19 | void P_SpawnDoorRaiseIn5Mins(sector_t& sec) noexcept; 20 | -------------------------------------------------------------------------------- /source/Map/Floor.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Base/Fixed.h" 4 | 5 | struct line_t; 6 | struct sector_t; 7 | 8 | // Enums for moving sector results 9 | enum result_e { 10 | moveok, 11 | crushed, 12 | pastdest 13 | }; 14 | 15 | // Enums for floor types 16 | enum floor_e { 17 | lowerFloor, // lower floor to highest surrounding floor 18 | lowerFloorToLowest, // lower floor to lowest surrounding floor 19 | turboLower, // lower floor to highest surrounding floor VERY FAST 20 | raiseFloor, // raise floor to lowest surrounding CEILING 21 | raiseFloorToNearest, // raise floor to next highest surrounding floor 22 | raiseToTexture, // raise floor to shortest height texture around it 23 | lowerAndChange, // lower floor to lowest surrounding floor and change floorpic 24 | raiseFloor24, 25 | raiseFloor24AndChange, 26 | raiseFloorCrush, 27 | donutRaise 28 | }; 29 | 30 | result_e T_MovePlane( 31 | sector_t& sector, 32 | const Fixed speed, 33 | const Fixed dest, 34 | const bool bCrush, 35 | const bool bCeiling, 36 | const int32_t direction 37 | ) noexcept; 38 | 39 | bool EV_DoFloor(line_t& line, const floor_e floortype) noexcept; 40 | bool EV_BuildStairs(line_t& line) noexcept; 41 | bool EV_DoDonut(line_t& line) noexcept; 42 | -------------------------------------------------------------------------------- /source/Map/Lights.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Game/DoomDefines.h" 4 | 5 | struct line_t; 6 | struct sector_t; 7 | 8 | static constexpr uint32_t GLOWSPEED = convertPcUintSpeed(8); // Steps for a glowing light 9 | static constexpr uint32_t STROBEBRIGHT = convertPcTicks(5); // Time to increase brightness for strobe 10 | static constexpr uint32_t FASTDARK = convertPcTicks(15); // Ticks to glow quickly 11 | static constexpr uint32_t SLOWDARK = convertPcTicks(35); // Ticks to glow slowly 12 | 13 | void P_SpawnLightFlash(sector_t& sector) noexcept; 14 | void P_SpawnStrobeFlash(sector_t& sector, const uint32_t fastOrSlow, const bool bInSync) noexcept; 15 | void EV_StartLightStrobing(line_t& line) noexcept; 16 | void EV_TurnTagLightsOff(line_t& line) noexcept; 17 | void EV_LightTurnOn(line_t& line, const uint32_t bright) noexcept; 18 | void P_SpawnGlowingLight(sector_t& sector) noexcept; 19 | -------------------------------------------------------------------------------- /source/Map/Map.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Base/Angle.h" 4 | #include "Base/Fixed.h" 5 | 6 | struct mobj_t; 7 | struct player_t; 8 | 9 | extern mobj_t* gpLineTarget; // Object that was targeted 10 | extern mobj_t* gpTmpThing; // mobj_t to be checked 11 | extern Fixed gTmpX; // Temp x,y for a position to be checked 12 | extern Fixed gTmpY; 13 | extern bool gbCheckPosOnly; // If true, just check the position, no actions 14 | extern mobj_t* gpShooter; // Source of a direct line shot 15 | extern angle_t gAttackAngle; // Angle to target 16 | extern Fixed gAttackRange; // Range to target 17 | extern Fixed gAimTopSlope; // Range of slope to target weapon 18 | extern Fixed gAimBottomSlope; 19 | 20 | bool P_CheckPosition(mobj_t& thing, const Fixed x, const Fixed y) noexcept; 21 | bool P_TryMove(mobj_t& thing, const Fixed x, const Fixed y) noexcept; 22 | void P_UseLines(player_t& player) noexcept; 23 | void RadiusAttack(mobj_t& spot, mobj_t* source, const uint32_t damage) noexcept; 24 | Fixed AimLineAttack(mobj_t& t1, const angle_t angle, const Fixed distance) noexcept; 25 | 26 | void LineAttack( 27 | mobj_t& t1, 28 | const angle_t angle, 29 | const Fixed distance, 30 | const Fixed slope, 31 | const uint32_t damage 32 | ) noexcept; 33 | -------------------------------------------------------------------------------- /source/Map/MapUtil.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Base/Angle.h" 4 | #include "Base/Fixed.h" 5 | 6 | struct line_t; 7 | struct mobj_t; 8 | struct subsector_t; 9 | struct vector_t; 10 | 11 | typedef bool (*BlockLinesIterCallback)(line_t&); 12 | typedef bool (*BlockThingsIterCallback)(mobj_t&); 13 | 14 | angle_t SlopeAngle(uint32_t num, uint32_t den) noexcept; 15 | angle_t PointToAngle(Fixed x1, Fixed y1, Fixed x2, Fixed y2) noexcept; 16 | Fixed GetApproxDistance(Fixed dx, Fixed dy) noexcept; 17 | bool PointOnVectorSide(Fixed x, Fixed y, const vector_t& line) noexcept; 18 | subsector_t& PointInSubsector(const Fixed x, const Fixed y) noexcept; 19 | void MakeVector(line_t& li, vector_t& dl) noexcept; 20 | Fixed InterceptVector(const vector_t& first, const vector_t& second) noexcept; 21 | uint32_t LineOpening(const line_t& linedef) noexcept; 22 | void UnsetThingPosition(mobj_t& thing) noexcept; 23 | void SetThingPosition(mobj_t& thing) noexcept; 24 | bool BlockLinesIterator(const uint32_t x, const uint32_t y, const BlockLinesIterCallback func) noexcept; 25 | bool BlockThingsIterator(const uint32_t x, const uint32_t y, const BlockThingsIterCallback func) noexcept; 26 | -------------------------------------------------------------------------------- /source/Map/Platforms.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | struct line_t; 6 | 7 | // Enums for platform types 8 | enum plattype_e { 9 | perpetualRaise, 10 | downWaitUpStay, 11 | raiseAndChange, 12 | raiseToNearestAndChange 13 | }; 14 | 15 | bool EV_DoPlat(line_t& line, const plattype_e type, const uint32_t amount) noexcept; 16 | void EV_StopPlat(line_t& line) noexcept; 17 | void ResetPlats() noexcept; 18 | -------------------------------------------------------------------------------- /source/Map/Setup.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | struct mapthing_t; 6 | 7 | extern mapthing_t gDeathmatchStarts[10]; // Deathmatch starts 8 | extern mapthing_t* gpDeathmatch; 9 | extern mapthing_t gPlayerStarts; // Starting position for players 10 | extern uint32_t gSkyTextureNum; // The texture number to use to render the sky with 11 | 12 | void SetupLevel(const uint32_t map) noexcept; 13 | void ReleaseMapMemory() noexcept; 14 | void P_Init() noexcept; 15 | -------------------------------------------------------------------------------- /source/Map/Sight.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | struct mobj_t; 4 | 5 | // DC: Note - made use of the reject map optional, as it appears to be an unreliable check in some cases. 6 | // I made the mistake of trying to use the reject LUT for shooting line of sight calculations, and boy was I sorry... 7 | // I don't know why the reject is so unreliable on the 3DO maps, perhaps down to bugs in whatever node builder was used? 8 | bool CheckSight(mobj_t& t1, mobj_t& t2, const bool bUseRejectMap) noexcept; 9 | -------------------------------------------------------------------------------- /source/Map/Switch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | struct line_t; 6 | struct mobj_t; 7 | 8 | extern uint32_t gNumSwitches; // Number of switches * 2 9 | extern const uint32_t gSwitchList[]; 10 | 11 | void P_InitSwitchList() noexcept; 12 | void P_ChangeSwitchTexture(line_t& line, const bool bUseAgain) noexcept; 13 | bool P_UseSpecialLine(mobj_t& thing, line_t& line) noexcept; 14 | -------------------------------------------------------------------------------- /source/Things/Base.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | void P_RunMobjBase() noexcept; 4 | -------------------------------------------------------------------------------- /source/Things/Enemy.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | struct mobj_t; 4 | 5 | void A_Look(mobj_t& actor) noexcept; 6 | void A_Chase(mobj_t& actor) noexcept; 7 | void A_FaceTarget(mobj_t& actor) noexcept; 8 | void A_PosAttack(mobj_t& actor) noexcept; 9 | void A_SPosAttack(mobj_t& actor) noexcept; 10 | void A_SpidRefire(mobj_t& actor) noexcept; 11 | void A_TroopAttack(mobj_t& actor) noexcept; 12 | void A_SargAttack(mobj_t& actor) noexcept; 13 | void A_HeadAttack(mobj_t& actor) noexcept; 14 | void A_CyberAttack(mobj_t& actor) noexcept; 15 | void A_BruisAttack(mobj_t& actor) noexcept; 16 | void A_SkullAttack(mobj_t& actor) noexcept; 17 | void A_Scream(mobj_t& actor) noexcept; 18 | void A_XScream(mobj_t& actor) noexcept; 19 | void A_Pain(mobj_t& actor) noexcept; 20 | void A_Fall(mobj_t& actor) noexcept; 21 | void A_Explode(mobj_t& actor) noexcept; 22 | void A_BossDeath(mobj_t& actor) noexcept; 23 | void A_Hoof(mobj_t& actor) noexcept; 24 | void A_Metal(mobj_t& actor) noexcept; 25 | void L_MissileHit(mobj_t& mapObj, mobj_t* const pMissile) noexcept; 26 | void L_SkullBash(mobj_t& mapObj, mobj_t* const pSkull) noexcept; 27 | -------------------------------------------------------------------------------- /source/Things/Interactions.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Player.h" 4 | 5 | struct mobj_t; 6 | struct player_t; 7 | 8 | uint32_t GivePower(player_t& player, const powertype_e power) noexcept; 9 | void givePlayerABackpack(player_t& player) noexcept; 10 | void TouchSpecialThing(mobj_t& special, mobj_t& toucher) noexcept; 11 | 12 | void DamageMObj( 13 | mobj_t& target, 14 | mobj_t* const pInflictor, 15 | mobj_t* const pSource, 16 | uint32_t damage 17 | ) noexcept; 18 | -------------------------------------------------------------------------------- /source/Things/Move.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Base/Fixed.h" 4 | 5 | struct line_t; 6 | struct mobj_t; 7 | 8 | extern bool gbTryMove2; // Result from P_TryMove2 9 | extern bool gbFloatOk; // If true, move would be ok if within tmfloorz - tmceilingz 10 | extern Fixed gTmpFloorZ; // Current floor z for P_TryMove2 11 | extern Fixed gTmpCeilingZ; // Current ceiling z for P_TryMove2 12 | extern mobj_t* gpMoveThing; // Either a skull/missile target or a special pickup 13 | extern line_t* gpBlockLine; // Might be a door that can be opened 14 | 15 | void P_TryMove2() noexcept; 16 | void PM_CheckPosition() noexcept; 17 | bool PM_BoxCrossLine(line_t& ld) noexcept; 18 | bool PIT_CheckLine(line_t& ld) noexcept; 19 | bool PIT_CheckThing(mobj_t& thing) noexcept; 20 | -------------------------------------------------------------------------------- /source/Things/Shoot.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Base/Macros.h" 4 | #include "Base/Fixed.h" 5 | 6 | struct line_t; 7 | struct mobj_t; 8 | struct subsector_t; 9 | struct vertex_t; 10 | 11 | BEGIN_NAMESPACE(Shoot) 12 | 13 | extern line_t* gpShootLine; 14 | extern mobj_t* gpShootMObj; 15 | extern Fixed gShootSlope; // Between aimtop and aimbottom 16 | extern Fixed gShootX; // Location for puff/blood 17 | extern Fixed gShootY; 18 | extern Fixed gShootZ; 19 | 20 | void init() noexcept; 21 | void shutdown() noexcept; 22 | 23 | void P_Shoot2() noexcept; 24 | bool PA_ShootLine(line_t& li, const Fixed interceptfrac) noexcept; 25 | bool PA_ShootThing(mobj_t& th, const Fixed interceptfrac) noexcept; 26 | Fixed PA_SightCrossLine(const vertex_t& lineV1, const vertex_t& lineV2) noexcept; 27 | Fixed PA_SightCrossLine(const line_t& line) noexcept; 28 | bool PA_CrossSubsector(const subsector_t& sub) noexcept; 29 | 30 | END_NAMESPACE(Shoot) 31 | -------------------------------------------------------------------------------- /source/Things/Slide.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Base/Macros.h" 4 | #include "Base/Fixed.h" 5 | 6 | struct line_t; 7 | struct mobj_t; 8 | 9 | BEGIN_NAMESPACE(Slide) 10 | 11 | extern Fixed gSlideX; // The final position 12 | extern Fixed gSlideY; 13 | extern line_t* gpSpecialLine; // A line we may have activated 14 | 15 | void init() noexcept; 16 | void shutdown() noexcept; 17 | void doSliding(mobj_t& mo) noexcept; 18 | 19 | END_NAMESPACE(Slide) 20 | -------------------------------------------------------------------------------- /source/Things/Teleport.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | struct line_t; 4 | struct mobj_t; 5 | 6 | bool EV_Teleport(line_t& line, mobj_t& thing) noexcept; 7 | -------------------------------------------------------------------------------- /source/Things/User.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | struct player_t; 4 | 5 | void P_PlayerThink(player_t& player) noexcept; 6 | void PlayerCalcHeight(player_t& player) noexcept; 7 | -------------------------------------------------------------------------------- /source/UI/Automap.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | struct player_t; 4 | 5 | extern bool gShowAllAutomapThings; // Cheat: if true, show all objects 6 | extern bool gShowAllAutomapLines; // Cheat: If true, show all lines 7 | 8 | void AM_Start() noexcept; 9 | void AM_Control(player_t& player) noexcept; 10 | void AM_Drawer() noexcept; 11 | -------------------------------------------------------------------------------- /source/UI/FinaleScreen.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | enum gameaction_e : uint8_t; 6 | 7 | void F_Start() noexcept; 8 | void F_Stop() noexcept; 9 | gameaction_e F_Ticker() noexcept; 10 | void F_Drawer(const bool bPresent, const bool bSaveFrameBuffer) noexcept; 11 | -------------------------------------------------------------------------------- /source/UI/IntermissionScreen.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | enum gameaction_e : uint8_t; 6 | 7 | void IN_Start() noexcept; 8 | void IN_Stop() noexcept; 9 | gameaction_e IN_Ticker() noexcept; 10 | void IN_Drawer(const bool bPresent, const bool bSaveFrameBuffer) noexcept; 11 | -------------------------------------------------------------------------------- /source/UI/IntroLogos.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Base/Macros.h" 4 | 5 | BEGIN_NAMESPACE(IntroLogos) 6 | 7 | // Runs the two intro logos and does a game loop for them 8 | void run() noexcept; 9 | 10 | END_NAMESPACE(IntroLogos) 11 | -------------------------------------------------------------------------------- /source/UI/IntroMovies.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Base/Macros.h" 4 | 5 | BEGIN_NAMESPACE(IntroMovies) 6 | 7 | // Runs the two intro movies and does a game loop for them 8 | void run() noexcept; 9 | 10 | END_NAMESPACE(IntroMovies) 11 | -------------------------------------------------------------------------------- /source/UI/MainMenu.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | enum gameaction_e : uint8_t; 6 | 7 | void M_Start() noexcept; 8 | void M_Stop() noexcept; 9 | gameaction_e M_Ticker() noexcept; 10 | void M_Drawer(const bool bPresent, const bool bSaveFrameBuffer) noexcept; 11 | -------------------------------------------------------------------------------- /source/UI/OptionsMenu.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | struct player_t; 4 | 5 | void O_Init() noexcept; 6 | void O_Control(player_t* const pPlayer) noexcept; // N.B: Player is OPTIONAL! 7 | void O_Drawer(const bool bPresent, const bool bSaveFrameBuffer) noexcept; 8 | -------------------------------------------------------------------------------- /source/UI/StatusBarUI.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Things/Player.h" 4 | 5 | // Faces for our hero 6 | enum spclface_e { 7 | f_none, // Normal state 8 | f_faceleft, // turn face left 9 | f_faceright, // turn face right 10 | f_hurtbad, // surprised look when slammed hard 11 | f_gotgat, // picked up a weapon smile 12 | f_mowdown, // grimace while continuous firing 13 | NUMSPCLFACES 14 | }; 15 | 16 | // Describe data on the status bar 17 | struct stbar_t { 18 | spclface_e specialFace; // Which type of special face to make 19 | bool gotgibbed; // Got gibbed 20 | bool tryopen[NUMCARDS]; // Tried to open a card or skull door 21 | }; 22 | 23 | extern stbar_t gStBar; // Pass messages to the status bar 24 | 25 | void ST_Start() noexcept; 26 | void ST_Stop() noexcept; 27 | void ST_Ticker() noexcept; 28 | void ST_Drawer() noexcept; 29 | -------------------------------------------------------------------------------- /source/UI/TitleScreens.h: -------------------------------------------------------------------------------- 1 | #include "Base/Macros.h" 2 | 3 | //------------------------------------------------------------------------------------------------------------------------------------------ 4 | // UI logic and drawing for the title screen and title credits 5 | //------------------------------------------------------------------------------------------------------------------------------------------ 6 | BEGIN_NAMESPACE(TitleScreens) 7 | 8 | // Run the title screen page, returns 'true' if credits should show after this call 9 | bool runTitleScreen() noexcept; 10 | void runCreditScreens() noexcept; 11 | 12 | END_NAMESPACE(TitleScreens) 13 | -------------------------------------------------------------------------------- /source/UI/WipeFx.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Base/Macros.h" 4 | #include "Game/DoomMain.h" 5 | 6 | BEGIN_NAMESPACE(WipeFx) 7 | 8 | //------------------------------------------------------------------------------------------------------------------------------------------ 9 | // Runs the wipe effect for the game. 10 | // Captures one frame of rendering using the given drawer, then does the wipe using that render and 11 | // the contents of the previously saved framebuffer. Does not return until the wipe is complete or 12 | // the user decides to quit the application. 13 | //------------------------------------------------------------------------------------------------------------------------------------------ 14 | void doWipe(const GameLoopDrawFunc drawFunc) noexcept; 15 | 16 | END_NAMESPACE(WipeFx) 17 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/BUGS.txt: -------------------------------------------------------------------------------- 1 | 2 | Bugs are now managed in the SDL bug tracker, here: 3 | 4 | https://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 at the SDL forums/mailing list: 11 | 12 | https://discourse.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 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/COPYING.txt: -------------------------------------------------------------------------------- 1 | 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/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 https://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 https://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 | https://www.libsdl.org/mailing-list.php 38 | 39 | That's it! 40 | Sam Lantinga 41 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/Makefile.minimal: -------------------------------------------------------------------------------- 1 | # Makefile to build the SDL library 2 | 3 | INCLUDE = -I./include 4 | CFLAGS = -g -O2 $(INCLUDE) 5 | AR = ar 6 | RANLIB = ranlib 7 | 8 | TARGET = libSDL.a 9 | SOURCES = \ 10 | src/*.c \ 11 | src/audio/*.c \ 12 | src/audio/dummy/*.c \ 13 | src/cpuinfo/*.c \ 14 | src/events/*.c \ 15 | src/file/*.c \ 16 | src/haptic/*.c \ 17 | src/haptic/dummy/*.c \ 18 | src/joystick/*.c \ 19 | src/joystick/dummy/*.c \ 20 | src/loadso/dummy/*.c \ 21 | src/power/*.c \ 22 | src/filesystem/dummy/*.c \ 23 | src/render/*.c \ 24 | src/render/software/*.c \ 25 | src/sensor/*.c \ 26 | src/sensor/dummy/*.c \ 27 | src/stdlib/*.c \ 28 | src/thread/*.c \ 29 | src/thread/generic/*.c \ 30 | src/timer/*.c \ 31 | src/timer/dummy/*.c \ 32 | src/video/*.c \ 33 | src/video/dummy/*.c \ 34 | 35 | OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g') 36 | 37 | all: $(TARGET) 38 | 39 | $(TARGET): $(OBJECTS) 40 | $(AR) crv $@ $^ 41 | $(RANLIB) $@ 42 | 43 | clean: 44 | rm -f $(TARGET) $(OBJECTS) 45 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/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 6 | and emulators. 7 | 8 | The Simple DirectMedia Layer library source code is available from: 9 | https://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 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/README.txt: -------------------------------------------------------------------------------- 1 | 2 | Simple DirectMedia Layer 3 | 4 | (SDL) 5 | 6 | Version 2.0 7 | 8 | --- 9 | https://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 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/SDL2Config.cmake: -------------------------------------------------------------------------------- 1 | include("${CMAKE_CURRENT_LIST_DIR}/SDL2Targets.cmake") 2 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/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 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/acinclude/ac_check_define.m4: -------------------------------------------------------------------------------- 1 | AC_DEFUN([AC_CHECK_DEFINE],[dnl 2 | AC_CACHE_CHECK(for $1 in $2, ac_cv_define_$1, 3 | AC_EGREP_CPP([YES_IS_DEFINED], [ 4 | #include <$2> 5 | #ifdef $1 6 | YES_IS_DEFINED 7 | #endif 8 | ], ac_cv_define_$1=yes, ac_cv_define_$1=no) 9 | ) 10 | if test "$ac_cv_define_$1" = "yes" ; then 11 | AC_DEFINE([HAVE_$1],[],[Added by AC_CHECK_DEFINE]) 12 | fi 13 | ])dnl 14 | AC_DEFINE([HAVE_$1],[],[Added by AC_CHECK_DEFINE]) 15 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/acinclude/ltversion.m4: -------------------------------------------------------------------------------- 1 | # ltversion.m4 -- version numbers -*- Autoconf -*- 2 | # 3 | # Copyright (C) 2004 Free Software Foundation, Inc. 4 | # Written by Scott James Remnant, 2004 5 | # 6 | # This file is free software; the Free Software Foundation gives 7 | # unlimited permission to copy and/or distribute it, with or without 8 | # modifications, as long as this notice is preserved. 9 | 10 | # @configure_input@ 11 | 12 | # serial 3337 ltversion.m4 13 | # This file is part of GNU Libtool 14 | 15 | m4_define([LT_PACKAGE_VERSION], [2.4.2]) 16 | m4_define([LT_PACKAGE_REVISION], [1.3337]) 17 | 18 | AC_DEFUN([LTVERSION_VERSION], 19 | [macro_version='2.4.2' 20 | macro_revision='1.3337' 21 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 22 | _LT_DECL(, macro_revision, 0) 23 | ]) 24 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | echo "Generating build information using autoconf" 4 | echo "This may take a while ..." 5 | 6 | srcdir=`dirname $0` 7 | test -z "$srcdir" && srcdir=. 8 | cd "$srcdir" 9 | 10 | # Regenerate configuration files 11 | cat acinclude/* >aclocal.m4 12 | found=false 13 | for autoconf in autoconf autoconf259 autoconf-2.59 14 | do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi 15 | done 16 | if test x$found = xfalse; then 17 | echo "Couldn't find autoconf, aborting" 18 | exit 1 19 | fi 20 | (cd test; sh autogen.sh) 21 | 22 | # Run configure for this platform 23 | echo "Now you are ready to run ./configure" 24 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/build-scripts/os2-buildbot.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # This is the script buildbot.libsdl.org uses to cross-compile SDL2 from 4 | # x86 Linux to OS/2, using OpenWatcom. 5 | 6 | # The final zipfile can be unpacked on any machine that supports OpenWatcom 7 | # (Windows, Linux, OS/2, etc). Point the compiler at the include directory 8 | # and link against the SDL2.lib file. Ship the SDL2.dll with your app. 9 | 10 | if [ -z "$WATCOM" ]; then 11 | echo "This script expects \$WATCOM to be set to the OpenWatcom install dir." 1>&2 12 | echo "This is often something like '/usr/local/share/watcom'" 1>&2 13 | exit 1 14 | fi 15 | 16 | export PATH="$WATCOM/binl:$PATH" 17 | 18 | ZIPFILE="$1" 19 | if [ -z $1 ]; then 20 | ZIPFILE=sdl-os2.zip 21 | fi 22 | ZIPDIR=SDL2-os2 23 | 24 | set -e 25 | set -x 26 | 27 | cd `dirname "$0"` 28 | cd .. 29 | 30 | rm -f $ZIPFILE 31 | wmake -f Makefile.os2 32 | rm -rf $ZIPDIR 33 | mkdir $ZIPDIR 34 | chmod a+r SDL2.lib SDL2.dll 35 | mv SDL2.lib SDL2.dll $ZIPDIR/ 36 | cp -R include $ZIPDIR/ 37 | zip -9r "$ZIPFILE" $ZIPDIR 38 | 39 | wmake -f Makefile.os2 distclean 40 | 41 | set +x 42 | echo "All done. Final installable is in $ZIPFILE ..."; 43 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/build-scripts/showrev.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Print the current source revision, if available 4 | 5 | hg parents --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1) 6 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/build-scripts/strip_fPIC.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # libtool assumes that the compiler can handle the -fPIC flag 4 | # This isn't always true (for example, nasm can't handle it) 5 | command="" 6 | while [ $# -gt 0 ]; do 7 | case "$1" in 8 | -?PIC) 9 | # Ignore -fPIC and -DPIC options 10 | ;; 11 | -fno-common) 12 | # Ignore -fPIC and -DPIC options 13 | ;; 14 | *) 15 | command="$command $1" 16 | ;; 17 | esac 18 | shift 19 | done 20 | echo $command 21 | exec $command 22 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/build-scripts/update-copyright.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | find . -type f -exec grep -Il "Copyright" {} \; \ 4 | | grep -v \.hg \ 5 | | while read file; \ 6 | do \ 7 | LC_ALL=C sed -b -i "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$file"; \ 8 | done 9 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/build-scripts/updaterev.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Generate a header file with the current source revision 4 | 5 | outdir=`pwd` 6 | cd `dirname $0` 7 | srcdir=.. 8 | header=$outdir/include/SDL_revision.h 9 | 10 | rev=`sh showrev.sh 2>/dev/null` 11 | if [ "$rev" != "" -a "$rev" != "hg-0:baadf00d" ]; then 12 | revnum=`echo $rev | sed 's,hg-\([0-9]*\).*,\1,'` 13 | echo "#define SDL_REVISION \"$rev\"" >"$header.new" 14 | echo "#define SDL_REVISION_NUMBER $revnum" >>"$header.new" 15 | if diff $header $header.new >/dev/null 2>&1; then 16 | rm "$header.new" 17 | else 18 | mv "$header.new" "$header" 19 | fi 20 | fi 21 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/build-scripts/windows-buildbot-zipper.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | rem just a helper batch file for collecting up files and zipping them. 3 | rem usage: windows-buildbot-zipper.bat 4 | rem must be run from root of SDL source tree. 5 | 6 | IF EXIST VisualC\Win32\Release GOTO okaywin32dir 7 | echo Please run from root of source tree after doing a Release build. 8 | GOTO done 9 | 10 | :okaywin32dir 11 | IF EXIST VisualC\x64\Release GOTO okaydirs 12 | echo Please run from root of source tree after doing a Release build. 13 | GOTO done 14 | 15 | :okaydirs 16 | erase /q /f /s zipper 17 | IF EXIST zipper GOTO zippermade 18 | mkdir zipper 19 | :zippermade 20 | cd zipper 21 | mkdir SDL 22 | cd SDL 23 | mkdir include 24 | mkdir lib 25 | mkdir lib\win32 26 | mkdir lib\win64 27 | copy ..\..\include\*.h include\ 28 | copy ..\..\VisualC\Win32\Release\SDL2.dll lib\win32\ 29 | copy ..\..\VisualC\Win32\Release\SDL2.lib lib\win32\ 30 | copy ..\..\VisualC\Win32\Release\SDL2main.lib lib\win32\ 31 | copy ..\..\VisualC\x64\Release\SDL2.dll lib\win64\ 32 | copy ..\..\VisualC\x64\Release\SDL2.lib lib\win64\ 33 | copy ..\..\VisualC\x64\Release\SDL2main.lib lib\win64\ 34 | cd .. 35 | zip -9r ..\%1 SDL 36 | cd .. 37 | erase /q /f /s zipper 38 | 39 | :done 40 | 41 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/build-scripts/winrtbuild.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | REM 3 | REM winrtbuild.bat: a batch file to help launch the winrtbuild.ps1 4 | REM Powershell script, either from Windows Explorer, or through Buildbot. 5 | REM 6 | SET ThisScriptsDirectory=%~dp0 7 | SET PowerShellScriptPath=%ThisScriptsDirectory%winrtbuild.ps1 8 | PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%PowerShellScriptPath%'"; -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/cmake_uninstall.cmake.in: -------------------------------------------------------------------------------- 1 | if (NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt") 2 | message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_BINARY_DIR@/install_manifest.txt\"") 3 | endif(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt") 4 | 5 | file(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files) 6 | string(REGEX REPLACE "\n" ";" files "${files}") 7 | foreach (file ${files}) 8 | message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") 9 | execute_process( 10 | COMMAND @CMAKE_COMMAND@ -E remove "$ENV{DESTDIR}${file}" 11 | OUTPUT_VARIABLE rm_out 12 | RESULT_VARIABLE rm_retval 13 | ) 14 | if(NOT ${rm_retval} EQUAL 0) 15 | message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") 16 | endif (NOT ${rm_retval} EQUAL 0) 17 | endforeach(file) 18 | 19 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/include/SDL_copying.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/include/SDL_name.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/include/SDL_opengles.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | #include "SDL_config.h" 28 | 29 | #ifdef __IPHONEOS__ 30 | #include 31 | #include 32 | #else 33 | #include 34 | #include 35 | #endif 36 | 37 | #ifndef APIENTRY 38 | #define APIENTRY 39 | #endif 40 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/include/SDL_opengles2_gl2platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl2platform_h_ 2 | #define __gl2platform_h_ 3 | 4 | /* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* Platform-specific types and definitions for OpenGL ES 2.X gl2.h 12 | * 13 | * Adopters may modify khrplatform.h and this file to suit their platform. 14 | * You are encouraged to submit all modifications to the Khronos group so that 15 | * they can be included in future versions of this file. Please submit changes 16 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) 17 | * by filing a bug against product "OpenGL-ES" component "Registry". 18 | */ 19 | 20 | /*#include */ 21 | 22 | #ifndef GL_APICALL 23 | #define GL_APICALL KHRONOS_APICALL 24 | #endif 25 | 26 | #ifndef GL_APIENTRY 27 | #define GL_APIENTRY KHRONOS_APIENTRY 28 | #endif 29 | 30 | #endif /* __gl2platform_h_ */ 31 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/include/SDL_revision.h: -------------------------------------------------------------------------------- 1 | #define SDL_REVISION "hg-12952:bc90ce38f1e2" 2 | #define SDL_REVISION_NUMBER 12952 3 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/include/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/sdl2-config.cmake.in: -------------------------------------------------------------------------------- 1 | # sdl2 cmake project-config input for ./configure scripts 2 | 3 | set(prefix "@prefix@") 4 | set(exec_prefix "@exec_prefix@") 5 | set(libdir "@libdir@") 6 | set(SDL2_PREFIX "@prefix@") 7 | set(SDL2_EXEC_PREFIX "@prefix@") 8 | set(SDL2_LIBDIR "@libdir@") 9 | set(SDL2_INCLUDE_DIRS "@includedir@/SDL2") 10 | set(SDL2_LIBRARIES "-L${SDL2_LIBDIR} @SDL_RLD_FLAGS@ @SDL_LIBS@") 11 | string(STRIP "${SDL2_LIBRARIES}" SDL2_LIBRARIES) 12 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/sdl2.pc.in: -------------------------------------------------------------------------------- 1 | # sdl pkg-config source file 2 | 3 | prefix=@prefix@ 4 | exec_prefix=@exec_prefix@ 5 | libdir=@libdir@ 6 | includedir=@includedir@ 7 | 8 | Name: sdl2 9 | Description: Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. 10 | Version: @SDL_VERSION@ 11 | Requires: 12 | Conflicts: 13 | Libs: -L${libdir} @SDL_RLD_FLAGS@ @SDL_LIBS@ 14 | Libs.private: @SDL_STATIC_LIBS@ 15 | Cflags: -I${includedir}/SDL2 @SDL_CFLAGS@ 16 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/SDL_assert_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_assert_c_h_ 23 | #define SDL_assert_c_h_ 24 | 25 | extern void SDL_AssertionsQuit(void); 26 | 27 | #endif /* SDL_assert_c_h_ */ 28 | 29 | /* vi: set ts=4 sw=4 expandtab: */ 30 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/audio/emscripten/SDL_emscriptenaudio.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_emscriptenaudio_h_ 24 | #define SDL_emscriptenaudio_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 | int unused; 34 | }; 35 | 36 | #endif /* SDL_emscriptenaudio_h_ */ 37 | 38 | /* vi: set ts=4 sw=4 expandtab: */ 39 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/audio/haiku/SDL_haikuaudio.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_haikuaudio_h_ 24 | #define SDL_haikuaudio_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 | BSoundPlayer *audio_obj; 34 | }; 35 | 36 | #endif /* SDL_haikuaudio_h_ */ 37 | 38 | /* vi: set ts=4 sw=4 expandtab: */ 39 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/audio/sun/SDL_sunaudio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BodbDearg/phoenix_doom/9648b1cc742634d5aefc18cd3699cd7cb2c0e21c/third_party_libs/libsdl/sdl2/src/audio/sun/SDL_sunaudio.c -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/core/linux/SDL_evdev.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | #ifndef SDL_evdev_h_ 25 | #define SDL_evdev_h_ 26 | 27 | #ifdef SDL_INPUT_LINUXEV 28 | 29 | #include "SDL_events.h" 30 | 31 | extern int SDL_EVDEV_Init(void); 32 | extern void SDL_EVDEV_Quit(void); 33 | extern void SDL_EVDEV_Poll(void); 34 | 35 | #endif /* SDL_INPUT_LINUXEV */ 36 | 37 | #endif /* SDL_evdev_h_ */ 38 | 39 | /* vi: set ts=4 sw=4 expandtab: */ 40 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/core/unix/SDL_poll.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | #ifndef SDL_poll_h_ 25 | #define SDL_poll_h_ 26 | 27 | #include "SDL_stdinc.h" 28 | 29 | 30 | extern int SDL_IOReady(int fd, SDL_bool forWrite, int timeoutMS); 31 | 32 | #endif /* SDL_poll_h_ */ 33 | 34 | /* vi: set ts=4 sw=4 expandtab: */ 35 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/core/winrt/SDL_winrtapp_common.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_config.h" 22 | 23 | #ifndef SDL_winrtapp_common_h_ 24 | #define SDL_winrtapp_common_h_ 25 | 26 | /* A pointer to the app's C-style main() function (which is a different 27 | function than the WinRT app's actual entry point). 28 | */ 29 | extern int (*WINRT_SDLAppEntryPoint)(int, char **); 30 | 31 | #endif // SDL_winrtapp_common_h_ 32 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/core/winrt/SDL_winrtapp_xaml.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_config.h" 22 | 23 | #ifndef SDL_winrtapp_xaml_h_ 24 | #define SDL_winrtapp_xaml_h_ 25 | 26 | #include "SDL_stdinc.h" 27 | 28 | #ifdef __cplusplus 29 | extern SDL_bool WINRT_XAMLWasEnabled; 30 | extern int SDL_WinRTInitXAMLApp(int (*mainFunction)(int, char **), void * backgroundPanelAsIInspectable); 31 | #endif // ifdef __cplusplus 32 | 33 | #endif // SDL_winrtapp_xaml_h_ 34 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/events/SDL_clipboardevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/events/SDL_displayevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_displayevents_c_h_ 24 | #define SDL_displayevents_c_h_ 25 | 26 | extern int SDL_SendDisplayEvent(SDL_VideoDisplay *display, Uint8 displayevent, int data1); 27 | 28 | #endif /* SDL_displayevents_c_h_ */ 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/events/SDL_dropevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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(SDL_Window *window, const char *file); 27 | extern int SDL_SendDropText(SDL_Window *window, const char *text); 28 | extern int SDL_SendDropComplete(SDL_Window *window); 29 | 30 | #endif /* SDL_dropevents_c_h_ */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/events/SDL_gesture_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | extern int SDL_GestureDelTouch(SDL_TouchID touchId); 28 | 29 | extern void SDL_GestureProcessEvent(SDL_Event* event); 30 | 31 | extern void SDL_GestureQuit(void); 32 | 33 | #endif /* SDL_gesture_c_h_ */ 34 | 35 | /* vi: set ts=4 sw=4 expandtab: */ 36 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/events/SDL_windowevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/events/default_cursor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BodbDearg/phoenix_doom/9648b1cc742634d5aefc18cd3699cd7cb2c0e21c/third_party_libs/libsdl/sdl2/src/events/default_cursor.h -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/file/cocoa/SDL_rwopsbundlesupport.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | #ifdef __APPLE__ 23 | 24 | #include 25 | 26 | #ifndef SDL_rwopsbundlesupport_h 27 | #define SDL_rwopsbundlesupport_h 28 | FILE* SDL_OpenFPFromBundleOrFallback(const char *file, const char *mode); 29 | #endif 30 | #endif 31 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/haptic/SDL_haptic_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_haptic_c_h_ 23 | #define SDL_haptic_c_h_ 24 | 25 | extern int SDL_HapticInit(void); 26 | extern void SDL_HapticQuit(void); 27 | 28 | #endif /* SDL_haptic_c_h_ */ 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/haptic/android/SDL_syshaptic_c.h: -------------------------------------------------------------------------------- 1 | #include "SDL_config.h" 2 | 3 | #ifdef SDL_HAPTIC_ANDROID 4 | 5 | 6 | extern int Android_AddHaptic(int device_id, const char *name); 7 | extern int Android_RemoveHaptic(int device_id); 8 | 9 | 10 | #endif /* SDL_HAPTIC_ANDROID */ 11 | 12 | /* vi: set ts=4 sw=4 expandtab: */ 13 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/haptic/darwin/SDL_syshaptic_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 int MacHaptic_MaybeAddDevice( io_object_t device ); 23 | extern int MacHaptic_MaybeRemoveDevice( io_object_t device ); 24 | 25 | /* vi: set ts=4 sw=4 expandtab: */ 26 | 27 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/AUTHORS.txt: -------------------------------------------------------------------------------- 1 | 2 | HIDAPI Authors: 3 | 4 | Alan Ott : 5 | Original Author and Maintainer 6 | Linux, Windows, and Mac implementations 7 | 8 | Ludovic Rousseau : 9 | Formatting for Doxygen documentation 10 | Bug fixes 11 | Correctness fixes 12 | 13 | 14 | For a comprehensive list of contributions, see the commit list at github: 15 | http://github.com/signal11/hidapi/commits/master 16 | 17 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/HACKING.txt: -------------------------------------------------------------------------------- 1 | This file is mostly for the maintainer. 2 | 3 | 1. Build hidapi.dll 4 | 2. Build hidtest.exe in DEBUG and RELEASE 5 | 3. Commit all 6 | 7 | 4. Run the Following 8 | export VERSION=0.1.0 9 | export TAG_NAME=hidapi-$VERSION 10 | git tag $TAG_NAME 11 | git archive --format zip --prefix $TAG_NAME/ $TAG_NAME >../$TAG_NAME.zip 12 | 5. Test the zip file. 13 | 6. Run the following: 14 | git push origin $TAG_NAME 15 | 16 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/LICENSE-orig.txt: -------------------------------------------------------------------------------- 1 | HIDAPI - Multi-Platform library for 2 | communication with HID devices. 3 | 4 | Copyright 2009, Alan Ott, Signal 11 Software. 5 | All Rights Reserved. 6 | 7 | This software may be used by anyone for any reason so 8 | long as the copyright notice in the source files 9 | remains intact. 10 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/LICENSE.txt: -------------------------------------------------------------------------------- 1 | HIDAPI can be used under one of three licenses. 2 | 3 | 1. The GNU General Public License, version 3.0, in LICENSE-gpl3.txt 4 | 2. A BSD-Style License, in LICENSE-bsd.txt. 5 | 3. The more liberal original HIDAPI license. LICENSE-orig.txt 6 | 7 | The license chosen is at the discretion of the user of HIDAPI. For example: 8 | 1. An author of GPL software would likely use HIDAPI under the terms of the 9 | GPL. 10 | 11 | 2. An author of commercial closed-source software would likely use HIDAPI 12 | under the terms of the BSD-style license or the original HIDAPI license. 13 | 14 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/android/jni/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | HIDAPI_ROOT_REL:= ../.. 4 | HIDAPI_ROOT_ABS:= $(LOCAL_PATH)/../.. 5 | 6 | include $(CLEAR_VARS) 7 | 8 | LOCAL_CPPFLAGS += -std=c++11 9 | 10 | LOCAL_SRC_FILES := \ 11 | $(HIDAPI_ROOT_REL)/android/hid.cpp 12 | 13 | LOCAL_MODULE := libhidapi 14 | LOCAL_LDLIBS := -llog 15 | 16 | include $(BUILD_SHARED_LIBRARY) 17 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/android/jni/Application.mk: -------------------------------------------------------------------------------- 1 | APP_STL := gnustl_static 2 | APP_ABI := armeabi-v7a 3 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/android/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-21 15 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/bootstrap: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | autoreconf --install --verbose --force 3 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/hidtest/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ 2 | 3 | ## Linux 4 | if OS_LINUX 5 | noinst_PROGRAMS = hidtest-libusb hidtest-hidraw 6 | 7 | hidtest_hidraw_SOURCES = hidtest.cpp 8 | hidtest_hidraw_LDADD = $(top_builddir)/linux/libhidapi-hidraw.la 9 | 10 | hidtest_libusb_SOURCES = hidtest.cpp 11 | hidtest_libusb_LDADD = $(top_builddir)/libusb/libhidapi-libusb.la 12 | else 13 | 14 | # Other OS's 15 | noinst_PROGRAMS = hidtest 16 | 17 | hidtest_SOURCES = hidtest.cpp 18 | hidtest_LDADD = $(top_builddir)/$(backend)/libhidapi.la 19 | 20 | endif 21 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/ios/Makefile-manual: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-07-03 7 | ########################################### 8 | 9 | all: hidtest 10 | 11 | CC=gcc 12 | CXX=g++ 13 | COBJS=hid.o 14 | CPPOBJS=../hidtest/hidtest.o 15 | OBJS=$(COBJS) $(CPPOBJS) 16 | CFLAGS+=-I../hidapi -Wall -g -c 17 | LIBS=-framework CoreBluetooth -framework CoreFoundation 18 | 19 | 20 | hidtest: $(OBJS) 21 | g++ -Wall -g $^ $(LIBS) -o hidtest 22 | 23 | $(COBJS): %.o: %.c 24 | $(CC) $(CFLAGS) $< -o $@ 25 | 26 | $(CPPOBJS): %.o: %.cpp 27 | $(CXX) $(CFLAGS) $< -o $@ 28 | 29 | clean: 30 | rm -f *.o hidtest $(CPPOBJS) 31 | 32 | .PHONY: clean 33 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/ios/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES = libhidapi.la 2 | libhidapi_la_SOURCES = hid.m 3 | libhidapi_la_LDFLAGS = $(LTLDFLAGS) 4 | AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ 5 | 6 | hdrdir = $(includedir)/hidapi 7 | hdr_HEADERS = $(top_srcdir)/hidapi/hidapi.h 8 | 9 | EXTRA_DIST = Makefile-manual 10 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/libusb/Makefile-manual: -------------------------------------------------------------------------------- 1 | 2 | 3 | OS=$(shell uname) 4 | 5 | ifeq ($(OS), Linux) 6 | FILE=Makefile.linux 7 | endif 8 | 9 | ifeq ($(OS), FreeBSD) 10 | FILE=Makefile.freebsd 11 | endif 12 | 13 | ifeq ($(FILE), ) 14 | all: 15 | $(error Your platform ${OS} is not supported by hidapi/libusb at this time.) 16 | endif 17 | 18 | include $(FILE) 19 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/libusb/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(top_srcdir)/hidapi $(CFLAGS_LIBUSB) 2 | 3 | if OS_LINUX 4 | lib_LTLIBRARIES = libhidapi-libusb.la 5 | libhidapi_libusb_la_SOURCES = hid.c 6 | libhidapi_libusb_la_LDFLAGS = $(LTLDFLAGS) $(PTHREAD_CFLAGS) 7 | libhidapi_libusb_la_LIBADD = $(LIBS_LIBUSB) 8 | endif 9 | 10 | if OS_FREEBSD 11 | lib_LTLIBRARIES = libhidapi.la 12 | libhidapi_la_SOURCES = hid.c 13 | libhidapi_la_LDFLAGS = $(LTLDFLAGS) 14 | libhidapi_la_LIBADD = $(LIBS_LIBUSB) 15 | endif 16 | 17 | if OS_KFREEBSD 18 | lib_LTLIBRARIES = libhidapi.la 19 | libhidapi_la_SOURCES = hid.c 20 | libhidapi_la_LDFLAGS = $(LTLDFLAGS) 21 | libhidapi_la_LIBADD = $(LIBS_LIBUSB) 22 | endif 23 | 24 | hdrdir = $(includedir)/hidapi 25 | hdr_HEADERS = $(top_srcdir)/hidapi/hidapi.h 26 | 27 | EXTRA_DIST = Makefile-manual 28 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/libusb/Makefile.freebsd: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-06-01 7 | ########################################### 8 | 9 | all: hidtest libs 10 | 11 | libs: libhidapi.so 12 | 13 | CC ?= cc 14 | CFLAGS ?= -Wall -g -fPIC 15 | 16 | CXX ?= c++ 17 | CXXFLAGS ?= -Wall -g 18 | 19 | COBJS = hid.o 20 | CPPOBJS = ../hidtest/hidtest.o 21 | OBJS = $(COBJS) $(CPPOBJS) 22 | INCLUDES = -I../hidapi -I/usr/local/include 23 | LDFLAGS = -L/usr/local/lib 24 | LIBS = -lusb -liconv -pthread 25 | 26 | 27 | # Console Test Program 28 | hidtest: $(OBJS) 29 | $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS) 30 | 31 | # Shared Libs 32 | libhidapi.so: $(COBJS) 33 | $(CC) $(LDFLAGS) -shared -Wl,-soname,$@.0 $^ -o $@ $(LIBS) 34 | 35 | # Objects 36 | $(COBJS): %.o: %.c 37 | $(CC) $(CFLAGS) -c $(INCLUDES) $< -o $@ 38 | 39 | $(CPPOBJS): %.o: %.cpp 40 | $(CXX) $(CXXFLAGS) -c $(INCLUDES) $< -o $@ 41 | 42 | 43 | clean: 44 | rm -f $(OBJS) hidtest libhidapi.so ../hidtest/hidtest.o 45 | 46 | .PHONY: clean libs 47 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/libusb/Makefile.linux: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-06-01 7 | ########################################### 8 | 9 | all: hidtest-libusb libs 10 | 11 | libs: libhidapi-libusb.so 12 | 13 | CC ?= gcc 14 | CFLAGS ?= -Wall -g -fpic 15 | 16 | CXX ?= g++ 17 | CXXFLAGS ?= -Wall -g -fpic 18 | 19 | LDFLAGS ?= -Wall -g 20 | 21 | COBJS_LIBUSB = hid.o 22 | COBJS = $(COBJS_LIBUSB) 23 | CPPOBJS = ../hidtest/hidtest.o 24 | OBJS = $(COBJS) $(CPPOBJS) 25 | LIBS_USB = `pkg-config libusb-1.0 --libs` -lrt -lpthread 26 | LIBS = $(LIBS_USB) 27 | INCLUDES ?= -I../hidapi `pkg-config libusb-1.0 --cflags` 28 | 29 | 30 | # Console Test Program 31 | hidtest-libusb: $(COBJS_LIBUSB) $(CPPOBJS) 32 | $(CXX) $(LDFLAGS) $^ $(LIBS_USB) -o $@ 33 | 34 | # Shared Libs 35 | libhidapi-libusb.so: $(COBJS_LIBUSB) 36 | $(CC) $(LDFLAGS) $(LIBS_USB) -shared -fpic -Wl,-soname,$@.0 $^ -o $@ 37 | 38 | # Objects 39 | $(COBJS): %.o: %.c 40 | $(CC) $(CFLAGS) -c $(INCLUDES) $< -o $@ 41 | 42 | $(CPPOBJS): %.o: %.cpp 43 | $(CXX) $(CXXFLAGS) -c $(INCLUDES) $< -o $@ 44 | 45 | 46 | clean: 47 | rm -f $(OBJS) hidtest-libusb libhidapi-libusb.so ../hidtest/hidtest.o 48 | 49 | .PHONY: clean libs 50 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/libusb/hidusb.cpp: -------------------------------------------------------------------------------- 1 | 2 | #define NAMESPACE HIDUSB 3 | #include "hid.c" 4 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/linux/Makefile-manual: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-06-01 7 | ########################################### 8 | 9 | all: hidtest-hidraw libs 10 | 11 | libs: libhidapi-hidraw.so 12 | 13 | CC ?= gcc 14 | CFLAGS ?= -Wall -g -fpic 15 | 16 | CXX ?= g++ 17 | CXXFLAGS ?= -Wall -g -fpic 18 | 19 | LDFLAGS ?= -Wall -g 20 | 21 | 22 | COBJS = hid.o 23 | CPPOBJS = ../hidtest/hidtest.o 24 | OBJS = $(COBJS) $(CPPOBJS) 25 | LIBS_UDEV = `pkg-config libudev --libs` -lrt 26 | LIBS = $(LIBS_UDEV) 27 | INCLUDES ?= -I../hidapi `pkg-config libusb-1.0 --cflags` 28 | 29 | 30 | # Console Test Program 31 | hidtest-hidraw: $(COBJS) $(CPPOBJS) 32 | $(CXX) $(LDFLAGS) $^ $(LIBS_UDEV) -o $@ 33 | 34 | # Shared Libs 35 | libhidapi-hidraw.so: $(COBJS) 36 | $(CC) $(LDFLAGS) $(LIBS_UDEV) -shared -fpic -Wl,-soname,$@.0 $^ -o $@ 37 | 38 | # Objects 39 | $(COBJS): %.o: %.c 40 | $(CC) $(CFLAGS) -c $(INCLUDES) $< -o $@ 41 | 42 | $(CPPOBJS): %.o: %.cpp 43 | $(CXX) $(CXXFLAGS) -c $(INCLUDES) $< -o $@ 44 | 45 | 46 | clean: 47 | rm -f $(OBJS) hidtest-hidraw libhidapi-hidraw.so ../hidtest/hidtest.o 48 | 49 | .PHONY: clean libs 50 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/linux/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES = libhidapi-hidraw.la 2 | libhidapi_hidraw_la_SOURCES = hid.c 3 | libhidapi_hidraw_la_LDFLAGS = $(LTLDFLAGS) 4 | AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ $(CFLAGS_HIDRAW) 5 | libhidapi_hidraw_la_LIBADD = $(LIBS_HIDRAW) 6 | 7 | hdrdir = $(includedir)/hidapi 8 | hdr_HEADERS = $(top_srcdir)/hidapi/hidapi.h 9 | 10 | EXTRA_DIST = Makefile-manual 11 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/linux/hidraw.cpp: -------------------------------------------------------------------------------- 1 | 2 | #define NAMESPACE HIDRAW 3 | #include "hid.c" 4 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/mac/Makefile-manual: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-07-03 7 | ########################################### 8 | 9 | all: hidtest 10 | 11 | CC=gcc 12 | CXX=g++ 13 | COBJS=hid.o 14 | CPPOBJS=../hidtest/hidtest.o 15 | OBJS=$(COBJS) $(CPPOBJS) 16 | CFLAGS+=-I../hidapi -Wall -g -c 17 | LIBS=-framework IOKit -framework CoreFoundation 18 | 19 | 20 | hidtest: $(OBJS) 21 | g++ -Wall -g $^ $(LIBS) -o hidtest 22 | 23 | $(COBJS): %.o: %.c 24 | $(CC) $(CFLAGS) $< -o $@ 25 | 26 | $(CPPOBJS): %.o: %.cpp 27 | $(CXX) $(CFLAGS) $< -o $@ 28 | 29 | clean: 30 | rm -f *.o hidtest $(CPPOBJS) 31 | 32 | .PHONY: clean 33 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/mac/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES = libhidapi.la 2 | libhidapi_la_SOURCES = hid.c 3 | libhidapi_la_LDFLAGS = $(LTLDFLAGS) 4 | AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ 5 | 6 | hdrdir = $(includedir)/hidapi 7 | hdr_HEADERS = $(top_srcdir)/hidapi/hidapi.h 8 | 9 | EXTRA_DIST = Makefile-manual 10 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/pc/hidapi-hidraw.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: hidapi-hidraw 7 | Description: C Library for USB/Bluetooth HID device access from Linux, Mac OS X, FreeBSD, and Windows. This is the hidraw implementation. 8 | Version: @VERSION@ 9 | Libs: -L${libdir} -lhidapi-hidraw 10 | Cflags: -I${includedir}/hidapi 11 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/pc/hidapi-libusb.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: hidapi-libusb 7 | Description: C Library for USB HID device access from Linux, Mac OS X, FreeBSD, and Windows. This is the libusb implementation. 8 | Version: @VERSION@ 9 | Libs: -L${libdir} -lhidapi-libusb 10 | Cflags: -I${includedir}/hidapi 11 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/pc/hidapi.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: hidapi 7 | Description: C Library for USB/Bluetooth HID device access from Linux, Mac OS X, FreeBSD, and Windows. 8 | Version: @VERSION@ 9 | Libs: -L${libdir} -lhidapi 10 | Cflags: -I${includedir}/hidapi 11 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/testgui/Makefile-manual: -------------------------------------------------------------------------------- 1 | 2 | 3 | OS=$(shell uname) 4 | 5 | ifeq ($(OS), Darwin) 6 | FILE=Makefile.mac 7 | endif 8 | 9 | ifneq (,$(findstring MINGW,$(OS))) 10 | FILE=Makefile.mingw 11 | endif 12 | 13 | ifeq ($(OS), Linux) 14 | FILE=Makefile.linux 15 | endif 16 | 17 | ifeq ($(OS), FreeBSD) 18 | FILE=Makefile.freebsd 19 | endif 20 | 21 | ifeq ($(FILE), ) 22 | all: 23 | $(error Your platform ${OS} is not supported at this time.) 24 | endif 25 | 26 | include $(FILE) 27 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/testgui/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ $(CFLAGS_TESTGUI) 3 | 4 | if OS_LINUX 5 | ## Linux 6 | bin_PROGRAMS = hidapi-hidraw-testgui hidapi-libusb-testgui 7 | 8 | hidapi_hidraw_testgui_SOURCES = test.cpp 9 | hidapi_hidraw_testgui_LDADD = $(top_builddir)/linux/libhidapi-hidraw.la $(LIBS_TESTGUI) 10 | 11 | hidapi_libusb_testgui_SOURCES = test.cpp 12 | hidapi_libusb_testgui_LDADD = $(top_builddir)/libusb/libhidapi-libusb.la $(LIBS_TESTGUI) 13 | else 14 | ## Other OS's 15 | bin_PROGRAMS = hidapi-testgui 16 | 17 | hidapi_testgui_SOURCES = test.cpp 18 | hidapi_testgui_LDADD = $(top_builddir)/$(backend)/libhidapi.la $(LIBS_TESTGUI) 19 | endif 20 | 21 | if OS_DARWIN 22 | hidapi_testgui_SOURCES = test.cpp mac_support_cocoa.m mac_support.h 23 | # Rules for copying the binary and its dependencies into the app bundle. 24 | TestGUI.app/Contents/MacOS/hidapi-testgui$(EXEEXT): hidapi-testgui$(EXEEXT) 25 | $(srcdir)/copy_to_bundle.sh 26 | 27 | all: all-am TestGUI.app/Contents/MacOS/hidapi-testgui$(EXEEXT) 28 | 29 | endif 30 | 31 | EXTRA_DIST = \ 32 | copy_to_bundle.sh \ 33 | Makefile-manual \ 34 | Makefile.freebsd \ 35 | Makefile.linux \ 36 | Makefile.mac \ 37 | Makefile.mingw \ 38 | TestGUI.app.in \ 39 | testgui.sln \ 40 | testgui.vcproj 41 | 42 | distclean-local: 43 | rm -rf TestGUI.app 44 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/testgui/Makefile.freebsd: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-06-01 7 | ########################################### 8 | 9 | all: testgui 10 | 11 | CC=cc 12 | CXX=c++ 13 | COBJS=../libusb/hid.o 14 | CPPOBJS=test.o 15 | OBJS=$(COBJS) $(CPPOBJS) 16 | CFLAGS=-I../hidapi -I/usr/local/include `fox-config --cflags` -Wall -g -c 17 | LDFLAGS= -L/usr/local/lib 18 | LIBS= -lusb -liconv `fox-config --libs` -pthread 19 | 20 | 21 | testgui: $(OBJS) 22 | $(CXX) -Wall -g $^ $(LDFLAGS) -o $@ $(LIBS) 23 | 24 | $(COBJS): %.o: %.c 25 | $(CC) $(CFLAGS) $< -o $@ 26 | 27 | $(CPPOBJS): %.o: %.cpp 28 | $(CXX) $(CFLAGS) $< -o $@ 29 | 30 | clean: 31 | rm *.o testgui 32 | 33 | .PHONY: clean 34 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/testgui/Makefile.linux: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-06-01 7 | ########################################### 8 | 9 | all: testgui 10 | 11 | CC=gcc 12 | CXX=g++ 13 | COBJS=../libusb/hid.o 14 | CPPOBJS=test.o 15 | OBJS=$(COBJS) $(CPPOBJS) 16 | CFLAGS=-I../hidapi -Wall -g -c `fox-config --cflags` `pkg-config libusb-1.0 --cflags` 17 | LIBS=-ludev -lrt -lpthread `fox-config --libs` `pkg-config libusb-1.0 --libs` 18 | 19 | 20 | testgui: $(OBJS) 21 | g++ -Wall -g $^ $(LIBS) -o testgui 22 | 23 | $(COBJS): %.o: %.c 24 | $(CC) $(CFLAGS) $< -o $@ 25 | 26 | $(CPPOBJS): %.o: %.cpp 27 | $(CXX) $(CFLAGS) $< -o $@ 28 | 29 | clean: 30 | rm *.o testgui 31 | 32 | .PHONY: clean 33 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/testgui/Makefile.mac: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-07-03 7 | ########################################### 8 | 9 | all: hidapi-testgui 10 | 11 | CC=gcc 12 | CXX=g++ 13 | COBJS=../mac/hid.o 14 | CPPOBJS=test.o 15 | OBJCOBJS=mac_support_cocoa.o 16 | OBJS=$(COBJS) $(CPPOBJS) $(OBJCOBJS) 17 | CFLAGS=-I../hidapi -Wall -g -c `fox-config --cflags` 18 | LDFLAGS=-L/usr/X11R6/lib 19 | LIBS=`fox-config --libs` -framework IOKit -framework CoreFoundation -framework Cocoa 20 | 21 | 22 | hidapi-testgui: $(OBJS) TestGUI.app 23 | g++ -Wall -g $(OBJS) $(LIBS) $(LDFLAGS) -o hidapi-testgui 24 | ./copy_to_bundle.sh 25 | #cp TestGUI.app/Contents/MacOS/hidapi-testgui TestGUI.app/Contents/MacOS/tg 26 | #cp start.sh TestGUI.app/Contents/MacOS/hidapi-testgui 27 | 28 | $(COBJS): %.o: %.c 29 | $(CC) $(CFLAGS) $< -o $@ 30 | 31 | $(CPPOBJS): %.o: %.cpp 32 | $(CXX) $(CFLAGS) $< -o $@ 33 | 34 | $(OBJCOBJS): %.o: %.m 35 | $(CXX) $(CFLAGS) -x objective-c++ $< -o $@ 36 | 37 | TestGUI.app: TestGUI.app.in 38 | rm -Rf TestGUI.app 39 | mkdir -p TestGUI.app 40 | cp -R TestGUI.app.in/ TestGUI.app 41 | 42 | clean: 43 | rm -f $(OBJS) hidapi-testgui 44 | rm -Rf TestGUI.app 45 | 46 | .PHONY: clean 47 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/testgui/Makefile.mingw: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-06-01 7 | ########################################### 8 | 9 | all: hidapi-testgui 10 | 11 | CC=gcc 12 | CXX=g++ 13 | COBJS=../windows/hid.o 14 | CPPOBJS=test.o 15 | OBJS=$(COBJS) $(CPPOBJS) 16 | CFLAGS=-I../hidapi -I../../hidapi-externals/fox/include -g -c 17 | LIBS= -mwindows -lsetupapi -L../../hidapi-externals/fox/lib -Wl,-Bstatic -lFOX-1.6 -Wl,-Bdynamic -lgdi32 -Wl,--enable-auto-import -static-libgcc -static-libstdc++ -lkernel32 18 | 19 | 20 | hidapi-testgui: $(OBJS) 21 | g++ -g $^ $(LIBS) -o hidapi-testgui 22 | 23 | $(COBJS): %.o: %.c 24 | $(CC) $(CFLAGS) $< -o $@ 25 | 26 | $(CPPOBJS): %.o: %.cpp 27 | $(CXX) $(CFLAGS) $< -o $@ 28 | 29 | clean: 30 | rm -f *.o hidapi-testgui.exe 31 | 32 | .PHONY: clean 33 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/testgui/TestGUI.app.in/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDisplayName 8 | 9 | CFBundleExecutable 10 | hidapi-testgui 11 | CFBundleIconFile 12 | Signal11.icns 13 | CFBundleIdentifier 14 | us.signal11.hidtestgui 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | testgui 19 | CFBundlePackageType 20 | APPL 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | CSResourcesFileMapped 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/testgui/TestGUI.app.in/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPL???? -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/testgui/TestGUI.app.in/Contents/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BodbDearg/phoenix_doom/9648b1cc742634d5aefc18cd3699cd7cb2c0e21c/third_party_libs/libsdl/sdl2/src/hidapi/testgui/TestGUI.app.in/Contents/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/testgui/TestGUI.app.in/Contents/Resources/Signal11.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BodbDearg/phoenix_doom/9648b1cc742634d5aefc18cd3699cd7cb2c0e21c/third_party_libs/libsdl/sdl2/src/hidapi/testgui/TestGUI.app.in/Contents/Resources/Signal11.icns -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/testgui/mac_support.h: -------------------------------------------------------------------------------- 1 | /******************************* 2 | Mac support for HID Test GUI 3 | 4 | Alan Ott 5 | Signal 11 Software 6 | 7 | *******************************/ 8 | 9 | #ifndef MAC_SUPPORT_H__ 10 | #define MAC_SUPPORT_H__ 11 | 12 | extern "C" { 13 | void init_apple_message_system(); 14 | void check_apple_events(); 15 | } 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/testgui/start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xterm -e /Users/alan/work/hidapi/testgui/TestGUI.app/Contents/MacOS/tg 3 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/testgui/testgui.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual C++ Express 2008 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgui", "testgui.vcproj", "{08769AC3-785A-4DDC-BFC7-1775414B7AB7}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {08769AC3-785A-4DDC-BFC7-1775414B7AB7}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {08769AC3-785A-4DDC-BFC7-1775414B7AB7}.Debug|Win32.Build.0 = Debug|Win32 14 | {08769AC3-785A-4DDC-BFC7-1775414B7AB7}.Release|Win32.ActiveCfg = Release|Win32 15 | {08769AC3-785A-4DDC-BFC7-1775414B7AB7}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/windows/Makefile-manual: -------------------------------------------------------------------------------- 1 | 2 | 3 | OS=$(shell uname) 4 | 5 | ifneq (,$(findstring MINGW,$(OS))) 6 | FILE=Makefile.mingw 7 | endif 8 | 9 | ifeq ($(FILE), ) 10 | all: 11 | $(error Your platform ${OS} is not supported at this time.) 12 | endif 13 | 14 | include $(FILE) 15 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/windows/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES = libhidapi.la 2 | libhidapi_la_SOURCES = hid.c 3 | libhidapi_la_LDFLAGS = $(LTLDFLAGS) 4 | AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ 5 | libhidapi_la_LIBADD = $(LIBS) 6 | 7 | hdrdir = $(includedir)/hidapi 8 | hdr_HEADERS = $(top_srcdir)/hidapi/hidapi.h 9 | 10 | EXTRA_DIST = \ 11 | ddk_build \ 12 | hidapi.vcproj \ 13 | hidtest.vcproj \ 14 | Makefile-manual \ 15 | Makefile.mingw \ 16 | hidapi.sln 17 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/windows/Makefile.mingw: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-06-01 7 | ########################################### 8 | 9 | all: hidtest libhidapi.dll 10 | 11 | CC=gcc 12 | CXX=g++ 13 | COBJS=hid.o 14 | CPPOBJS=../hidtest/hidtest.o 15 | OBJS=$(COBJS) $(CPPOBJS) 16 | CFLAGS=-I../hidapi -g -c 17 | LIBS= -lsetupapi 18 | DLL_LDFLAGS = -mwindows -lsetupapi 19 | 20 | hidtest: $(OBJS) 21 | g++ -g $^ $(LIBS) -o hidtest 22 | 23 | libhidapi.dll: $(OBJS) 24 | $(CC) -g $^ $(DLL_LDFLAGS) -o libhidapi.dll 25 | 26 | $(COBJS): %.o: %.c 27 | $(CC) $(CFLAGS) $< -o $@ 28 | 29 | $(CPPOBJS): %.o: %.cpp 30 | $(CXX) $(CFLAGS) $< -o $@ 31 | 32 | clean: 33 | rm *.o ../hidtest/*.o hidtest.exe 34 | 35 | .PHONY: clean 36 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/windows/ddk_build/hidapi.def: -------------------------------------------------------------------------------- 1 | LIBRARY hidapi 2 | EXPORTS 3 | hid_open @1 4 | hid_write @2 5 | hid_read @3 6 | hid_close @4 7 | hid_get_product_string @5 8 | hid_get_manufacturer_string @6 9 | hid_get_serial_number_string @7 10 | hid_get_indexed_string @8 11 | hid_error @9 12 | hid_set_nonblocking @10 13 | hid_enumerate @11 14 | hid_open_path @12 15 | hid_send_feature_report @13 16 | hid_get_feature_report @14 17 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/windows/ddk_build/makefile: -------------------------------------------------------------------------------- 1 | ############################################################################# 2 | # 3 | # Copyright (C) Microsoft Corporation 1995, 1996 4 | # All Rights Reserved. 5 | # 6 | # MAKEFILE for HID directory 7 | # 8 | ############################################################################# 9 | 10 | !IFDEF WIN95_BUILD 11 | 12 | ROOT=..\..\..\.. 13 | 14 | VERSIONLIST = debug retail 15 | IS_32 = TRUE 16 | IS_SDK = TRUE 17 | IS_PRIVATE = TRUE 18 | IS_SDK = TRUE 19 | IS_DDK = TRUE 20 | WIN32 = TRUE 21 | COMMONMKFILE = hidapi.mk 22 | 23 | !include $(ROOT)\dev\master.mk 24 | 25 | 26 | !ELSE 27 | 28 | # 29 | # DO NOT EDIT THIS FILE!!! Edit .\sources. if you want to add a new source 30 | # file to this component. This file merely indirects to the real make file 31 | # that is shared by all the driver components of the Windows NT DDK 32 | # 33 | 34 | !IF DEFINED(_NT_TARGET_VERSION) 35 | ! IF $(_NT_TARGET_VERSION)>=0x501 36 | ! INCLUDE $(NTMAKEENV)\makefile.def 37 | ! ELSE 38 | # Only warn once per directory 39 | ! INCLUDE $(NTMAKEENV)\makefile.plt 40 | ! IF "$(BUILD_PASS)"=="PASS1" 41 | ! message BUILDMSG: Warning : The sample "$(MAKEDIR)" is not valid for the current OS target. 42 | ! ENDIF 43 | ! ENDIF 44 | !ELSE 45 | ! INCLUDE $(NTMAKEENV)\makefile.def 46 | !ENDIF 47 | 48 | !ENDIF 49 | 50 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/hidapi/windows/ddk_build/sources: -------------------------------------------------------------------------------- 1 | TARGETNAME=hidapi 2 | TARGETTYPE=DYNLINK 3 | UMTYPE=console 4 | UMENTRY=main 5 | 6 | MSC_WARNING_LEVEL=/W3 /WX 7 | 8 | TARGETLIBS=$(SDK_LIB_PATH)\hid.lib \ 9 | $(SDK_LIB_PATH)\setupapi.lib \ 10 | $(SDK_LIB_PATH)\kernel32.lib \ 11 | $(SDK_LIB_PATH)\comdlg32.lib 12 | 13 | USE_MSVCRT=1 14 | 15 | INCLUDES= ..\..\hidapi 16 | SOURCES= ..\hid.c \ 17 | 18 | 19 | TARGET_DESTINATION=retail 20 | 21 | MUI=0 22 | MUI_COMMENT="HID Interface DLL" 23 | 24 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/libm/s_copysign.c: -------------------------------------------------------------------------------- 1 | /* 2 | * ==================================================== 3 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 4 | * 5 | * Developed at SunPro, a Sun Microsystems, Inc. business. 6 | * Permission to use, copy, modify, and distribute this 7 | * software is freely granted, provided that this notice 8 | * is preserved. 9 | * ==================================================== 10 | */ 11 | 12 | /* 13 | * copysign(double x, double y) 14 | * copysign(x,y) returns a value with the magnitude of x and 15 | * with the sign bit of y. 16 | */ 17 | 18 | #include "math_libm.h" 19 | #include "math_private.h" 20 | 21 | double copysign(double x, double y) 22 | { 23 | u_int32_t hx,hy; 24 | GET_HIGH_WORD(hx,x); 25 | GET_HIGH_WORD(hy,y); 26 | SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000)); 27 | return x; 28 | } 29 | libm_hidden_def(copysign) 30 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/libm/s_fabs.c: -------------------------------------------------------------------------------- 1 | /* 2 | * ==================================================== 3 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 4 | * 5 | * Developed at SunPro, a Sun Microsystems, Inc. business. 6 | * Permission to use, copy, modify, and distribute this 7 | * software is freely granted, provided that this notice 8 | * is preserved. 9 | * ==================================================== 10 | */ 11 | 12 | /* 13 | * fabs(x) returns the absolute value of x. 14 | */ 15 | 16 | /*#include */ 17 | /* Prevent math.h from defining a colliding inline */ 18 | #undef __USE_EXTERN_INLINES 19 | #include "math_libm.h" 20 | #include "math_private.h" 21 | 22 | double fabs(double x) 23 | { 24 | u_int32_t high; 25 | GET_HIGH_WORD(high,x); 26 | SET_HIGH_WORD(x,high&0x7fffffff); 27 | return x; 28 | } 29 | libm_hidden_def(fabs) 30 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/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 | As of SDL 2.0.6 this file is no longer necessary. 5 | */ 6 | 7 | /* vi: set ts=4 sw=4 expandtab: */ 8 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/main/dummy/SDL_dummy_main.c: -------------------------------------------------------------------------------- 1 | /* 2 | SDL_dummy_main.c, placed in the public domain by Sam Lantinga 3/13/14 3 | */ 4 | #include "../../SDL_internal.h" 5 | 6 | /* Include the SDL main definition header */ 7 | #include "SDL_main.h" 8 | 9 | #ifdef main 10 | #undef main 11 | int 12 | main(int argc, char *argv[]) 13 | { 14 | return (SDL_main(argc, argv)); 15 | } 16 | #else 17 | /* Nothing to do on this platform */ 18 | int 19 | SDL_main_stub_symbol(void); 20 | 21 | int 22 | SDL_main_stub_symbol(void) 23 | { 24 | return 0; 25 | } 26 | #endif 27 | 28 | /* vi: set ts=4 sw=4 expandtab: */ 29 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/main/uikit/SDL_uikit_main.c: -------------------------------------------------------------------------------- 1 | /* 2 | SDL_uiki_main.c, placed in the public domain by Sam Lantinga 3/18/2019 3 | */ 4 | #include "../../SDL_internal.h" 5 | 6 | /* Include the SDL main definition header */ 7 | #include "SDL_main.h" 8 | 9 | #ifdef main 10 | #undef main 11 | #endif 12 | 13 | int 14 | main(int argc, char *argv[]) 15 | { 16 | return SDL_UIKitRunApp(argc, argv, SDL_main); 17 | } 18 | 19 | /* vi: set ts=4 sw=4 expandtab: */ 20 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/main/windows/version.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BodbDearg/phoenix_doom/9648b1cc742634d5aefc18cd3699cd7cb2c0e21c/third_party_libs/libsdl/sdl2/src/main/windows/version.rc -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/main/winrt/SDL2-WinRTResource_BlankCursor.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BodbDearg/phoenix_doom/9648b1cc742634d5aefc18cd3699cd7cb2c0e21c/third_party_libs/libsdl/sdl2/src/main/winrt/SDL2-WinRTResource_BlankCursor.cur -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/main/winrt/SDL2-WinRTResources.rc: -------------------------------------------------------------------------------- 1 | #include "winres.h" 2 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 3 | 5000 CURSOR "SDL2-WinRTResource_BlankCursor.cur" 4 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/power/uikit/SDL_syspower.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_POWER_UIKIT 24 | 25 | #include "SDL_power.h" 26 | 27 | void SDL_UIKit_UpdateBatteryMonitoring(void); 28 | SDL_bool SDL_GetPowerInfo_UIKit(SDL_PowerState * state, int *seconds, int *percent); 29 | 30 | #endif /* SDL_POWER_UIKIT */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/render/direct3d/SDL_shaders_d3d.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | /* D3D9 shader implementation */ 24 | 25 | typedef enum { 26 | SHADER_YUV_JPEG, 27 | SHADER_YUV_BT601, 28 | SHADER_YUV_BT709, 29 | NUM_SHADERS 30 | } D3D9_Shader; 31 | 32 | extern HRESULT D3D9_CreatePixelShader(IDirect3DDevice9 *d3dDevice, D3D9_Shader shader, IDirect3DPixelShader9 **pixelShader); 33 | 34 | /* vi: set ts=4 sw=4 expandtab: */ 35 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/render/metal/build-metal-shaders.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -x 4 | set -e 5 | cd `dirname "$0"` 6 | 7 | generate_shaders() 8 | { 9 | platform=$1 10 | /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin/metal -std=$platform-metal1.1 -Wall -O3 -o ./sdl.air ./SDL_shaders_metal.metal || exit $? 11 | /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin/metal-ar rc sdl.metalar sdl.air || exit $? 12 | /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin/metallib -o sdl.metallib sdl.metalar || exit $? 13 | xxd -i sdl.metallib | perl -w -p -e 's/\Aunsigned /const unsigned /;' >./SDL_shaders_metal_$platform.h 14 | rm -f sdl.air sdl.metalar sdl.metallib 15 | } 16 | 17 | generate_shaders osx 18 | generate_shaders ios 19 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/render/software/SDL_drawline.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_drawline_h_ 23 | #define SDL_drawline_h_ 24 | 25 | #include "../../SDL_internal.h" 26 | 27 | 28 | extern int SDL_DrawLine(SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color); 29 | extern int SDL_DrawLines(SDL_Surface * dst, const SDL_Point * points, int count, Uint32 color); 30 | 31 | #endif /* SDL_drawline_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/render/software/SDL_drawpoint.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_drawpoint_h_ 23 | #define SDL_drawpoint_h_ 24 | 25 | #include "../../SDL_internal.h" 26 | 27 | 28 | extern int SDL_DrawPoint(SDL_Surface * dst, int x, int y, Uint32 color); 29 | extern int SDL_DrawPoints(SDL_Surface * dst, const SDL_Point * points, int count, Uint32 color); 30 | 31 | #endif /* SDL_drawpoint_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/render/software/SDL_render_sw_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_render_sw_c_h_ 23 | #define SDL_render_sw_c_h_ 24 | 25 | extern SDL_Renderer * SW_CreateRendererForSurface(SDL_Surface * surface); 26 | 27 | #endif /* SDL_render_sw_c_h_ */ 28 | 29 | /* vi: set ts=4 sw=4 expandtab: */ 30 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/sensor/android/SDL_androidsensor.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_config.h" 22 | 23 | /* The private structure used to keep track of a sensor */ 24 | struct sensor_hwdata 25 | { 26 | ASensorRef asensor; 27 | ASensorEventQueue *eventqueue; 28 | }; 29 | 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/sensor/coremotion/SDL_coremotionsensor.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_config.h" 22 | 23 | /* The private structure used to keep track of a sensor */ 24 | struct sensor_hwdata 25 | { 26 | float data[3]; 27 | }; 28 | 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/sensor/dummy/SDL_dummysensor.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_config.h" 22 | 23 | /* vi: set ts=4 sw=4 expandtab: */ 24 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/test/SDL_test_font.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BodbDearg/phoenix_doom/9648b1cc742634d5aefc18cd3699cd7cb2c0e21c/third_party_libs/libsdl/sdl2/src/test/SDL_test_font.c -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/thread/generic/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | /* vi: set ts=4 sw=4 expandtab: */ 23 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/thread/generic/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | /* Stub until we implement threads on this platform */ 24 | typedef int SYS_ThreadHandle; 25 | 26 | /* vi: set ts=4 sw=4 expandtab: */ 27 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/thread/generic/SDL_systls.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | #include "../SDL_thread_c.h" 24 | 25 | 26 | SDL_TLSData * 27 | SDL_SYS_GetTLSData(void) 28 | { 29 | return SDL_Generic_GetTLSData(); 30 | } 31 | 32 | int 33 | SDL_SYS_SetTLSData(SDL_TLSData *data) 34 | { 35 | return SDL_Generic_SetTLSData(data); 36 | } 37 | 38 | /* vi: set ts=4 sw=4 expandtab: */ 39 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/thread/psp/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | /* vi: set ts=4 sw=4 expandtab: */ 23 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/thread/psp/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 23 | 24 | typedef SceUID SYS_ThreadHandle; 25 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/thread/pthread/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/thread/pthread/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/thread/stdcpp/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_config.h" 22 | 23 | #include 24 | 25 | struct SDL_mutex 26 | { 27 | std::recursive_mutex cpp_mutex; 28 | }; 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/thread/stdcpp/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_config.h" 22 | 23 | /* For a thread handle, use a void pointer to a std::thread */ 24 | typedef void * SYS_ThreadHandle; 25 | 26 | /* vi: set ts=4 sw=4 expandtab: */ 27 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/thread/windows/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_systhread_c_h_ 24 | #define SDL_systhread_c_h_ 25 | 26 | #include "../../core/windows/SDL_windows.h" 27 | 28 | typedef HANDLE SYS_ThreadHandle; 29 | 30 | #endif /* SDL_systhread_c_h_ */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/SDL_RLEaccel.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BodbDearg/phoenix_doom/9648b1cc742634d5aefc18cd3699cd7cb2c0e21c/third_party_libs/libsdl/sdl2/src/video/SDL_RLEaccel.c -------------------------------------------------------------------------------- /third_party_libs/libsdl/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-2019 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 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/SDL_blit_copy.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_blit_copy_h_ 23 | #define SDL_blit_copy_h_ 24 | 25 | void SDL_BlitCopy(SDL_BlitInfo * info); 26 | 27 | #endif /* SDL_blit_copy_h_ */ 28 | 29 | /* vi: set ts=4 sw=4 expandtab: */ 30 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/SDL_blit_slow.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_blit_slow_h_ 23 | #define SDL_blit_slow_h_ 24 | 25 | #include "../SDL_internal.h" 26 | 27 | extern void SDL_Blit_Slow(SDL_BlitInfo * info); 28 | 29 | #endif /* SDL_blit_slow_h_ */ 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/SDL_rect_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_rect_c_h_ 23 | #define SDL_rect_c_h_ 24 | 25 | #include "../SDL_internal.h" 26 | 27 | extern SDL_bool SDL_GetSpanEnclosingRect(int width, int height, int numrects, const SDL_Rect * rects, SDL_Rect *span); 28 | 29 | #endif /* SDL_rect_c_h_ */ 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/android/SDL_androidclipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/android/SDL_androidevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_Blocking(_THIS); 26 | extern void Android_PumpEvents_NonBlocking(_THIS); 27 | 28 | /* vi: set ts=4 sw=4 expandtab: */ 29 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/android/SDL_androidmessagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/android/SDL_androidmouse.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_InitMouse(void); 28 | extern void Android_OnMouse(SDL_Window *window, int button, int action, float x, float y, SDL_bool relative); 29 | extern void Android_QuitMouse(void); 30 | 31 | #endif /* SDL_androidmouse_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/android/SDL_androidtouch.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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(SDL_Window *window, 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 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/cocoa/SDL_cocoaevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_cocoaevents_h_ 24 | #define SDL_cocoaevents_h_ 25 | 26 | extern void Cocoa_RegisterApp(void); 27 | extern void Cocoa_PumpEvents(_THIS); 28 | extern void Cocoa_SuspendScreenSaver(_THIS); 29 | 30 | #endif /* SDL_cocoaevents_h_ */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/cocoa/SDL_cocoamessagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_COCOA 24 | 25 | extern int Cocoa_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid); 26 | 27 | #endif /* SDL_VIDEO_DRIVER_COCOA */ 28 | 29 | /* vi: set ts=4 sw=4 expandtab: */ 30 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/directfb/SDL_DirectFB_events.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_DirectFB_events_h_ 23 | #define SDL_DirectFB_events_h_ 24 | 25 | #include "../SDL_sysvideo.h" 26 | 27 | /* Functions to be exported */ 28 | extern void DirectFB_InitKeyboard(_THIS); 29 | extern void DirectFB_QuitKeyboard(_THIS); 30 | extern void DirectFB_PumpEventsWindow(_THIS); 31 | 32 | #endif /* SDL_DirectFB_events_h_ */ 33 | 34 | /* vi: set ts=4 sw=4 expandtab: */ 35 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/directfb/SDL_DirectFB_render.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | /* SDL surface based renderer implementation */ 24 | 25 | /* vi: set ts=4 sw=4 expandtab: */ 26 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/dummy/SDL_nullevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_nullevents_c_h_ 23 | #define SDL_nullevents_c_h_ 24 | 25 | #include "../../SDL_internal.h" 26 | 27 | #include "SDL_nullvideo.h" 28 | 29 | extern void DUMMY_PumpEvents(_THIS); 30 | 31 | #endif /* SDL_nullevents_c_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/dummy/SDL_nullvideo.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_nullvideo_h_ 24 | #define SDL_nullvideo_h_ 25 | 26 | #include "../SDL_sysvideo.h" 27 | 28 | #endif /* SDL_nullvideo_h_ */ 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/haiku/SDL_bclipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | #ifndef SDL_BCLIPBOARD_H 25 | #define SDL_BCLIPBOARD_H 26 | 27 | extern int HAIKU_SetClipboardText(_THIS, const char *text); 28 | extern char *HAIKU_GetClipboardText(_THIS); 29 | extern SDL_bool HAIKU_HasClipboardText(_THIS); 30 | 31 | #endif 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/haiku/SDL_bevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_BEVENTS_H 23 | #define SDL_BEVENTS_H 24 | 25 | #include "../SDL_sysvideo.h" 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | extern void HAIKU_PumpEvents(_THIS); 32 | 33 | #ifdef __cplusplus 34 | } 35 | #endif 36 | 37 | #endif 38 | 39 | /* vi: set ts=4 sw=4 expandtab: */ 40 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/khronos/GLES2/gl2platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl2platform_h_ 2 | #define __gl2platform_h_ 3 | 4 | /* 5 | ** Copyright (c) 2017 The Khronos Group Inc. 6 | ** 7 | ** Licensed under the Apache License, Version 2.0 (the "License"); 8 | ** you may not use this file except in compliance with the License. 9 | ** You may obtain a copy of the License at 10 | ** 11 | ** http://www.apache.org/licenses/LICENSE-2.0 12 | ** 13 | ** Unless required by applicable law or agreed to in writing, software 14 | ** distributed under the License is distributed on an "AS IS" BASIS, 15 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | ** See the License for the specific language governing permissions and 17 | ** limitations under the License. 18 | */ 19 | 20 | /* Platform-specific types and definitions for OpenGL ES 2.X gl2.h 21 | * 22 | * Adopters may modify khrplatform.h and this file to suit their platform. 23 | * Please contribute modifications back to Khronos as pull requests on the 24 | * public github repository: 25 | * https://github.com/KhronosGroup/OpenGL-Registry 26 | */ 27 | 28 | #include 29 | 30 | #ifndef GL_APICALL 31 | #define GL_APICALL KHRONOS_APICALL 32 | #endif 33 | 34 | #ifndef GL_APIENTRY 35 | #define GL_APIENTRY KHRONOS_APIENTRY 36 | #endif 37 | 38 | #endif /* __gl2platform_h_ */ 39 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/kmsdrm/SDL_kmsdrmevents.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_KMSDRM 25 | 26 | #include "SDL_kmsdrmvideo.h" 27 | #include "SDL_kmsdrmevents.h" 28 | 29 | #ifdef SDL_INPUT_LINUXEV 30 | #include "../../core/linux/SDL_evdev.h" 31 | #endif 32 | 33 | void KMSDRM_PumpEvents(_THIS) 34 | { 35 | #ifdef SDL_INPUT_LINUXEV 36 | SDL_EVDEV_Poll(); 37 | #endif 38 | 39 | } 40 | 41 | #endif /* SDL_VIDEO_DRIVER_KMSDRM */ 42 | 43 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/kmsdrm/SDL_kmsdrmevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | #ifndef SDL_kmsdrmevents_h_ 25 | #define SDL_kmsdrmevents_h_ 26 | 27 | extern void KMSDRM_PumpEvents(_THIS); 28 | extern void KMSDRM_EventInit(_THIS); 29 | extern void KMSDRM_EventQuit(_THIS); 30 | 31 | #endif /* SDL_kmsdrmevents_h_ */ 32 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/nacl/SDL_naclevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_naclevents_c_h_ 24 | #define SDL_naclevents_c_h_ 25 | 26 | #include "SDL_naclvideo.h" 27 | 28 | extern void NACL_PumpEvents(_THIS); 29 | 30 | #endif /* SDL_naclevents_c_h_ */ 31 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/nacl/SDL_naclglue.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_NACL 24 | #endif /* SDL_VIDEO_DRIVER_NACL */ 25 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/nacl/SDL_naclwindow.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_naclwindow_h_ 24 | #define SDL_naclwindow_h_ 25 | 26 | extern int NACL_CreateWindow(_THIS, SDL_Window * window); 27 | extern void NACL_SetWindowTitle(_THIS, SDL_Window * window); 28 | extern void NACL_DestroyWindow(_THIS, SDL_Window * window); 29 | 30 | #endif /* SDL_naclwindow_h_ */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/pandora/SDL_pandora_events.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_PANDORA 24 | 25 | /* Being a null driver, there's no event stream. We just define stubs for 26 | most of the API. */ 27 | 28 | #include "../../events/SDL_events_c.h" 29 | 30 | void 31 | PND_PumpEvents(_THIS) 32 | { 33 | /* Not implemented. */ 34 | } 35 | 36 | #endif /* SDL_VIDEO_DRIVER_PANDORA */ 37 | 38 | /* vi: set ts=4 sw=4 expandtab: */ 39 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/pandora/SDL_pandora_events.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 PND_PumpEvents(_THIS); 24 | 25 | /* vi: set ts=4 sw=4 expandtab: */ 26 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/psp/SDL_pspevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_pspvideo.h" 23 | 24 | /* Variables and functions exported by SDL_sysevents.c to other parts 25 | of the native video subsystem (SDL_sysvideo.c) 26 | */ 27 | extern void PSP_InitOSKeymap(_THIS); 28 | extern void PSP_PumpEvents(_THIS); 29 | 30 | /* end of SDL_pspevents_c.h ... */ 31 | 32 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/psp/SDL_pspmouse_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_pspvideo.h" 23 | 24 | /* Functions to be exported */ 25 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/raspberry/SDL_rpievents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_rpievents_c_h_ 23 | #define SDL_rpievents_c_h_ 24 | 25 | #include "SDL_rpivideo.h" 26 | 27 | void RPI_PumpEvents(_THIS); 28 | void RPI_EventInit(_THIS); 29 | void RPI_EventQuit(_THIS); 30 | 31 | #endif /* SDL_rpievents_c_h_ */ 32 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/uikit/SDL_uikitevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_uikitevents_h_ 22 | #define SDL_uikitevents_h_ 23 | 24 | #include "../SDL_sysvideo.h" 25 | 26 | extern void UIKit_PumpEvents(_THIS); 27 | 28 | #endif /* SDL_uikitevents_h_ */ 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/uikit/SDL_uikitmessagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_UIKIT 24 | 25 | extern SDL_bool UIKit_ShowingMessageBox(void); 26 | 27 | extern int UIKit_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid); 28 | 29 | #endif /* SDL_VIDEO_DRIVER_UIKIT */ 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/wayland/SDL_waylandclipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_waylandclipboard_h_ 24 | #define SDL_waylandclipboard_h_ 25 | 26 | extern int Wayland_SetClipboardText(_THIS, const char *text); 27 | extern char *Wayland_GetClipboardText(_THIS); 28 | extern SDL_bool Wayland_HasClipboardText(_THIS); 29 | 30 | #endif /* SDL_waylandclipboard_h_ */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/wayland/SDL_waylandmouse.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 | #include "SDL_mouse.h" 24 | #include "SDL_waylandvideo.h" 25 | 26 | #if SDL_VIDEO_DRIVER_WAYLAND 27 | 28 | extern void Wayland_InitMouse(void); 29 | extern void Wayland_FiniMouse(void); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/windows/SDL_windowsframebuffer.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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 int WIN_CreateWindowFramebuffer(_THIS, SDL_Window * window, Uint32 * format, void ** pixels, int *pitch); 24 | extern int WIN_UpdateWindowFramebuffer(_THIS, SDL_Window * window, const SDL_Rect * rects, int numrects); 25 | extern void WIN_DestroyWindowFramebuffer(_THIS, SDL_Window * window); 26 | 27 | /* vi: set ts=4 sw=4 expandtab: */ 28 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/windows/SDL_windowsmessagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_WINDOWS 24 | 25 | extern int WIN_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid); 26 | 27 | #endif /* SDL_VIDEO_DRIVER_WINDOWS */ 28 | 29 | /* vi: set ts=4 sw=4 expandtab: */ 30 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/windows/SDL_windowsmouse.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_windowsmouse_h_ 24 | #define SDL_windowsmouse_h_ 25 | 26 | extern HCURSOR SDL_cursor; 27 | 28 | extern void WIN_InitMouse(_THIS); 29 | extern void WIN_QuitMouse(_THIS); 30 | 31 | #endif /* SDL_windowsmouse_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/winrt/SDL_winrtmessagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_WINRT 24 | 25 | extern int WINRT_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid); 26 | 27 | #endif /* SDL_VIDEO_DRIVER_WINRT */ 28 | 29 | /* vi: set ts=4 sw=4 expandtab: */ 30 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/winrt/SDL_winrtmouse_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_config.h" 22 | 23 | #ifndef SDL_winrtmouse_h_ 24 | #define SDL_winrtmouse_h_ 25 | 26 | #ifdef __cplusplus 27 | extern "C" { 28 | #endif 29 | 30 | extern void WINRT_InitMouse(_THIS); 31 | extern void WINRT_QuitMouse(_THIS); 32 | extern SDL_bool WINRT_UsingRelativeMouseMode; 33 | 34 | #ifdef __cplusplus 35 | } 36 | #endif 37 | 38 | #endif /* SDL_winrtmouse_h_ */ 39 | 40 | /* vi: set ts=4 sw=4 expandtab: */ 41 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/x11/SDL_x11clipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_x11clipboard_h_ 24 | #define SDL_x11clipboard_h_ 25 | 26 | extern int X11_SetClipboardText(_THIS, const char *text); 27 | extern char *X11_GetClipboardText(_THIS); 28 | extern SDL_bool X11_HasClipboardText(_THIS); 29 | extern Atom X11_GetSDLCutBufferClipboardType(Display *display); 30 | 31 | #endif /* SDL_x11clipboard_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/x11/SDL_x11events.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_x11events_h_ 24 | #define SDL_x11events_h_ 25 | 26 | extern void X11_PumpEvents(_THIS); 27 | extern void X11_SuspendScreenSaver(_THIS); 28 | 29 | #endif /* SDL_x11events_h_ */ 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/x11/SDL_x11messagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_x11messagebox_h_ 23 | #define SDL_x11messagebox_h_ 24 | 25 | #if SDL_VIDEO_DRIVER_X11 26 | 27 | extern int X11_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid); 28 | 29 | #endif /* SDL_VIDEO_DRIVER_X11 */ 30 | 31 | #endif /* SDL_x11messagebox_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/x11/SDL_x11mouse.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_x11mouse_h_ 24 | #define SDL_x11mouse_h_ 25 | 26 | extern void X11_InitMouse(_THIS); 27 | extern void X11_QuitMouse(_THIS); 28 | 29 | #endif /* SDL_x11mouse_h_ */ 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /third_party_libs/libsdl/sdl2/src/video/x11/SDL_x11touch.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2019 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_x11touch_h_ 24 | #define SDL_x11touch_h_ 25 | 26 | extern void X11_InitTouch(_THIS); 27 | extern void X11_QuitTouch(_THIS); 28 | extern void X11_ResetTouch(_THIS); 29 | 30 | #endif /* SDL_x11touch_h_ */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/AIFF and AIFC File Format/AIFC to Wav SDX2 format decoder/About.txt: -------------------------------------------------------------------------------- 1 | Where this code came from: 2 | http://sed.free.fr/aifc2wav.html 3 | -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/AIFF and AIFC File Format/AIFF-1.3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BodbDearg/phoenix_doom/9648b1cc742634d5aefc18cd3699cd7cb2c0e21c/thirdy_party_docs_and_tools/AIFF and AIFC File Format/AIFF-1.3.pdf -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/AIFF and AIFC File Format/AIFF-C.9.26.91.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BodbDearg/phoenix_doom/9648b1cc742634d5aefc18cd3699cd7cb2c0e21c/thirdy_party_docs_and_tools/AIFF and AIFC File Format/AIFF-C.9.26.91.pdf -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/Cel File Format/Source Of Info.txt: -------------------------------------------------------------------------------- 1 | Source of these pieces of info: 2 | 3 | http://altmer.arts-union.ru/3DO/docs/DevDocs/ppgfldr/smmfldr/cdmfldr/08CDM001.html 4 | https://github.com/ewhac/gimp-plugin-3docel 5 | -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/Homogenous Clipping/3D Clipping in Homogeneous Coordinates - Development Chaos Theory.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BodbDearg/phoenix_doom/9648b1cc742634d5aefc18cd3699cd7cb2c0e21c/thirdy_party_docs_and_tools/Homogenous Clipping/3D Clipping in Homogeneous Coordinates - Development Chaos Theory.pdf -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/OperaFS Tools And Source/3do-tools/bin/OperaTool/OperaTool.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BodbDearg/phoenix_doom/9648b1cc742634d5aefc18cd3699cd7cb2c0e21c/thirdy_party_docs_and_tools/OperaFS Tools And Source/3do-tools/bin/OperaTool/OperaTool.exe -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/OperaFS Tools And Source/3do-tools/src/3DOHomebrewSigning.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "3DOHomebrewSigning", "3DOHomebrewSigning\3DOHomebrewSigning.vcxproj", "{DCC18E56-A06A-44F9-878C-4CE9B3777055}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {DCC18E56-A06A-44F9-878C-4CE9B3777055}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {DCC18E56-A06A-44F9-878C-4CE9B3777055}.Debug|Win32.Build.0 = Debug|Win32 14 | {DCC18E56-A06A-44F9-878C-4CE9B3777055}.Release|Win32.ActiveCfg = Release|Win32 15 | {DCC18E56-A06A-44F9-878C-4CE9B3777055}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/OperaFS Tools And Source/3do-tools/src/3DOHomebrewSigning/3DOHomebrewSigning.cpp: -------------------------------------------------------------------------------- 1 | // 3DOHomebrewSigning.cpp : Defines the entry point for the console application. 2 | // 3 | 4 | #include 5 | 6 | #include "stdafx.h" 7 | 8 | #include "3DODisk.h" 9 | 10 | int main(int argc, char *argv[]) 11 | { 12 | bool bGenRomTags = false; 13 | 14 | printf("3DO homebrew encryption v0.6a\n"); 15 | printf("\tBy Charles Doty\n\n"); 16 | 17 | if (argc < 2) 18 | { 19 | printf("Usage: 3DOHomebrewSigning [genromtags] File.iso\n"); 20 | exit(1); 21 | } 22 | 23 | C3DODisk *p3DODisk = new C3DODisk(); 24 | 25 | // Set the generate rom tags flag 26 | if (!strcmp("genromtags", argv[1])) 27 | { 28 | bGenRomTags = true; 29 | } 30 | 31 | // Set the iso name, and parse the needed info 32 | if (false == p3DODisk->SetISO(argv[argc - 1], bGenRomTags)) 33 | { 34 | // Some error happened 35 | return 1; 36 | } 37 | 38 | // Write changes 39 | p3DODisk->WriteChanges(); 40 | } 41 | -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/OperaFS Tools And Source/3do-tools/src/3DOHomebrewSigning/Utilities.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | // Calculate MD5 checksum 6 | void CalculateMD5(BYTE *_pBuffer, int _iDataSize, BYTE *_pMD5); 7 | 8 | // Calculate RSA 9 | void CalculateRSA(char *pMessage, BYTE *_pRSA, bool _bUseKey2 = false); 10 | -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/OperaFS Tools And Source/3do-tools/src/3DOHomebrewSigning/global.h: -------------------------------------------------------------------------------- 1 | /* GLOBAL.H - RSAREF types and constants 2 | 3 | /* Copyright (C) RSA Laboratories, a division of RSA Data Security, 4 | Inc., created 1991. All rights reserved. 5 | */ 6 | 7 | #ifndef _GLOBAL_H_ 8 | #define _GLOBAL_H_ 1 9 | 10 | /* PROTOTYPES should be set to one if and only if the compiler supports 11 | function argument prototyping. 12 | The following makes PROTOTYPES default to 1 if it has not already been 13 | defined as 0 with C compiler flags. 14 | */ 15 | #ifndef PROTOTYPES 16 | #define PROTOTYPES 1 17 | #endif 18 | 19 | /* POINTER defines a generic pointer type */ 20 | typedef unsigned char *POINTER; 21 | 22 | /* UINT2 defines a two byte word */ 23 | typedef unsigned short int UINT2; 24 | 25 | /* UINT4 defines a four byte word */ 26 | typedef unsigned long int UINT4; 27 | 28 | #ifndef NULL_PTR 29 | #define NULL_PTR ((POINTER)0) 30 | #endif 31 | 32 | #ifndef UNUSED_ARG 33 | #define UNUSED_ARG(x) x = *(&x); 34 | #endif 35 | 36 | /* PROTO_LIST is defined depending on how PROTOTYPES is defined above. 37 | If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it 38 | returns an empty list. 39 | */ 40 | #if PROTOTYPES 41 | #define PROTO_LIST(list) list 42 | #else 43 | #define PROTO_LIST(list) () 44 | #endif 45 | 46 | #endif /* end _GLOBAL_H_ */ 47 | -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/OperaFS Tools And Source/3do-tools/src/3DOHomebrewSigning/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // 3DOHomebrewSigning.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/OperaFS Tools And Source/3do-tools/src/3DOHomebrewSigning/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | #include 11 | #include 12 | 13 | 14 | 15 | // TODO: reference additional headers your program requires here 16 | -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/OperaFS Tools And Source/3do-tools/src/3DOHomebrewSigning/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/OperaFS Tools And Source/3do-tools/src/OperaTool.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OperaTool", "OperaTool\OperaTool.csproj", "{9E74E9B8-6423-4326-8880-57B4B8284EE8}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {9E74E9B8-6423-4326-8880-57B4B8284EE8}.Debug|x86.ActiveCfg = Debug|x86 13 | {9E74E9B8-6423-4326-8880-57B4B8284EE8}.Debug|x86.Build.0 = Debug|x86 14 | {9E74E9B8-6423-4326-8880-57B4B8284EE8}.Release|x86.ActiveCfg = Release|x86 15 | {9E74E9B8-6423-4326-8880-57B4B8284EE8}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/OperaFS Tools And Source/3do-tools/src/OperaTool/Util.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.IO; 6 | 7 | namespace OperaTool 8 | { 9 | class Util 10 | { 11 | static public UInt32 ArrayToUint32(Byte[] array) 12 | { 13 | // Reverse if we are on a little endian architecture. 14 | if (BitConverter.IsLittleEndian) 15 | Array.Reverse(array); 16 | 17 | return BitConverter.ToUInt32(array, 0); 18 | } 19 | 20 | static public Int32 ArrayToInt32(Byte[] array) 21 | { 22 | // Reverse if we are on a little endian architecture. 23 | if (BitConverter.IsLittleEndian) 24 | Array.Reverse(array); 25 | 26 | return BitConverter.ToInt32(array, 0); 27 | } 28 | 29 | static public Byte[] UInt32ToArray(UInt32 number) 30 | { 31 | Byte[] array = BitConverter.GetBytes(number); 32 | 33 | // Reverse if we are on a little endian architecture. 34 | if (BitConverter.IsLittleEndian) 35 | Array.Reverse(array); 36 | 37 | return array; 38 | } 39 | 40 | static public Byte[] Int32ToArray(Int32 number) 41 | { 42 | Byte[] array = BitConverter.GetBytes(number); 43 | 44 | // Reverse if we are on a little endian architecture. 45 | if (BitConverter.IsLittleEndian) 46 | Array.Reverse(array); 47 | 48 | return array; 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/OperaFS Tools And Source/OperaFS[De]Compiler/OperaFS.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BodbDearg/phoenix_doom/9648b1cc742634d5aefc18cd3699cd7cb2c0e21c/thirdy_party_docs_and_tools/OperaFS Tools And Source/OperaFS[De]Compiler/OperaFS.exe -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/OperaFS Tools And Source/OperaFS[De]Compiler/Readme.txt: -------------------------------------------------------------------------------- 1 | De-Compile w/ Radio Buttons: 2 | Choose either to extract the contents of a 3DO CD-Image or 3DO CD. 3 | Choosing the CD option will bring out a pull down menu to select the 4 | CD-ROM drive letter that contains the 3DO CD. While the extract CD 5 | option will give the option to choose a directory where it will 6 | extract the files to a "PARCE_CD-ROM" directory, Choosing to 7 | extract from a CD Image extracts files into the root directory 8 | where the CD-Image is contained inside a directory named 9 | "PARCE_*IMAGE NAME*". 10 | 11 | Compile: 12 | Takes a directory with 3DO game files and compresses 13 | them into an OperaFS formatted CD Image. 14 | 15 | Additional Resources: 16 | Gives you more detailed log files in the 17 | root of the extracted directory with the ".spy" extension 18 | 19 | Extract "Disc Label": 20 | Extracts the header of the Image or CD and puts it in the 21 | root of the extracted directory -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/OperaFS Tools And Source/OperaFS[De]Compiler/operafs-1.0b2.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BodbDearg/phoenix_doom/9648b1cc742634d5aefc18cd3699cd7cb2c0e21c/thirdy_party_docs_and_tools/OperaFS Tools And Source/OperaFS[De]Compiler/operafs-1.0b2.tar.gz -------------------------------------------------------------------------------- /thirdy_party_docs_and_tools/OperaFS Tools And Source/OperaFS[De]Compiler/zlib1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BodbDearg/phoenix_doom/9648b1cc742634d5aefc18cd3699cd7cb2c0e21c/thirdy_party_docs_and_tools/OperaFS Tools And Source/OperaFS[De]Compiler/zlib1.dll --------------------------------------------------------------------------------