├── .clang-format ├── .gitignore ├── LICENSES.3rdpaty.txt ├── README-SDL.txt ├── README.md ├── SDL2.dll ├── TODO.txt ├── bsdf.h ├── bvh_accel.cc ├── bvh_accel.h ├── camera.cc ├── camera.h ├── common.h ├── compat ├── changelog.txt ├── inttypes.h └── stdint.h ├── config.json ├── cornellbox_suzanne.eson ├── cornellbox_suzanne.material.json ├── cornellbox_suzanne.mtl ├── cornellbox_suzanne.obj ├── deps ├── SDL2-2.0.3 │ ├── Android.mk │ ├── BUGS.txt │ ├── CMakeLists.txt │ ├── COPYING.txt │ ├── CREDITS.txt │ ├── INSTALL.txt │ ├── Makefile.in │ ├── Makefile.minimal │ ├── Makefile.pandora │ ├── Makefile.psp │ ├── Makefile.wiz │ ├── README-SDL.txt │ ├── README-android.txt │ ├── README-cmake.txt │ ├── README-directfb.txt │ ├── README-dynapi.txt │ ├── README-gesture.txt │ ├── README-hg.txt │ ├── README-ios.txt │ ├── README-linux.txt │ ├── README-macosx.txt │ ├── README-pandora.txt │ ├── README-platforms.txt │ ├── README-porting.txt │ ├── README-psp.txt │ ├── README-raspberrypi.txt │ ├── README-touch.txt │ ├── README-wince.txt │ ├── README-windows.txt │ ├── README.txt │ ├── SDL2.spec │ ├── SDL2.spec.in │ ├── TODO.txt │ ├── VisualC.html │ ├── VisualC │ │ ├── SDL │ │ │ ├── SDL_VS2008.vcproj │ │ │ ├── SDL_VS2010.vcxproj │ │ │ ├── SDL_VS2012.vcxproj │ │ │ └── SDL_VS2013.vcxproj │ │ ├── SDL_VS2008.sln │ │ ├── SDL_VS2010.sln │ │ ├── SDL_VS2010EE.sln │ │ ├── SDL_VS2012.sln │ │ ├── SDL_VS2012EE.sln │ │ ├── SDL_VS2013.sln │ │ ├── SDLmain │ │ │ ├── SDLmain_VS2008.vcproj │ │ │ ├── SDLmain_VS2010.vcxproj │ │ │ ├── SDLmain_VS2012.vcxproj │ │ │ └── SDLmain_VS2013.vcxproj │ │ ├── SDLtest │ │ │ ├── SDLtest_VS2008.vcproj │ │ │ ├── SDLtest_VS2010.vcxproj │ │ │ ├── SDLtest_VS2012.vcxproj │ │ │ └── SDLtest_VS2013.vcxproj │ │ ├── clean.sh │ │ ├── tests │ │ │ ├── checkkeys │ │ │ │ ├── checkkeys_VS2008.vcproj │ │ │ │ ├── checkkeys_VS2010.vcxproj │ │ │ │ ├── checkkeys_VS2012.vcxproj │ │ │ │ └── checkkeys_VS2013.vcxproj │ │ │ ├── loopwave │ │ │ │ ├── loopwave_VS2008.vcproj │ │ │ │ ├── loopwave_VS2010.vcxproj │ │ │ │ ├── loopwave_VS2012.vcxproj │ │ │ │ └── loopwave_VS2013.vcxproj │ │ │ ├── testatomic │ │ │ │ ├── testatomic_VS2008.vcproj │ │ │ │ ├── testatomic_VS2010.vcxproj │ │ │ │ ├── testatomic_VS2012.vcxproj │ │ │ │ └── testatomic_VS2013.vcxproj │ │ │ ├── testautomation │ │ │ │ ├── testautomation_VS2008.vcproj │ │ │ │ ├── testautomation_vs2010.vcxproj │ │ │ │ ├── testautomation_vs2012.vcxproj │ │ │ │ └── testautomation_vs2013.vcxproj │ │ │ ├── testdraw2 │ │ │ │ ├── testdraw2_VS2008.vcproj │ │ │ │ ├── testdraw2_VS2010.vcxproj │ │ │ │ ├── testdraw2_VS2012.vcxproj │ │ │ │ └── testdraw2_VS2013.vcxproj │ │ │ ├── testfile │ │ │ │ ├── testfile_VS2008.vcproj │ │ │ │ ├── testfile_VS2010.vcxproj │ │ │ │ ├── testfile_VS2012.vcxproj │ │ │ │ └── testfile_VS2013.vcxproj │ │ │ ├── testgamecontroller │ │ │ │ ├── testgamecontroller_VS2010.vcxproj │ │ │ │ ├── testgamecontroller_VS2012.vcxproj │ │ │ │ └── testgamecontroller_VS2013.vcxproj │ │ │ ├── testgesture │ │ │ │ ├── testgesture_VS2008.vcproj │ │ │ │ ├── testgesture_VS2010.vcxproj │ │ │ │ ├── testgesture_VS2012.vcxproj │ │ │ │ └── testgesture_VS2013.vcxproj │ │ │ ├── testgl2 │ │ │ │ ├── testgl2_VS2008.vcproj │ │ │ │ ├── testgl2_VS2010.vcxproj │ │ │ │ ├── testgl2_VS2012.vcxproj │ │ │ │ └── testgl2_VS2013.vcxproj │ │ │ ├── testgles2 │ │ │ │ ├── testgles2_VS2008.vcproj │ │ │ │ ├── testgles2_VS2010.vcxproj │ │ │ │ ├── testgles2_VS2012.vcxproj │ │ │ │ └── testgles2_VS2013.vcxproj │ │ │ ├── testjoystick │ │ │ │ ├── testjoystick_VS2008.vcproj │ │ │ │ ├── testjoystick_VS2010.vcxproj │ │ │ │ ├── testjoystick_VS2012.vcxproj │ │ │ │ └── testjoystick_VS2013.vcxproj │ │ │ ├── testoverlay2 │ │ │ │ ├── testoverlay2_VS2008.vcproj │ │ │ │ ├── testoverlay2_VS2010.vcxproj │ │ │ │ ├── testoverlay2_VS2012.vcxproj │ │ │ │ └── testoverlay2_VS2013.vcxproj │ │ │ ├── testplatform │ │ │ │ ├── testplatform_VS2008.vcproj │ │ │ │ ├── testplatform_VS2010.vcxproj │ │ │ │ ├── testplatform_VS2012.vcxproj │ │ │ │ └── testplatform_VS2013.vcxproj │ │ │ ├── testpower │ │ │ │ ├── testpower_VS2008.vcproj │ │ │ │ ├── testpower_VS2010.vcxproj │ │ │ │ ├── testpower_VS2012.vcxproj │ │ │ │ └── testpower_VS2013.vcxproj │ │ │ ├── testrendertarget │ │ │ │ ├── testrendertarget_VS2008.vcproj │ │ │ │ ├── testrendertarget_VS2010.vcxproj │ │ │ │ ├── testrendertarget_VS2012.vcxproj │ │ │ │ └── testrendertarget_VS2013.vcxproj │ │ │ ├── testscale │ │ │ │ ├── testscale_VS2008.vcproj │ │ │ │ ├── testscale_VS2010.vcxproj │ │ │ │ ├── testscale_VS2012.vcxproj │ │ │ │ └── testscale_VS2013.vcxproj │ │ │ ├── testshape │ │ │ │ ├── testshape_VS2008.vcproj │ │ │ │ ├── testshape_VS2010.vcxproj │ │ │ │ ├── testshape_VS2012.vcxproj │ │ │ │ └── testshape_VS2013.vcxproj │ │ │ └── testsprite2 │ │ │ │ ├── testsprite2_VS2008.vcproj │ │ │ │ ├── testsprite2_VS2010.vcxproj │ │ │ │ ├── testsprite2_VS2012.vcxproj │ │ │ │ └── testsprite2_VS2013.vcxproj │ │ └── visualtest │ │ │ ├── unittest │ │ │ └── testquit │ │ │ │ └── testquit_VS2012.vcxproj │ │ │ └── visualtest_VS2012.vcxproj │ ├── WhatsNew.txt │ ├── Xcode-iOS │ │ ├── Demos │ │ │ ├── Default.png │ │ │ ├── Demos.xcodeproj │ │ │ │ └── project.pbxproj │ │ │ ├── Icon.png │ │ │ ├── Info.plist │ │ │ ├── README │ │ │ ├── data │ │ │ │ ├── bitmapfont │ │ │ │ │ ├── kromasky_16x16.bmp │ │ │ │ │ └── license.txt │ │ │ │ ├── drums │ │ │ │ │ ├── ds_brush_snare.wav │ │ │ │ │ ├── ds_china.wav │ │ │ │ │ ├── ds_kick_big_amb.wav │ │ │ │ │ └── ds_loose_skin_mute.wav │ │ │ │ ├── icon.bmp │ │ │ │ ├── ship.bmp │ │ │ │ ├── space.bmp │ │ │ │ └── stroke.bmp │ │ │ └── src │ │ │ │ ├── accelerometer.c │ │ │ │ ├── common.c │ │ │ │ ├── common.h │ │ │ │ ├── fireworks.c │ │ │ │ ├── happy.c │ │ │ │ ├── keyboard.c │ │ │ │ ├── mixer.c │ │ │ │ ├── rectangles.c │ │ │ │ └── touch.c │ │ ├── SDL │ │ │ └── SDL.xcodeproj │ │ │ │ └── project.pbxproj │ │ ├── SDLtest │ │ │ └── SDL2test.xcodeproj │ │ │ │ └── project.pbxproj │ │ ├── Template │ │ │ └── SDL iOS Application │ │ │ │ ├── Default.png │ │ │ │ ├── Icon.png │ │ │ │ ├── Info.plist │ │ │ │ ├── ___PROJECTNAME___.xcodeproj │ │ │ │ ├── TemplateIcon.icns │ │ │ │ ├── TemplateInfo.plist │ │ │ │ └── project.pbxproj │ │ │ │ └── main.c │ │ └── Test │ │ │ ├── Info.plist │ │ │ ├── README │ │ │ └── TestiPhoneOS.xcodeproj │ │ │ └── project.pbxproj │ ├── Xcode │ │ ├── SDL │ │ │ ├── Info-Framework.plist │ │ │ ├── SDL.xcodeproj │ │ │ │ └── project.pbxproj │ │ │ └── pkg-support │ │ │ │ ├── SDL.info │ │ │ │ ├── codesign-frameworks.sh │ │ │ │ ├── resources │ │ │ │ ├── License.txt │ │ │ │ ├── ReadMe.txt │ │ │ │ └── SDL_DS_Store │ │ │ │ └── sdl_logo.pdf │ │ ├── SDLTest │ │ │ ├── SDLTest.xcodeproj │ │ │ │ └── project.pbxproj │ │ │ └── TestDropFile-Info.plist │ │ └── XcodeDocSet │ │ │ └── Doxyfile │ ├── acinclude │ │ ├── ac_check_define.m4 │ │ ├── alsa.m4 │ │ ├── ax_check_compiler_flags.m4 │ │ ├── ax_gcc_archflag.m4 │ │ ├── ax_gcc_x86_cpuid.m4.htm │ │ ├── esd.m4 │ │ ├── libtool.m4 │ │ ├── ltoptions.m4 │ │ ├── ltsugar.m4 │ │ ├── ltversion.m4 │ │ └── lt~obsolete.m4 │ ├── android-project │ │ ├── AndroidManifest.xml │ │ ├── ant.properties │ │ ├── build.properties │ │ ├── build.xml │ │ ├── default.properties │ │ ├── jni │ │ │ ├── Android.mk │ │ │ ├── Application.mk │ │ │ └── src │ │ │ │ ├── Android.mk │ │ │ │ └── Android_static.mk │ │ ├── proguard-project.txt │ │ ├── project.properties │ │ ├── res │ │ │ ├── drawable-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── layout │ │ │ │ └── main.xml │ │ │ └── values │ │ │ │ └── strings.xml │ │ └── src │ │ │ └── org │ │ │ └── libsdl │ │ │ └── app │ │ │ └── SDLActivity.java │ ├── autogen.sh │ ├── build-scripts │ │ ├── androidbuild.sh │ │ ├── config.guess │ │ ├── config.sub │ │ ├── g++-fat.sh │ │ ├── gcc-fat.sh │ │ ├── install-sh │ │ ├── iosbuild.sh │ │ ├── ltmain.sh │ │ ├── mkinstalldirs │ │ ├── raspberrypi-buildbot.sh │ │ ├── showrev.sh │ │ ├── strip_fPIC.sh │ │ └── updaterev.sh │ ├── cmake │ │ ├── macros.cmake │ │ └── sdlchecks.cmake │ ├── configure │ ├── configure.in │ ├── debian │ │ ├── changelog │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── docs │ │ ├── libsdl2-dev.install │ │ ├── libsdl2-dev.manpages │ │ ├── libsdl2.install │ │ ├── rules │ │ ├── sdl2-config.1 │ │ ├── source │ │ │ └── format │ │ └── watch │ ├── 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_macosx.h │ │ ├── SDL_config_minimal.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_opengles.h │ │ ├── SDL_opengles2.h │ │ ├── SDL_pixels.h │ │ ├── SDL_platform.h │ │ ├── SDL_power.h │ │ ├── SDL_quit.h │ │ ├── SDL_rect.h │ │ ├── SDL_render.h │ │ ├── SDL_revision.h │ │ ├── SDL_rwops.h │ │ ├── SDL_scancode.h │ │ ├── SDL_shape.h │ │ ├── SDL_stdinc.h │ │ ├── SDL_surface.h │ │ ├── SDL_system.h │ │ ├── SDL_syswm.h │ │ ├── SDL_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_random.h │ │ ├── SDL_thread.h │ │ ├── SDL_timer.h │ │ ├── SDL_touch.h │ │ ├── SDL_types.h │ │ ├── SDL_version.h │ │ ├── SDL_video.h │ │ ├── begin_code.h │ │ ├── close_code.h │ │ └── doxyfile │ ├── sdl2-config.in │ ├── sdl2.m4 │ ├── sdl2.pc.in │ ├── src │ │ ├── SDL.c │ │ ├── SDL_assert.c │ │ ├── SDL_assert_c.h │ │ ├── SDL_error.c │ │ ├── SDL_error_c.h │ │ ├── SDL_hints.c │ │ ├── SDL_internal.h │ │ ├── SDL_log.c │ │ ├── atomic │ │ │ ├── SDL_atomic.c │ │ │ └── SDL_spinlock.c │ │ ├── audio │ │ │ ├── SDL_audio.c │ │ │ ├── SDL_audio_c.h │ │ │ ├── SDL_audiocvt.c │ │ │ ├── SDL_audiodev.c │ │ │ ├── SDL_audiodev_c.h │ │ │ ├── SDL_audiomem.h │ │ │ ├── SDL_audiotypecvt.c │ │ │ ├── SDL_mixer.c │ │ │ ├── SDL_sysaudio.h │ │ │ ├── SDL_wave.c │ │ │ ├── SDL_wave.h │ │ │ ├── alsa │ │ │ │ ├── SDL_alsa_audio.c │ │ │ │ └── SDL_alsa_audio.h │ │ │ ├── android │ │ │ │ ├── SDL_androidaudio.c │ │ │ │ └── SDL_androidaudio.h │ │ │ ├── arts │ │ │ │ ├── SDL_artsaudio.c │ │ │ │ └── SDL_artsaudio.h │ │ │ ├── bsd │ │ │ │ ├── SDL_bsdaudio.c │ │ │ │ └── SDL_bsdaudio.h │ │ │ ├── coreaudio │ │ │ │ ├── SDL_coreaudio.c │ │ │ │ └── SDL_coreaudio.h │ │ │ ├── directsound │ │ │ │ ├── SDL_directsound.c │ │ │ │ ├── SDL_directsound.h │ │ │ │ └── directx.h │ │ │ ├── disk │ │ │ │ ├── SDL_diskaudio.c │ │ │ │ └── SDL_diskaudio.h │ │ │ ├── dsp │ │ │ │ ├── SDL_dspaudio.c │ │ │ │ └── SDL_dspaudio.h │ │ │ ├── dummy │ │ │ │ ├── SDL_dummyaudio.c │ │ │ │ └── SDL_dummyaudio.h │ │ │ ├── esd │ │ │ │ ├── SDL_esdaudio.c │ │ │ │ └── SDL_esdaudio.h │ │ │ ├── fusionsound │ │ │ │ ├── SDL_fsaudio.c │ │ │ │ └── SDL_fsaudio.h │ │ │ ├── haiku │ │ │ │ ├── SDL_haikuaudio.cc │ │ │ │ └── SDL_haikuaudio.h │ │ │ ├── nas │ │ │ │ ├── SDL_nasaudio.c │ │ │ │ └── SDL_nasaudio.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 │ │ │ ├── sdlgenaudiocvt.pl │ │ │ ├── sndio │ │ │ │ ├── SDL_sndioaudio.c │ │ │ │ └── SDL_sndioaudio.h │ │ │ ├── sun │ │ │ │ ├── SDL_sunaudio.c │ │ │ │ └── SDL_sunaudio.h │ │ │ ├── winmm │ │ │ │ ├── SDL_winmm.c │ │ │ │ └── SDL_winmm.h │ │ │ └── xaudio2 │ │ │ │ ├── SDL_xaudio2.c │ │ │ │ ├── SDL_xaudio2_winrthelpers.cpp │ │ │ │ └── SDL_xaudio2_winrthelpers.h │ │ ├── core │ │ │ ├── android │ │ │ │ ├── SDL_android.c │ │ │ │ └── SDL_android.h │ │ │ ├── linux │ │ │ │ ├── SDL_evdev.c │ │ │ │ ├── SDL_evdev.h │ │ │ │ ├── SDL_udev.c │ │ │ │ └── SDL_udev.h │ │ │ ├── windows │ │ │ │ ├── SDL_windows.c │ │ │ │ └── SDL_windows.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_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 │ │ │ ├── cocoa │ │ │ │ └── SDL_sysfilesystem.m │ │ │ ├── dummy │ │ │ │ └── SDL_sysfilesystem.c │ │ │ ├── haiku │ │ │ │ └── SDL_sysfilesystem.cc │ │ │ ├── unix │ │ │ │ └── SDL_sysfilesystem.c │ │ │ ├── windows │ │ │ │ └── SDL_sysfilesystem.c │ │ │ └── winrt │ │ │ │ └── SDL_sysfilesystem.cpp │ │ ├── haptic │ │ │ ├── SDL_haptic.c │ │ │ ├── SDL_haptic_c.h │ │ │ ├── SDL_syshaptic.h │ │ │ ├── darwin │ │ │ │ ├── SDL_syshaptic.c │ │ │ │ └── SDL_syshaptic_c.h │ │ │ ├── dummy │ │ │ │ └── SDL_syshaptic.c │ │ │ ├── linux │ │ │ │ └── SDL_syshaptic.c │ │ │ └── windows │ │ │ │ ├── SDL_syshaptic.c │ │ │ │ └── SDL_syshaptic_c.h │ │ ├── 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 │ │ │ ├── darwin │ │ │ │ ├── SDL_sysjoystick.c │ │ │ │ └── SDL_sysjoystick_c.h │ │ │ ├── dummy │ │ │ │ └── SDL_sysjoystick.c │ │ │ ├── haiku │ │ │ │ └── SDL_haikujoystick.cc │ │ │ ├── iphoneos │ │ │ │ ├── SDLUIAccelerationDelegate.h │ │ │ │ ├── SDLUIAccelerationDelegate.m │ │ │ │ └── SDL_sysjoystick.m │ │ │ ├── linux │ │ │ │ ├── SDL_sysjoystick.c │ │ │ │ └── SDL_sysjoystick_c.h │ │ │ ├── psp │ │ │ │ └── SDL_sysjoystick.c │ │ │ ├── sort_controllers.py │ │ │ ├── windows │ │ │ │ ├── SDL_dxjoystick.c │ │ │ │ ├── SDL_dxjoystick_c.h │ │ │ │ └── SDL_mmjoystick.c │ │ │ └── winrt │ │ │ │ └── SDL_xinputjoystick.c │ │ ├── libm │ │ │ ├── e_atan2.c │ │ │ ├── e_log.c │ │ │ ├── e_pow.c │ │ │ ├── e_rem_pio2.c │ │ │ ├── e_sqrt.c │ │ │ ├── k_cos.c │ │ │ ├── k_rem_pio2.c │ │ │ ├── k_sin.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 │ │ ├── loadso │ │ │ ├── dlopen │ │ │ │ └── SDL_sysloadso.c │ │ │ ├── dummy │ │ │ │ └── SDL_sysloadso.c │ │ │ ├── haiku │ │ │ │ └── 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 │ │ │ ├── psp │ │ │ │ └── SDL_psp_main.c │ │ │ ├── windows │ │ │ │ ├── SDL_windows_main.c │ │ │ │ └── version.rc │ │ │ └── winrt │ │ │ │ └── SDL_winrt_main_NonXAML.cpp │ │ ├── power │ │ │ ├── SDL_power.c │ │ │ ├── android │ │ │ │ └── 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_mmx.c │ │ │ ├── SDL_yuv_sw.c │ │ │ ├── SDL_yuv_sw_c.h │ │ │ ├── direct3d │ │ │ │ └── SDL_render_d3d.c │ │ │ ├── direct3d11 │ │ │ │ ├── SDL_render_d3d11.c │ │ │ │ ├── SDL_render_winrt.cpp │ │ │ │ └── SDL_render_winrt.h │ │ │ ├── mmx.h │ │ │ ├── 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 │ │ ├── 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_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 │ │ │ ├── android │ │ │ ├── SDL_androidclipboard.c │ │ │ ├── SDL_androidclipboard.h │ │ │ ├── SDL_androidevents.c │ │ │ ├── SDL_androidevents.h │ │ │ ├── SDL_androidgl.c │ │ │ ├── SDL_androidkeyboard.c │ │ │ ├── SDL_androidkeyboard.h │ │ │ ├── SDL_androidtouch.c │ │ │ ├── SDL_androidtouch.h │ │ │ ├── SDL_androidvideo.c │ │ │ ├── SDL_androidvideo.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_cocoamodes.h │ │ │ ├── SDL_cocoamodes.m │ │ │ ├── SDL_cocoamouse.h │ │ │ ├── SDL_cocoamouse.m │ │ │ ├── SDL_cocoamousetap.h │ │ │ ├── SDL_cocoamousetap.m │ │ │ ├── SDL_cocoaopengl.h │ │ │ ├── SDL_cocoaopengl.m │ │ │ ├── SDL_cocoashape.h │ │ │ ├── SDL_cocoashape.m │ │ │ ├── SDL_cocoavideo.h │ │ │ ├── SDL_cocoavideo.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 │ │ │ ├── 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 │ │ │ ├── mir │ │ │ ├── SDL_mirdyn.c │ │ │ ├── SDL_mirdyn.h │ │ │ ├── SDL_mirevents.c │ │ │ ├── SDL_mirevents.h │ │ │ ├── SDL_mirframebuffer.c │ │ │ ├── SDL_mirframebuffer.h │ │ │ ├── SDL_mirmouse.c │ │ │ ├── SDL_mirmouse.h │ │ │ ├── SDL_miropengl.c │ │ │ ├── SDL_miropengl.h │ │ │ ├── SDL_mirsym.h │ │ │ ├── SDL_mirvideo.c │ │ │ ├── SDL_mirvideo.h │ │ │ ├── SDL_mirwindow.c │ │ │ └── SDL_mirwindow.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 │ │ │ ├── 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_uikitevents.h │ │ │ ├── SDL_uikitevents.m │ │ │ ├── SDL_uikitmessagebox.h │ │ │ ├── SDL_uikitmessagebox.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_uikitwindow.h │ │ │ ├── SDL_uikitwindow.m │ │ │ └── keyinfotable.h │ │ │ ├── wayland │ │ │ ├── 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_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_windowsvideo.c │ │ │ ├── SDL_windowsvideo.h │ │ │ ├── SDL_windowswindow.c │ │ │ ├── SDL_windowswindow.h │ │ │ └── wmmsg.h │ │ │ ├── winrt │ │ │ ├── SDL_winrtevents.cpp │ │ │ ├── SDL_winrtevents_c.h │ │ │ ├── SDL_winrtkeyboard.cpp │ │ │ ├── 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_x11window.c │ │ │ ├── SDL_x11window.h │ │ │ ├── SDL_x11xinput2.c │ │ │ ├── SDL_x11xinput2.h │ │ │ ├── edid-parse.c │ │ │ ├── edid.h │ │ │ ├── imKStoUCS.c │ │ │ └── imKStoUCS.h │ └── test │ │ ├── COPYING │ │ ├── Makefile.in │ │ ├── README │ │ ├── acinclude.m4 │ │ ├── aclocal.m4 │ │ ├── autogen.sh │ │ ├── axis.bmp │ │ ├── button.bmp │ │ ├── checkkeys.c │ │ ├── configure │ │ ├── configure.in │ │ ├── controllermap.bmp │ │ ├── controllermap.c │ │ ├── gcc-fat.sh │ │ ├── icon.bmp │ │ ├── loopwave.c │ │ ├── moose.dat │ │ ├── picture.xbm │ │ ├── relative_mode.markdown │ │ ├── sample.bmp │ │ ├── sample.wav │ │ ├── shapes │ │ ├── p01_shape24.bmp │ │ ├── p01_shape32alpha.bmp │ │ ├── p01_shape8.bmp │ │ ├── p02_shape24.bmp │ │ ├── p02_shape32alpha.bmp │ │ ├── p02_shape8.bmp │ │ ├── p03_shape24.bmp │ │ ├── p03_shape8.bmp │ │ ├── p04_shape1.bmp │ │ ├── p04_shape24.bmp │ │ ├── p04_shape32alpha.bmp │ │ ├── p04_shape8.bmp │ │ ├── p05_shape8.bmp │ │ ├── p06_shape1alpha.bmp │ │ ├── p06_shape24.bmp │ │ ├── p06_shape32alpha.bmp │ │ ├── p06_shape8.bmp │ │ ├── p07_shape24.bmp │ │ ├── p07_shape32alpha.bmp │ │ ├── p07_shape8.bmp │ │ ├── p08_shape24.bmp │ │ ├── p08_shape32alpha.bmp │ │ ├── p08_shape8.bmp │ │ ├── p09_shape24.bmp │ │ ├── p09_shape32alpha.bmp │ │ ├── p09_shape8.bmp │ │ ├── p10_shape1.bmp │ │ ├── p10_shape24.bmp │ │ ├── p10_shape32alpha.bmp │ │ ├── p10_shape8.bmp │ │ ├── p11_shape24.bmp │ │ ├── p11_shape32alpha.bmp │ │ ├── p11_shape8.bmp │ │ ├── p12_shape24.bmp │ │ ├── p12_shape8.bmp │ │ ├── p13_shape24.bmp │ │ ├── p13_shape32alpha.bmp │ │ ├── p13_shape8.bmp │ │ ├── p14_shape24.bmp │ │ ├── p14_shape8.bmp │ │ ├── p15_shape24.bmp │ │ ├── p15_shape32alpha.bmp │ │ ├── p15_shape8.bmp │ │ ├── p16_shape1.bmp │ │ ├── p16_shape24.bmp │ │ ├── p16_shape8.bmp │ │ ├── trollface_24.bmp │ │ └── trollface_32alpha.bmp │ │ ├── testatomic.c │ │ ├── testaudioinfo.c │ │ ├── testautomation.c │ │ ├── testautomation_audio.c │ │ ├── testautomation_clipboard.c │ │ ├── testautomation_events.c │ │ ├── testautomation_keyboard.c │ │ ├── testautomation_main.c │ │ ├── testautomation_mouse.c │ │ ├── testautomation_pixels.c │ │ ├── testautomation_platform.c │ │ ├── testautomation_rect.c │ │ ├── testautomation_render.c │ │ ├── testautomation_rwops.c │ │ ├── testautomation_sdltest.c │ │ ├── testautomation_stdlib.c │ │ ├── testautomation_suites.h │ │ ├── testautomation_surface.c │ │ ├── testautomation_syswm.c │ │ ├── testautomation_timer.c │ │ ├── testautomation_video.c │ │ ├── testdraw2.c │ │ ├── testdrawchessboard.c │ │ ├── testdropfile.c │ │ ├── testerror.c │ │ ├── testfile.c │ │ ├── testfilesystem.c │ │ ├── testgamecontroller.c │ │ ├── testgesture.c │ │ ├── testgl2.c │ │ ├── testgles.c │ │ ├── testgles2.c │ │ ├── testhaptic.c │ │ ├── testhotplug.c │ │ ├── testiconv.c │ │ ├── testime.c │ │ ├── testintersections.c │ │ ├── testjoystick.c │ │ ├── testkeys.c │ │ ├── testloadso.c │ │ ├── testlock.c │ │ ├── testmessage.c │ │ ├── testmultiaudio.c │ │ ├── testnative.c │ │ ├── testnative.h │ │ ├── testnativecocoa.m │ │ ├── testnativew32.c │ │ ├── testnativex11.c │ │ ├── testoverlay2.c │ │ ├── testplatform.c │ │ ├── testpower.c │ │ ├── testrelative.c │ │ ├── testrendercopyex.c │ │ ├── testrendertarget.c │ │ ├── testresample.c │ │ ├── testrumble.c │ │ ├── testscale.c │ │ ├── testsem.c │ │ ├── testshader.c │ │ ├── testshape.c │ │ ├── testsprite2.c │ │ ├── testspriteminimal.c │ │ ├── teststreaming.c │ │ ├── testthread.c │ │ ├── testtimer.c │ │ ├── testver.c │ │ ├── testviewport.c │ │ ├── testwm2.c │ │ ├── torturethread.c │ │ └── utf8.txt ├── TinyThread++-1.1 │ ├── README.txt │ ├── doc │ │ ├── Doxyfile │ │ └── html │ │ │ ├── annotated.html │ │ │ ├── bc_s.png │ │ │ ├── classes.html │ │ │ ├── classtthread_1_1chrono_1_1duration-members.html │ │ │ ├── classtthread_1_1chrono_1_1duration.html │ │ │ ├── classtthread_1_1condition__variable-members.html │ │ │ ├── classtthread_1_1condition__variable.html │ │ │ ├── classtthread_1_1fast__mutex-members.html │ │ │ ├── classtthread_1_1fast__mutex.html │ │ │ ├── classtthread_1_1lock__guard-members.html │ │ │ ├── classtthread_1_1lock__guard.html │ │ │ ├── classtthread_1_1mutex-members.html │ │ │ ├── classtthread_1_1mutex.html │ │ │ ├── classtthread_1_1ratio-members.html │ │ │ ├── classtthread_1_1ratio.html │ │ │ ├── classtthread_1_1recursive__mutex-members.html │ │ │ ├── classtthread_1_1recursive__mutex.html │ │ │ ├── classtthread_1_1thread-members.html │ │ │ ├── classtthread_1_1thread.html │ │ │ ├── classtthread_1_1thread_1_1id-members.html │ │ │ ├── classtthread_1_1thread_1_1id.html │ │ │ ├── closed.png │ │ │ ├── doxygen.css │ │ │ ├── doxygen.png │ │ │ ├── fast__mutex_8h.html │ │ │ ├── fast__mutex_8h_source.html │ │ │ ├── files.html │ │ │ ├── functions.html │ │ │ ├── functions_func.html │ │ │ ├── globals.html │ │ │ ├── globals_defs.html │ │ │ ├── index.html │ │ │ ├── namespacemembers.html │ │ │ ├── namespacemembers_func.html │ │ │ ├── namespacemembers_type.html │ │ │ ├── namespaces.html │ │ │ ├── namespacetthread.html │ │ │ ├── namespacetthread_1_1chrono.html │ │ │ ├── namespacetthread_1_1this__thread.html │ │ │ ├── nav_f.png │ │ │ ├── nav_h.png │ │ │ ├── open.png │ │ │ ├── tab_a.png │ │ │ ├── tab_b.png │ │ │ ├── tab_h.png │ │ │ ├── tab_s.png │ │ │ ├── tabs.css │ │ │ ├── tinythread_8h.html │ │ │ └── tinythread_8h_source.html │ ├── source │ │ ├── fast_mutex.h │ │ ├── tinythread.cpp │ │ └── tinythread.h │ └── test │ │ ├── Makefile.msvc │ │ ├── fractal.cpp │ │ ├── hello.cpp │ │ └── test.cpp ├── gtest-1.7.0 │ ├── CHANGES │ ├── CMakeLists.txt │ ├── CONTRIBUTORS │ ├── LICENSE │ ├── Makefile.am │ ├── Makefile.in │ ├── README │ ├── aclocal.m4 │ ├── build-aux │ │ ├── config.guess │ │ ├── config.h.in │ │ ├── config.sub │ │ ├── depcomp │ │ ├── install-sh │ │ ├── ltmain.sh │ │ └── missing │ ├── cmake │ │ └── internal_utils.cmake │ ├── codegear │ │ ├── gtest.cbproj │ │ ├── gtest.groupproj │ │ ├── gtest_all.cc │ │ ├── gtest_link.cc │ │ ├── gtest_main.cbproj │ │ └── gtest_unittest.cbproj │ ├── configure │ ├── configure.ac │ ├── fused-src │ │ └── gtest │ │ │ ├── gtest-all.cc │ │ │ ├── gtest.h │ │ │ └── gtest_main.cc │ ├── include │ │ └── gtest │ │ │ ├── gtest-death-test.h │ │ │ ├── gtest-message.h │ │ │ ├── gtest-param-test.h │ │ │ ├── gtest-param-test.h.pump │ │ │ ├── gtest-printers.h │ │ │ ├── gtest-spi.h │ │ │ ├── gtest-test-part.h │ │ │ ├── gtest-typed-test.h │ │ │ ├── gtest.h │ │ │ ├── gtest_pred_impl.h │ │ │ ├── gtest_prod.h │ │ │ └── internal │ │ │ ├── gtest-death-test-internal.h │ │ │ ├── gtest-filepath.h │ │ │ ├── gtest-internal.h │ │ │ ├── gtest-linked_ptr.h │ │ │ ├── gtest-param-util-generated.h │ │ │ ├── gtest-param-util-generated.h.pump │ │ │ ├── gtest-param-util.h │ │ │ ├── gtest-port.h │ │ │ ├── gtest-string.h │ │ │ ├── gtest-tuple.h │ │ │ ├── gtest-tuple.h.pump │ │ │ ├── gtest-type-util.h │ │ │ └── gtest-type-util.h.pump │ ├── m4 │ │ ├── acx_pthread.m4 │ │ ├── gtest.m4 │ │ ├── libtool.m4 │ │ ├── ltoptions.m4 │ │ ├── ltsugar.m4 │ │ ├── ltversion.m4 │ │ └── lt~obsolete.m4 │ ├── msvc │ │ ├── gtest-md.sln │ │ ├── gtest-md.vcproj │ │ ├── gtest.sln │ │ ├── gtest.vcproj │ │ ├── gtest_main-md.vcproj │ │ ├── gtest_main.vcproj │ │ ├── gtest_prod_test-md.vcproj │ │ ├── gtest_prod_test.vcproj │ │ ├── gtest_unittest-md.vcproj │ │ └── gtest_unittest.vcproj │ ├── samples │ │ ├── prime_tables.h │ │ ├── sample1.cc │ │ ├── sample1.h │ │ ├── sample10_unittest.cc │ │ ├── sample1_unittest.cc │ │ ├── sample2.cc │ │ ├── sample2.h │ │ ├── sample2_unittest.cc │ │ ├── sample3-inl.h │ │ ├── sample3_unittest.cc │ │ ├── sample4.cc │ │ ├── sample4.h │ │ ├── sample4_unittest.cc │ │ ├── sample5_unittest.cc │ │ ├── sample6_unittest.cc │ │ ├── sample7_unittest.cc │ │ ├── sample8_unittest.cc │ │ └── sample9_unittest.cc │ ├── scripts │ │ ├── fuse_gtest_files.py │ │ ├── gen_gtest_pred_impl.py │ │ ├── gtest-config.in │ │ └── pump.py │ ├── src │ │ ├── gtest-all.cc │ │ ├── gtest-death-test.cc │ │ ├── gtest-filepath.cc │ │ ├── gtest-internal-inl.h │ │ ├── gtest-port.cc │ │ ├── gtest-printers.cc │ │ ├── gtest-test-part.cc │ │ ├── gtest-typed-test.cc │ │ ├── gtest.cc │ │ └── gtest_main.cc │ ├── test │ │ ├── gtest-death-test_ex_test.cc │ │ ├── gtest-death-test_test.cc │ │ ├── gtest-filepath_test.cc │ │ ├── gtest-linked_ptr_test.cc │ │ ├── gtest-listener_test.cc │ │ ├── gtest-message_test.cc │ │ ├── gtest-options_test.cc │ │ ├── gtest-param-test2_test.cc │ │ ├── gtest-param-test_test.cc │ │ ├── gtest-param-test_test.h │ │ ├── gtest-port_test.cc │ │ ├── gtest-printers_test.cc │ │ ├── gtest-test-part_test.cc │ │ ├── gtest-tuple_test.cc │ │ ├── gtest-typed-test2_test.cc │ │ ├── gtest-typed-test_test.cc │ │ ├── gtest-typed-test_test.h │ │ ├── gtest-unittest-api_test.cc │ │ ├── gtest_all_test.cc │ │ ├── gtest_break_on_failure_unittest.py │ │ ├── gtest_break_on_failure_unittest_.cc │ │ ├── gtest_catch_exceptions_test.py │ │ ├── gtest_catch_exceptions_test_.cc │ │ ├── gtest_color_test.py │ │ ├── gtest_color_test_.cc │ │ ├── gtest_env_var_test.py │ │ ├── gtest_env_var_test_.cc │ │ ├── gtest_environment_test.cc │ │ ├── gtest_filter_unittest.py │ │ ├── gtest_filter_unittest_.cc │ │ ├── gtest_help_test.py │ │ ├── gtest_help_test_.cc │ │ ├── gtest_list_tests_unittest.py │ │ ├── gtest_list_tests_unittest_.cc │ │ ├── gtest_main_unittest.cc │ │ ├── gtest_no_test_unittest.cc │ │ ├── gtest_output_test.py │ │ ├── gtest_output_test_.cc │ │ ├── gtest_output_test_golden_lin.txt │ │ ├── gtest_pred_impl_unittest.cc │ │ ├── gtest_premature_exit_test.cc │ │ ├── gtest_prod_test.cc │ │ ├── gtest_repeat_test.cc │ │ ├── gtest_shuffle_test.py │ │ ├── gtest_shuffle_test_.cc │ │ ├── gtest_sole_header_test.cc │ │ ├── gtest_stress_test.cc │ │ ├── gtest_test_utils.py │ │ ├── gtest_throw_on_failure_ex_test.cc │ │ ├── gtest_throw_on_failure_test.py │ │ ├── gtest_throw_on_failure_test_.cc │ │ ├── gtest_uninitialized_test.py │ │ ├── gtest_uninitialized_test_.cc │ │ ├── gtest_unittest.cc │ │ ├── gtest_xml_outfile1_test_.cc │ │ ├── gtest_xml_outfile2_test_.cc │ │ ├── gtest_xml_outfiles_test.py │ │ ├── gtest_xml_output_unittest.py │ │ ├── gtest_xml_output_unittest_.cc │ │ ├── gtest_xml_test_utils.py │ │ ├── production.cc │ │ └── production.h │ └── xcode │ │ ├── Config │ │ ├── DebugProject.xcconfig │ │ ├── FrameworkTarget.xcconfig │ │ ├── General.xcconfig │ │ ├── ReleaseProject.xcconfig │ │ ├── StaticLibraryTarget.xcconfig │ │ └── TestTarget.xcconfig │ │ ├── Resources │ │ └── Info.plist │ │ ├── Samples │ │ └── FrameworkSample │ │ │ ├── Info.plist │ │ │ ├── WidgetFramework.xcodeproj │ │ │ └── project.pbxproj │ │ │ ├── runtests.sh │ │ │ ├── widget.cc │ │ │ ├── widget.h │ │ │ └── widget_test.cc │ │ ├── Scripts │ │ ├── runtests.sh │ │ └── versiongenerate.py │ │ └── gtest.xcodeproj │ │ └── project.pbxproj ├── parson │ ├── README.md │ ├── parson.c │ ├── parson.h │ ├── tests.c │ └── tests │ │ ├── test_1_1.txt │ │ ├── test_1_2.txt │ │ ├── test_1_3.txt │ │ └── test_2.txt └── ptex-master │ ├── README │ └── src │ ├── CMakeLists.txt │ ├── doc │ ├── CMakeLists.txt │ ├── Doxyfile │ ├── Doxyfile_API_only │ ├── FilterFootprint.html │ ├── License.txt │ ├── README │ ├── apiintro.txt │ ├── main.txt │ └── uvellipse.png │ ├── ptex │ ├── CMakeLists.txt │ ├── Makefile.deps │ ├── PtexCache.cpp │ ├── PtexCache.h │ ├── PtexDict.h │ ├── PtexFilters.cpp │ ├── PtexHalf.cpp │ ├── PtexHalf.h │ ├── PtexHashMap.h │ ├── PtexIO.h │ ├── PtexInt.h │ ├── PtexMutex.h │ ├── PtexPlatform.h │ ├── PtexReader.cpp │ ├── PtexReader.h │ ├── PtexSeparableFilter.cpp │ ├── PtexSeparableFilter.h │ ├── PtexSeparableKernel.cpp │ ├── PtexSeparableKernel.h │ ├── PtexTriangleFilter.cpp │ ├── PtexTriangleFilter.h │ ├── PtexTriangleKernel.cpp │ ├── PtexTriangleKernel.h │ ├── PtexUtils.cpp │ ├── PtexUtils.h │ ├── PtexWriter.cpp │ ├── PtexWriter.h │ └── Ptexture.h │ ├── tests │ ├── CMakeLists.txt │ ├── compare_test.cmake │ ├── ftest.cpp │ ├── ftestok.dat │ ├── halftest.cpp │ ├── rtest.cpp │ ├── rtestok.dat │ ├── run_tests.py │ └── wtest.cpp │ └── utils │ ├── CMakeLists.txt │ └── ptxinfo.cpp ├── duktape.c ├── duktape.h ├── extlibs └── windows │ └── SDL2-2.0.3 │ ├── BUGS.txt │ ├── COPYING.txt │ ├── README-SDL.txt │ ├── README.txt │ ├── WhatsNew.txt │ ├── 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_cpuinfo.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_opengles.h │ ├── SDL_opengles2.h │ ├── SDL_pixels.h │ ├── SDL_platform.h │ ├── SDL_power.h │ ├── SDL_quit.h │ ├── SDL_rect.h │ ├── SDL_render.h │ ├── SDL_revision.h │ ├── SDL_rwops.h │ ├── SDL_scancode.h │ ├── SDL_shape.h │ ├── SDL_stdinc.h │ ├── SDL_surface.h │ ├── SDL_system.h │ ├── SDL_syswm.h │ ├── SDL_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_random.h │ ├── SDL_thread.h │ ├── SDL_timer.h │ ├── SDL_touch.h │ ├── SDL_types.h │ ├── SDL_version.h │ ├── SDL_video.h │ ├── begin_code.h │ └── close_code.h │ └── lib │ ├── x64 │ ├── SDL2.dll │ ├── SDL2.lib │ ├── SDL2main.lib │ └── SDL2test.lib │ └── x86 │ ├── SDL2.dll │ ├── SDL2.lib │ ├── SDL2main.lib │ └── SDL2test.lib ├── fabfile.py ├── filepath_util.cc ├── filepath_util.h ├── format_source.sh ├── happyhttp.cpp ├── happyhttp.h ├── hashgrid.h ├── hashgrid.hxx ├── importers ├── eson.cc ├── eson.h ├── magicavoxel_loader.cc ├── magicavoxel_loader.h ├── mesh_loader.cc ├── mesh_loader.h ├── mmd_math.h ├── mmd_scene.cc ├── mmd_scene.h ├── pmd_model.h ├── pmd_reader.cc ├── pmd_reader.h ├── tiny_obj_loader.cc ├── tiny_obj_loader.h ├── vmd_animation.cc ├── vmd_animation.h ├── vmd_reader.cc └── vmd_reader.h ├── intersection.h ├── jpge.cc ├── jpge.h ├── light.cc ├── light.h ├── log.cc ├── log.h ├── main.cc ├── main_console.cc ├── main_console.h ├── main_sdl.cc ├── main_sdl.h ├── mallie.jpg ├── material.h ├── math.hxx ├── matrix.cc ├── matrix.h ├── mesh.h ├── miniexr.cpp ├── mmm_io.cc ├── mmm_io.h ├── pbrt.h ├── premake4-test.lua ├── premake4.lua ├── prim-plane.cc ├── prim-plane.h ├── render.cc ├── render.h ├── scene.cc ├── scene.h ├── script_engine.cc ├── script_engine.h ├── scripts ├── build_deplibs_linux.sh ├── build_deplibs_macosx.sh ├── setup_linux.sh ├── setup_linux_aarch64.sh └── setup_macosx.sh ├── spectrum.cc ├── spectrum.h ├── switch_gcc48.sh ├── tasksys.cc ├── teapot.mtl ├── teapot.obj ├── test └── cctest │ ├── test-atomic.cc │ └── test-main.cc ├── test_atomic.cc ├── texture.cc ├── texture.h ├── timerutil.h ├── tinyexr.cc ├── tinyexr.h ├── tools ├── linux │ └── premake4 ├── macosx │ ├── ispc │ └── premake4 ├── solaris │ └── premake4 └── windows │ ├── premake4.exe │ └── premake5.exe ├── trackball.cc ├── trackball.h ├── vcbuild.bat ├── vcm.cc ├── vector3.h └── version.h /.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | BasedOnStyle: LLVM 3 | IndentWidth: 2 4 | TabWidth: 2 5 | UseTab: Always 6 | BreakBeforeBraces: Attach 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gitignore 2 | Makefile 3 | Mallie.make 4 | Mallie.vcxproj 5 | Mallie.vcxproj.filters 6 | Mallie.vcxproj.user 7 | MallieSolution.sdf 8 | MallieSolution.sln 9 | MallieSolution.v11.suo 10 | mallie 11 | mallie_debug.exe 12 | mallie_debug.idb 13 | mallie_debug.ilk 14 | mallie_debug.pdb 15 | mallie_debug 16 | cornellbox_monochrome.png 17 | obj/ 18 | r/ 19 | *~ 20 | -------------------------------------------------------------------------------- /README-SDL.txt: -------------------------------------------------------------------------------- 1 | 2 | Please distribute this file with the SDL runtime environment: 3 | 4 | The Simple DirectMedia Layer (SDL for short) is a cross-platform library 5 | designed to make it easy to write multi-media software, such as games and 6 | emulators. 7 | 8 | The Simple DirectMedia Layer library source code is available from: 9 | http://www.libsdl.org/ 10 | 11 | This library is distributed under the terms of the zlib license: 12 | http://www.zlib.net/zlib_license.html 13 | 14 | -------------------------------------------------------------------------------- /SDL2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/SDL2.dll -------------------------------------------------------------------------------- /TODO.txt: -------------------------------------------------------------------------------- 1 | - Spectrum 2 | - Shader 3 | - Bidir path tracer 4 | - Photon map 5 | -- PPM, SPPM, etc. 6 | -------------------------------------------------------------------------------- /bsdf.h: -------------------------------------------------------------------------------- 1 | #ifndef __MALLIE_BSDF_H__ 2 | #define __MALLIE_BSDF_H__ 3 | 4 | #include "common.h" 5 | 6 | class BSDF { 7 | typedef enum { 8 | kDiffuse = 1, 9 | kGlossy = 2, 10 | kReflect = 4, 11 | kRefract = 8, 12 | } Type; 13 | 14 | real3 Eval(); 15 | real3 Pdf(); 16 | real3 Sample(); 17 | 18 | bool IsDelta() const { return isDelta; } 19 | 20 | real3 N; 21 | real3 Wo; 22 | real3 Wi; 23 | Type type; 24 | 25 | int materialID; 26 | 27 | bool isDelta; 28 | }; 29 | 30 | #endif // __MALLIE_BSDF_H__ 31 | -------------------------------------------------------------------------------- /camera.h: -------------------------------------------------------------------------------- 1 | #ifndef __MALLIE_CAMERA_H__ 2 | #define __MALLIE_CAMERA_H__ 3 | 4 | #include 5 | #include "common.h" 6 | 7 | namespace mallie { 8 | 9 | class Camera { 10 | public: 11 | Camera(const double eye[3], const double lookat[3], const double up[3]) { 12 | eye_[0] = eye[0]; 13 | eye_[1] = eye[1]; 14 | eye_[2] = eye[2]; 15 | up_[0] = up[0]; 16 | up_[1] = up[1]; 17 | up_[2] = up[2]; 18 | lookat_[0] = lookat[0]; 19 | lookat_[1] = lookat[1]; 20 | lookat_[2] = lookat[2]; 21 | } 22 | ~Camera() {}; 23 | 24 | void BuildCameraFrame(double origin[3], double corner[3], double u[3], 25 | double v[3], double fov, const double quat[4], 26 | int width, int height); 27 | 28 | Ray GenerateRay(double u, double v) const; 29 | Ray GenerateEnvRay(double u, double v) const; 30 | Ray GenerateStereoEnvRay(double u, double v) const; 31 | 32 | double eye_[3]; 33 | double up_[3]; 34 | double lookat_[3]; 35 | 36 | // In world space 37 | double origin_[3]; 38 | double corner_[3]; 39 | double du_[3]; 40 | double dv_[3]; 41 | double fov_; 42 | 43 | int height_; 44 | int width_; 45 | }; 46 | 47 | } // namespace mallie 48 | 49 | #endif // __MALLIE_CAMERA_H__ 50 | -------------------------------------------------------------------------------- /compat/changelog.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/compat/changelog.txt -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- 1 | { 2 | "0obj_filename" : "cornellbox_suzanne.obj", 3 | "eson_filename" : "cornellbox_suzanne.eson", 4 | "0magicavoxel_filename" : "castle.vox", 5 | "material_filename" : "teapot.material.json", 6 | "resolution" : [512, 512], 7 | "scene_scale" : 1.0, 8 | "num_passes" : 1000, 9 | "plane" : true, 10 | "eye" : [0, 0, 20], 11 | "lookat" : [0, 0, 0], 12 | "up" : [0, 1, 0], 13 | "dummy" : 0 14 | } 15 | -------------------------------------------------------------------------------- /cornellbox_suzanne.eson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/cornellbox_suzanne.eson -------------------------------------------------------------------------------- /cornellbox_suzanne.material.json: -------------------------------------------------------------------------------- 1 | [{"id":0.000000,"name":true,"params":{"ambient":[0.000000,0.000000,0.000000],"diffuse":[0.800000,0.800000,0.800000]},"type":true},{"id":1.000000,"name":true,"params":{"ambient":[0.000000,0.000000,0.000000],"diffuse":[0.800000,0.800000,0.800000]},"type":true},{"id":2.000000,"name":true,"params":{"ambient":[0.000000,0.000000,0.000000],"diffuse":[0.800000,0.800000,0.800000]},"type":true},{"id":3.000000,"name":true,"params":{"ambient":[0.000000,0.000000,0.000000],"diffuse":[0.800000,0.800000,0.800000]},"type":true},{"id":4.000000,"name":true,"params":{"ambient":[0.000000,0.000000,0.000000],"diffuse":[0.800000,0.800000,0.800000]},"type":true},{"id":5.000000,"name":true,"params":{"ambient":[0.000000,0.000000,0.000000],"diffuse":[0.800000,0.800000,0.800000]},"type":true},{"id":6.000000,"name":true,"params":{"ambient":[0.000000,0.000000,0.000000],"diffuse":[0.800000,0.800000,0.800000]},"type":true}] 2 | -------------------------------------------------------------------------------- /cornellbox_suzanne.mtl: -------------------------------------------------------------------------------- 1 | # Blender MTL File: 'cornellbox.blend' 2 | # Material Count: 1 3 | 4 | newmtl None 5 | Ns 0 6 | Ka 0.000000 0.000000 0.000000 7 | Kd 0.8 0.8 0.8 8 | Ks 0.8 0.8 0.8 9 | d 1 10 | illum 2 11 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/BUGS.txt: -------------------------------------------------------------------------------- 1 | 2 | Bugs are now managed in the SDL bug tracker, here: 3 | 4 | http://bugzilla.libsdl.org/ 5 | 6 | You may report bugs there, and search to see if a given issue has already 7 | been reported, discussed, and maybe even fixed. 8 | 9 | 10 | You may also find help on the SDL mailing list. Subscription information: 11 | 12 | http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org 13 | 14 | Bug reports are welcome here, but we really appreciate if you use Bugzilla, as 15 | bugs discussed on the mailing list may be forgotten or missed. 16 | 17 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/COPYING.txt: -------------------------------------------------------------------------------- 1 | 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/INSTALL.txt: -------------------------------------------------------------------------------- 1 | 2 | To compile and install SDL: 3 | 4 | 1. Windows with Visual Studio: 5 | * Read VisualC.html 6 | 7 | Windows with gcc, either native or cross-compiling: 8 | * Read the FAQ at http://wiki.libsdl.org/moin.fcg/FAQWindows 9 | * Run './configure; make; make install' 10 | 11 | Mac OS X with Xcode: 12 | * Read README-macosx.txt 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 README-android.txt 22 | 23 | iOS: 24 | * Read README-ios.txt 25 | 26 | Using Cmake: 27 | * Read README-cmake.txt 28 | 29 | 2. Look at the example programs in ./test, and check out the online 30 | documentation at http://wiki.libsdl.org/ 31 | 32 | 3. Join the SDL developer mailing list by sending E-mail to 33 | sdl-request@libsdl.org 34 | and put "subscribe" in the subject of the message. 35 | 36 | Or alternatively you can use the web interface: 37 | http://www.libsdl.org/mailing-list.php 38 | 39 | That's it! 40 | Sam Lantinga 41 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/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/stdlib/*.c \ 26 | src/thread/*.c \ 27 | src/thread/generic/*.c \ 28 | src/timer/*.c \ 29 | src/timer/dummy/*.c \ 30 | src/video/*.c \ 31 | src/video/dummy/*.c \ 32 | 33 | OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g') 34 | 35 | all: $(TARGET) 36 | 37 | $(TARGET): $(OBJECTS) 38 | $(AR) crv $@ $^ 39 | $(RANLIB) $@ 40 | 41 | clean: 42 | rm -f $(TARGET) $(OBJECTS) 43 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/README-SDL.txt: -------------------------------------------------------------------------------- 1 | 2 | Please distribute this file with the SDL runtime environment: 3 | 4 | The Simple DirectMedia Layer (SDL for short) is a cross-platform library 5 | designed to make it easy to write multi-media software, such as games and 6 | emulators. 7 | 8 | The Simple DirectMedia Layer library source code is available from: 9 | http://www.libsdl.org/ 10 | 11 | This library is distributed under the terms of the zlib license: 12 | http://www.zlib.net/zlib_license.html 13 | 14 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/README-cmake.txt: -------------------------------------------------------------------------------- 1 | ================================================================================ 2 | CMake build system for SDL (www.cmake.org) 3 | ================================================================================ 4 | 5 | SDL's build system was traditionally based on autotools. Over time, this 6 | approach has suffered from several issues across the different supported 7 | platforms. 8 | To solve these problems, a new build system based on CMake is under development. 9 | It works in parallel to the legacy system, so users can experiment with it 10 | without complication. 11 | While still experimental, the build system should be usable on the following 12 | platforms: 13 | 14 | * FreeBSD 15 | * Linux 16 | * VS.NET 2010 17 | * MinGW and Msys 18 | * OS X with support for XCode 19 | 20 | ================================================================================ 21 | Usage 22 | ================================================================================ 23 | 24 | Assuming the source for SDL is located at ~/sdl 25 | 26 | cd ~ 27 | mkdir build 28 | cd build 29 | cmake ../sdl 30 | 31 | This will build the static and dynamic versions of SDL in the ~/build directory. 32 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/README-hg.txt: -------------------------------------------------------------------------------- 1 | The latest development version of SDL is available via Mercurial. 2 | Mercurial allows you to get up-to-the-minute fixes and enhancements; 3 | as a developer works on a source tree, you can use "hg" to mirror that 4 | source tree instead of waiting for an official release. Please look 5 | at the Mercurial website ( http://mercurial.selenic.com/ ) for more 6 | information on using hg, where you can also download software for 7 | Mac OS X, Windows, and Unix systems. 8 | 9 | hg clone http://hg.libsdl.org/SDL 10 | 11 | If you are building SDL with an IDE, you will need to copy the file 12 | include/SDL_config.h.default to include/SDL_config.h before building. 13 | 14 | If you are building SDL via configure, you will need to run autogen.sh 15 | before running configure. 16 | 17 | There is a web interface to the subversion repository at: 18 | 19 | http://hg.libsdl.org/SDL/ 20 | 21 | There is an RSS feed available at that URL, for those that want to 22 | track commits in real time. 23 | 24 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/README-pandora.txt: -------------------------------------------------------------------------------- 1 | SDL 2.0 with open pandora console support ( http://openpandora.org/ ) 2 | ===================================================================== 3 | 4 | - A pandora specific video driver was written to allow SDL 2.0 with OpenGL ES 5 | support to work on the pandora under the framebuffer. This driver do not have 6 | input support for now, so if you use it you will have to add your own control code. 7 | The video driver name is "pandora" so if you have problem running it from 8 | the framebuffer, try to set the following variable before starting your application : 9 | "export SDL_VIDEODRIVER=pandora" 10 | 11 | - OpenGL ES support was added to the x11 driver, so it's working like the normal 12 | x11 driver one with OpenGLX support, with SDL input event's etc.. 13 | 14 | 15 | David Carré (Cpasjuste) 16 | cpasjuste@gmail.com 17 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/README-platforms.txt: -------------------------------------------------------------------------------- 1 | 2 | This is a list of the platforms SDL supports, and who maintains them. 3 | 4 | Officially supported platforms 5 | ============================== 6 | (code compiles, and thoroughly tested for release) 7 | ============================== 8 | Windows XP/Vista/7/8 9 | Mac OS X 10.5+ 10 | Linux 2.6+ 11 | iOS 5.1.1+ 12 | Android 2.3.3+ 13 | 14 | Unofficially supported platforms 15 | ================================ 16 | (code compiles, but not thoroughly tested) 17 | ================================ 18 | FreeBSD 19 | NetBSD 20 | OpenBSD 21 | Solaris 22 | 23 | Platforms supported by volunteers 24 | ================================= 25 | Haiku - maintained by Axel Dörfler 26 | PSP - maintained by 527721088@qq.com 27 | Pandora - maintained by Scott Smith 28 | 29 | Platforms that need maintainers 30 | =============================== 31 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/README-psp.txt: -------------------------------------------------------------------------------- 1 | SDL port for the Sony PSP contributed by 2 | Captian Lex 3 | 4 | Credit to 5 | Marcus R.Brown,Jim Paris,Matthew H for the original SDL 1.2 for PSP 6 | Geecko for his PSP GU lib "Glib2d" 7 | 8 | Building 9 | -------- 10 | To build for the PSP, make sure psp-config is in the path and run: 11 | make -f Makefile.psp 12 | 13 | 14 | 15 | To Do 16 | ------ 17 | PSP Screen Keyboard 18 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/README-wince.txt: -------------------------------------------------------------------------------- 1 | 2 | Windows CE is no longer supported by SDL. 3 | 4 | We have left the CE support in SDL 1.2 for those that must have it, and we 5 | have support for Windows Phone 8 and WinRT in SDL2, as of SDL 2.0.3. 6 | 7 | --ryan. 8 | 9 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/VisualC/clean.sh: -------------------------------------------------------------------------------- 1 | find . -type d -name 'Debug' -exec rm -rv {} \; 2 | find . -type d -name 'Release' -exec rm -rv {} \; 3 | find . -type f -name '*.user' -exec rm -v {} \; 4 | find . -type f -name '*.ncb' -exec rm -v {} \; 5 | find . -type f -name '*.suo' -exec rm -v {} \; 6 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Demos/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/Xcode-iOS/Demos/Default.png -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Demos/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/Xcode-iOS/Demos/Icon.png -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Demos/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | com.yourcompany.${PRODUCT_NAME:identifier} 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | ${PRODUCT_NAME} 19 | CFBundlePackageType 20 | APPL 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | NSMainNibFile 26 | 27 | UISupportedInterfaceOrientations 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Demos/data/bitmapfont/kromasky_16x16.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/Xcode-iOS/Demos/data/bitmapfont/kromasky_16x16.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Demos/data/drums/ds_brush_snare.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/Xcode-iOS/Demos/data/drums/ds_brush_snare.wav -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Demos/data/drums/ds_china.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/Xcode-iOS/Demos/data/drums/ds_china.wav -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Demos/data/drums/ds_kick_big_amb.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/Xcode-iOS/Demos/data/drums/ds_kick_big_amb.wav -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Demos/data/drums/ds_loose_skin_mute.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/Xcode-iOS/Demos/data/drums/ds_loose_skin_mute.wav -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Demos/data/icon.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/Xcode-iOS/Demos/data/icon.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Demos/data/ship.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/Xcode-iOS/Demos/data/ship.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Demos/data/space.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/Xcode-iOS/Demos/data/space.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Demos/data/stroke.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/Xcode-iOS/Demos/data/stroke.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Demos/src/common.c: -------------------------------------------------------------------------------- 1 | /* 2 | * common.c 3 | * written by Holmes Futrell 4 | * use however you want 5 | */ 6 | 7 | #include "common.h" 8 | #include "SDL.h" 9 | #include 10 | 11 | /* 12 | Produces a random int x, min <= x <= max 13 | following a uniform distribution 14 | */ 15 | int 16 | randomInt(int min, int max) 17 | { 18 | return min + rand() % (max - min + 1); 19 | } 20 | 21 | /* 22 | Produces a random float x, min <= x <= max 23 | following a uniform distribution 24 | */ 25 | float 26 | randomFloat(float min, float max) 27 | { 28 | return rand() / (float) RAND_MAX *(max - min) + min; 29 | } 30 | 31 | void 32 | fatalError(const char *string) 33 | { 34 | printf("%s: %s\n", string, SDL_GetError()); 35 | exit(1); 36 | } 37 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Demos/src/common.h: -------------------------------------------------------------------------------- 1 | /* 2 | * common.h 3 | * written by Holmes Futrell 4 | * use however you want 5 | */ 6 | 7 | #define SCREEN_WIDTH 320 8 | #define SCREEN_HEIGHT 480 9 | 10 | extern int randomInt(int min, int max); 11 | extern float randomFloat(float min, float max); 12 | extern void fatalError(const char *string); 13 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Template/SDL iOS Application/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/Xcode-iOS/Template/SDL iOS Application/Default.png -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Template/SDL iOS Application/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/Xcode-iOS/Template/SDL iOS Application/Icon.png -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Template/SDL iOS Application/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFile 12 | Icon 13 | CFBundleIdentifier 14 | com.yourcompany.${PRODUCT_NAME:identifier} 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | ${PRODUCT_NAME} 19 | CFBundlePackageType 20 | APPL 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateIcon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateIcon.icns -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Description 6 | This project builds an SDL based project for iPhone OS using C or Objective-C. It includes everything you need to get up and running with SDL on iPhone. 7 | CFBundleIconFile 8 | Icon.png 9 | 10 | 11 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Test/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | com.yourcompany.${PRODUCT_NAME:identifier} 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | ${PRODUCT_NAME} 19 | CFBundlePackageType 20 | APPL 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | NSMainNibFile 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode-iOS/Test/README: -------------------------------------------------------------------------------- 1 | TestiPhoneOS.xcodeproj contains targets to compile many of the SDL test programs for iPhone OS. Most of these test programs work fine, with the following exceptions: 2 | 3 | testalpha: 4 | Program crashes. Problem appears to effect Mac OS X as well. 5 | 6 | testthread: 7 | SIGTERM kills the process immediately without executing the 'kill' function. The posix standard says this shouldn't happen. Apple seems intent on having iPhone apps exit promptly when the user requests it, so maybe that's why(?) 8 | 9 | testlock: 10 | Locks appear to work, but there doesn't appear to be a simple way to send the process SIGINT. 11 | 12 | testpalette: 13 | "SDL error: blitting boat: Blit combination not supported." Happens on Mac OS X as well. 14 | 15 | testsprite2: 16 | SDL_CreateTextureFromSurface requests an ARGB pixel format, but iPhone's SDL video driver only supports ABGR. 17 | 18 | testwin: 19 | Behaves as it does under Mac OS X ... not sure if that is correctly or not. 20 | 21 | threadwin: 22 | Works if -threaded is not on. Otherwise it doesn't work, but this is true under Mac OS X as well. 23 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode/SDL/Info-Framework.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleGetInfoString 10 | http://www.libsdl.org 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | org.libsdl.SDL2 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | Simple DirectMedia Layer 19 | CFBundlePackageType 20 | FMWK 21 | CFBundleShortVersionString 22 | 2.0.3 23 | CFBundleSignature 24 | SDLX 25 | CFBundleVersion 26 | 2.0.3 27 | 28 | 29 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode/SDL/pkg-support/SDL.info: -------------------------------------------------------------------------------- 1 | Title SDL 2.0.0 2 | Version 1 3 | Description SDL Library for Mac OS X (http://www.libsdl.org) 4 | DefaultLocation /Library/Frameworks 5 | Diskname (null) 6 | DeleteWarning 7 | NeedsAuthorization NO 8 | DisableStop NO 9 | UseUserMask NO 10 | Application NO 11 | Relocatable YES 12 | Required NO 13 | InstallOnly NO 14 | RequiresReboot NO 15 | InstallFat NO 16 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode/SDL/pkg-support/codesign-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # WARNING: You may have to run Clean in Xcode after changing CODE_SIGN_IDENTITY! 4 | 5 | # Verify that $CODE_SIGN_IDENTITY is set 6 | if [ -z "$CODE_SIGN_IDENTITY" ] ; then 7 | echo "CODE_SIGN_IDENTITY needs to be non-empty for codesigning frameworks!" 8 | 9 | if [ "$CONFIGURATION" = "Release" ] ; then 10 | exit 1 11 | else 12 | # Codesigning is optional for non-release builds. 13 | exit 0 14 | fi 15 | fi 16 | 17 | SAVEIFS=$IFS 18 | IFS=$(echo -en "\n\b") 19 | 20 | FRAMEWORK_DIR="${TARGET_BUILD_DIR}" 21 | 22 | # Loop through all frameworks 23 | FRAMEWORKS=`find "${FRAMEWORK_DIR}" -type d -name "*.framework" | sed -e "s/\(.*\)/\1\/Versions\/A\//"` 24 | RESULT=$? 25 | if [[ $RESULT != 0 ]] ; then 26 | exit 1 27 | fi 28 | 29 | echo "Found:" 30 | echo "${FRAMEWORKS}" 31 | 32 | for FRAMEWORK in $FRAMEWORKS; 33 | do 34 | echo "Signing '${FRAMEWORK}'" 35 | `codesign -f -v -s "${CODE_SIGN_IDENTITY}" "${FRAMEWORK}"` 36 | RESULT=$? 37 | if [[ $RESULT != 0 ]] ; then 38 | exit 1 39 | fi 40 | done 41 | 42 | # restore $IFS 43 | IFS=$SAVEIFS 44 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode/SDL/pkg-support/resources/License.txt: -------------------------------------------------------------------------------- 1 | 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode/SDL/pkg-support/resources/ReadMe.txt: -------------------------------------------------------------------------------- 1 | The Simple DirectMedia Layer (SDL for short) is a cross-platform 2 | library designed to make it easy to write multi-media software, 3 | such as games and emulators. 4 | 5 | The Simple DirectMedia Layer library source code is available from: 6 | http://www.libsdl.org/ 7 | 8 | This library is distributed under the terms of the zlib license: 9 | http://zlib.net/zlib_license.html 10 | 11 | 12 | This packages contains the SDL framework for OS X. 13 | Conforming with Apple guidelines, this framework 14 | contains both the SDL runtime component and development header files. 15 | 16 | 17 | To Install: 18 | Copy the SDL2.framework to /Library/Frameworks 19 | 20 | You may alternatively install it in /Library/Frameworks 21 | if your access privileges are not high enough. 22 | 23 | 24 | Additional References: 25 | 26 | - Screencast tutorials for getting started with OpenSceneGraph/Mac OS X are 27 | available at: 28 | http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/MacOSXTips 29 | Though these are OpenSceneGraph centric, the same exact concepts apply to 30 | SDL, thus the videos are recommended for everybody getting started with 31 | developing on Mac OS X. (You can skim over the PlugIns stuff since SDL 32 | doesn't have any PlugIns to worry about.) 33 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode/SDL/pkg-support/resources/SDL_DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/Xcode/SDL/pkg-support/resources/SDL_DS_Store -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode/SDL/pkg-support/sdl_logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/Xcode/SDL/pkg-support/sdl_logo.pdf -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/Xcode/SDLTest/TestDropFile-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDocumentTypes 8 | 9 | 10 | CFBundleTypeRole 11 | Viewer 12 | LSHandlerRank 13 | Alternate 14 | LSItemContentTypes 15 | 16 | public.data 17 | 18 | 19 | 20 | CFBundleExecutable 21 | ${EXECUTABLE_NAME} 22 | CFBundleIdentifier 23 | org.libsdl.test-dropfile 24 | CFBundleInfoDictionaryVersion 25 | 6.0 26 | CFBundlePackageType 27 | APPL 28 | CFBundleShortVersionString 29 | 1.0 30 | CFBundleVersion 31 | 1.0 32 | LSMinimumSystemVersion 33 | 10.6 34 | 35 | 36 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/android-project/ant.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked into Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/android-project/build.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked in Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/android-project/default.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 use, 7 | # "build.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Project target. 11 | target=android-12 12 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/android-project/jni/Android.mk: -------------------------------------------------------------------------------- 1 | include $(call all-subdir-makefiles) 2 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/android-project/jni/Application.mk: -------------------------------------------------------------------------------- 1 | 2 | # Uncomment this if you're using STL in your project 3 | # See CPLUSPLUS-SUPPORT.html in the NDK documentation for more information 4 | # APP_STL := stlport_static 5 | 6 | APP_ABI := armeabi armeabi-v7a x86 7 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/android-project/jni/src/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE := main 6 | 7 | SDL_PATH := ../SDL 8 | 9 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include 10 | 11 | # Add your application source files here... 12 | LOCAL_SRC_FILES := $(SDL_PATH)/src/main/android/SDL_android_main.c \ 13 | YourSourceHere.c 14 | 15 | LOCAL_SHARED_LIBRARIES := SDL2 16 | 17 | LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog 18 | 19 | include $(BUILD_SHARED_LIBRARY) 20 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/android-project/jni/src/Android_static.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE := main 6 | 7 | LOCAL_SRC_FILES := YourSourceHere.c 8 | 9 | LOCAL_STATIC_LIBRARIES := SDL2_static 10 | 11 | include $(BUILD_SHARED_LIBRARY) 12 | $(call import-module,SDL)LOCAL_PATH := $(call my-dir) 13 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/android-project/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/android-project/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-12 15 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/android-project/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/android-project/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/android-project/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/android-project/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/android-project/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/android-project/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/android-project/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/android-project/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/android-project/res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/android-project/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | SDL App 4 | 5 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | echo "Generating build information using autoconf" 4 | echo "This may take a while ..." 5 | 6 | # Regenerate configuration files 7 | cat acinclude/* >aclocal.m4 8 | found=false 9 | for autoconf in autoconf autoconf259 autoconf-2.59 10 | do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi 11 | done 12 | if test x$found = xfalse; then 13 | echo "Couldn't find autoconf, aborting" 14 | exit 1 15 | fi 16 | (cd test; sh autogen.sh) 17 | 18 | # Run configure for this platform 19 | echo "Now you are ready to run ./configure" 20 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/build-scripts/showrev.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Print the current source revision, if available 4 | 5 | # FIXME: this prints the tip, which isn't useful if you're on a different 6 | # branch, or just not sync'd to the tip. 7 | hg tip --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1) 8 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/debian/docs: -------------------------------------------------------------------------------- 1 | BUGS.txt 2 | CREDITS.txt 3 | README.txt 4 | README-SDL.txt 5 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/debian/libsdl2-dev.install: -------------------------------------------------------------------------------- 1 | usr/bin/sdl2-config 2 | usr/include/SDL2 3 | usr/lib/*/libSDL2*.so 4 | usr/lib/*/libSDL2.a 5 | usr/lib/*/libSDL2main.a 6 | usr/lib/*/libSDL2_test.a 7 | usr/lib/*/pkgconfig/sdl2.pc 8 | usr/share/aclocal/sdl2.m4 9 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/debian/libsdl2-dev.manpages: -------------------------------------------------------------------------------- 1 | debian/sdl2-config.1 2 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/debian/libsdl2.install: -------------------------------------------------------------------------------- 1 | usr/lib/*/libSDL2-2.0.so.0* 2 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (native) 2 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/debian/watch: -------------------------------------------------------------------------------- 1 | version=3 2 | http://www.libsdl.org/release/SDL-([\d.]+)\.tar\.gz 3 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/include/SDL_copying.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/include/SDL_name.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/include/SDL_opengles.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 1.X API headers. 26 | */ 27 | 28 | #ifdef __IPHONEOS__ 29 | #include 30 | #include 31 | #else 32 | #include 33 | #include 34 | #endif 35 | 36 | #ifndef APIENTRY 37 | #define APIENTRY 38 | #endif 39 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/include/SDL_revision.h: -------------------------------------------------------------------------------- 1 | #define SDL_REVISION "hg-8628:b558f99d48f0" 2 | #define SDL_REVISION_NUMBER 8628 3 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/include/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/SDL_assert_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | extern void SDL_AssertionsQuit(void); 23 | 24 | /* vi: set ts=4 sw=4 expandtab: */ 25 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/audio/SDL_audiomem.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #define SDL_AllocAudioMem SDL_malloc 24 | #define SDL_FreeAudioMem SDL_free 25 | /* vi: set ts=4 sw=4 expandtab: */ 26 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/audio/sun/SDL_sunaudio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/src/audio/sun/SDL_sunaudio.c -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/core/winrt/SDL_winrtapp_common.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 // ifndef _SDL_winrtapp_common_h 32 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/events/SDL_clipboardevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/events/SDL_dropevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #ifndef _SDL_dropevents_c_h 24 | #define _SDL_dropevents_c_h 25 | 26 | extern int SDL_SendDropFile(const char *file); 27 | 28 | #endif /* _SDL_dropevents_c_h */ 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/events/SDL_gesture_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #ifndef _SDL_gesture_c_h 24 | #define _SDL_gesture_c_h 25 | 26 | extern int SDL_GestureAddTouch(SDL_TouchID touchId); 27 | 28 | extern void SDL_GestureProcessEvent(SDL_Event* event); 29 | 30 | extern int SDL_RecordGesture(SDL_TouchID touchId); 31 | 32 | #endif /* _SDL_gesture_c_h */ 33 | 34 | /* vi: set ts=4 sw=4 expandtab: */ 35 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/events/SDL_windowevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/events/default_cursor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/src/events/default_cursor.h -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/file/cocoa/SDL_rwopsbundlesupport.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/haptic/SDL_haptic_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 SDL_HapticInit(void); 23 | extern void SDL_HapticQuit(void); 24 | 25 | /* vi: set ts=4 sw=4 expandtab: */ 26 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/haptic/darwin/SDL_syshaptic_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/libm/s_copysign.c: -------------------------------------------------------------------------------- 1 | /* @(#)s_copysign.c 5.1 93/09/24 */ 2 | /* 3 | * ==================================================== 4 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 5 | * 6 | * Developed at SunPro, a Sun Microsystems, Inc. business. 7 | * Permission to use, copy, modify, and distribute this 8 | * software is freely granted, provided that this notice 9 | * is preserved. 10 | * ==================================================== 11 | */ 12 | 13 | #if defined(LIBM_SCCS) && !defined(lint) 14 | static const char rcsid[] = 15 | "$NetBSD: s_copysign.c,v 1.8 1995/05/10 20:46:57 jtc Exp $"; 16 | #endif 17 | 18 | /* 19 | * copysign(double x, double y) 20 | * copysign(x,y) returns a value with the magnitude of x and 21 | * with the sign bit of y. 22 | */ 23 | 24 | #include "math_libm.h" 25 | #include "math_private.h" 26 | 27 | libm_hidden_proto(copysign) 28 | #ifdef __STDC__ 29 | double copysign(double x, double y) 30 | #else 31 | double copysign(x, y) 32 | double x, y; 33 | #endif 34 | { 35 | u_int32_t hx, hy; 36 | GET_HIGH_WORD(hx, x); 37 | GET_HIGH_WORD(hy, y); 38 | SET_HIGH_WORD(x, (hx & 0x7fffffff) | (hy & 0x80000000)); 39 | return x; 40 | } 41 | 42 | libm_hidden_def(copysign) 43 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/libm/s_fabs.c: -------------------------------------------------------------------------------- 1 | /* @(#)s_fabs.c 5.1 93/09/24 */ 2 | /* 3 | * ==================================================== 4 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 5 | * 6 | * Developed at SunPro, a Sun Microsystems, Inc. business. 7 | * Permission to use, copy, modify, and distribute this 8 | * software is freely granted, provided that this notice 9 | * is preserved. 10 | * ==================================================== 11 | */ 12 | 13 | #if defined(LIBM_SCCS) && !defined(lint) 14 | static const char rcsid[] = 15 | "$NetBSD: s_fabs.c,v 1.7 1995/05/10 20:47:13 jtc Exp $"; 16 | #endif 17 | 18 | /* 19 | * fabs(x) returns the absolute value of x. 20 | */ 21 | 22 | #include "math_libm.h" 23 | #include "math_private.h" 24 | 25 | libm_hidden_proto(fabs) 26 | #ifdef __STDC__ 27 | double fabs(double x) 28 | #else 29 | double fabs(x) 30 | double x; 31 | #endif 32 | { 33 | u_int32_t high; 34 | GET_HIGH_WORD(high, x); 35 | SET_HIGH_WORD(x, high & 0x7fffffff); 36 | return x; 37 | } 38 | 39 | libm_hidden_def(fabs) 40 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/main/android/SDL_android_main.c: -------------------------------------------------------------------------------- 1 | /* 2 | SDL_android_main.c, placed in the public domain by Sam Lantinga 3/13/14 3 | */ 4 | #include "../../SDL_internal.h" 5 | 6 | #ifdef __ANDROID__ 7 | 8 | /* Include the SDL main definition header */ 9 | #include "SDL_main.h" 10 | 11 | /******************************************************************************* 12 | Functions called by JNI 13 | *******************************************************************************/ 14 | #include 15 | 16 | /* Called before SDL_main() to initialize JNI bindings in SDL library */ 17 | extern void SDL_Android_Init(JNIEnv* env, jclass cls); 18 | 19 | /* Start up the SDL app */ 20 | void Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject obj) 21 | { 22 | /* This interface could expand with ABI negotiation, calbacks, etc. */ 23 | SDL_Android_Init(env, cls); 24 | 25 | SDL_SetMainReady(); 26 | 27 | /* Run the application code! */ 28 | int status; 29 | char *argv[2]; 30 | argv[0] = SDL_strdup("SDL_app"); 31 | argv[1] = NULL; 32 | status = SDL_main(1, argv); 33 | 34 | /* Do not issue an exit or the whole application will terminate instead of just the SDL thread */ 35 | /* exit(status); */ 36 | } 37 | 38 | #endif /* __ANDROID__ */ 39 | 40 | /* vi: set ts=4 sw=4 expandtab: */ 41 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/main/windows/version.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/src/main/windows/version.rc -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/power/uikit/SDL_syspower.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/render/software/SDL_blendpoint.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | 24 | extern int SDL_BlendPoint(SDL_Surface * dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 25 | extern int SDL_BlendPoints(SDL_Surface * dst, const SDL_Point * points, int count, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 26 | 27 | /* vi: set ts=4 sw=4 expandtab: */ 28 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/render/software/SDL_drawline.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | 24 | extern int SDL_DrawLine(SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color); 25 | extern int SDL_DrawLines(SDL_Surface * dst, const SDL_Point * points, int count, Uint32 color); 26 | 27 | /* vi: set ts=4 sw=4 expandtab: */ 28 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/render/software/SDL_drawpoint.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | 24 | extern int SDL_DrawPoint(SDL_Surface * dst, int x, int y, Uint32 color); 25 | extern int SDL_DrawPoints(SDL_Surface * dst, const SDL_Point * points, int count, Uint32 color); 26 | 27 | /* vi: set ts=4 sw=4 expandtab: */ 28 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/render/software/SDL_render_sw_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | extern SDL_Renderer * SW_CreateRendererForSurface(SDL_Surface * surface); 23 | 24 | /* vi: set ts=4 sw=4 expandtab: */ 25 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/test/SDL_test_font.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/src/test/SDL_test_font.c -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/thread/generic/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/thread/generic/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/thread/generic/SDL_systls.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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() 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/thread/psp/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/thread/psp/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/thread/pthread/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/thread/pthread/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/thread/stdcpp/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/thread/stdcpp/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/thread/windows/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/SDL_RLEaccel.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/src/video/SDL_RLEaccel.c -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/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-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/SDL_blit_copy.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | void SDL_BlitCopy(SDL_BlitInfo * info); 23 | 24 | /* vi: set ts=4 sw=4 expandtab: */ 25 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/SDL_blit_slow.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | extern void SDL_Blit_Slow(SDL_BlitInfo * info); 24 | 25 | /* vi: set ts=4 sw=4 expandtab: */ 26 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/SDL_rect_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | extern SDL_bool SDL_GetSpanEnclosingRect(int width, int height, int numrects, const SDL_Rect * rects, SDL_Rect *span); 24 | 25 | /* vi: set ts=4 sw=4 expandtab: */ 26 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/android/SDL_androidevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #include "SDL_androidvideo.h" 24 | 25 | extern void Android_PumpEvents(_THIS); 26 | 27 | /* vi: set ts=4 sw=4 expandtab: */ 28 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/android/SDL_androidtouch.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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_OnTouch( int touch_device_id_in, int pointer_finger_id_in, int action, float x, float y, float p); 27 | 28 | /* vi: set ts=4 sw=4 expandtab: */ 29 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/cocoa/SDL_cocoaevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | 29 | #endif /* _SDL_cocoaevents_h */ 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/cocoa/SDL_cocoamessagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/directfb/SDL_DirectFB_events.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 33 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/directfb/SDL_DirectFB_render.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/dummy/SDL_nullevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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_nullvideo.h" 24 | 25 | extern void DUMMY_PumpEvents(_THIS); 26 | 27 | /* vi: set ts=4 sw=4 expandtab: */ 28 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/dummy/SDL_nullvideo.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/haiku/SDL_bclipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 BE_SetClipboardText(_THIS, const char *text); 28 | extern char *BE_GetClipboardText(_THIS); 29 | extern SDL_bool BE_HasClipboardText(_THIS); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/haiku/SDL_bevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 BE_PumpEvents(_THIS); 32 | 33 | #ifdef __cplusplus 34 | } 35 | #endif 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/mir/SDL_mirmouse.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | Contributed by Brandon Schaefer, 24 | */ 25 | 26 | #ifndef _SDL_mirmouse_h 27 | #define _SDL_mirmouse_h 28 | 29 | extern void 30 | MIR_InitMouse(); 31 | 32 | extern void 33 | MIR_FiniMouse(); 34 | 35 | #endif /* _SDL_mirmouse_h */ 36 | 37 | /* vi: set ts=4 sw=4 expandtab: */ 38 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/pandora/SDL_pandora_events.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/psp/SDL_pspevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/psp/SDL_pspmouse.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | #include 24 | 25 | #include "SDL_error.h" 26 | #include "SDL_mouse.h" 27 | #include "../../events/SDL_events_c.h" 28 | 29 | #include "SDL_pspmouse_c.h" 30 | 31 | 32 | /* The implementation dependent data for the window manager cursor */ 33 | struct WMcursor { 34 | int unused; 35 | }; 36 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/psp/SDL_pspmouse_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/raspberry/SDL_rpievents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/uikit/SDL_uikitappdelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | #import 23 | 24 | @interface SDLUIKitDelegate : NSObject { 25 | } 26 | 27 | + (id) sharedAppDelegate; 28 | + (NSString *)getAppDelegateClassName; 29 | 30 | @end 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/uikit/SDL_uikitevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/uikit/SDL_uikitmessagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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(); 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/wayland/SDL_waylandmouse.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/windows/SDL_windowsmessagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/windows/SDL_windowsmouse.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/x11/SDL_x11clipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | 30 | #endif /* _SDL_x11clipboard_h */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/x11/SDL_x11events.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/x11/SDL_x11keyboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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_x11keyboard_h 24 | #define _SDL_x11keyboard_h 25 | 26 | extern int X11_InitKeyboard(_THIS); 27 | extern void X11_UpdateKeymap(_THIS); 28 | extern void X11_QuitKeyboard(_THIS); 29 | 30 | #endif /* _SDL_x11keyboard_h */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/x11/SDL_x11messagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | #if SDL_VIDEO_DRIVER_X11 23 | 24 | extern int X11_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid); 25 | 26 | #endif /* SDL_VIDEO_DRIVER_X11 */ 27 | 28 | /* vi: set ts=4 sw=4 expandtab: */ 29 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/x11/SDL_x11mouse.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/src/video/x11/SDL_x11touch.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | 29 | #endif /* _SDL_x11touch_h */ 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/COPYING: -------------------------------------------------------------------------------- 1 | 2 | The test programs in this directory tree are for demonstrating and 3 | testing the functionality of the SDL library, and are placed in the 4 | public domain. 5 | 6 | October 28, 1997 7 | -- 8 | Sam Lantinga (slouken@libsdl.org) 9 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Regenerate configuration files 4 | cp acinclude.m4 aclocal.m4 5 | found=false 6 | for autoconf in autoconf autoconf259 autoconf-2.59 7 | do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi 8 | done 9 | if test x$found = xfalse; then 10 | echo "Couldn't find autoconf, aborting" 11 | exit 1 12 | fi 13 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/axis.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/axis.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/button.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/button.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/controllermap.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/controllermap.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/icon.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/icon.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/picture.xbm: -------------------------------------------------------------------------------- 1 | #define picture_width 32 2 | #define picture_height 32 3 | static char picture_bits[] = { 4 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x80, 0x01, 0x18, 5 | 0x64, 0x6f, 0xf6, 0x26, 0x0a, 0x00, 0x00, 0x50, 0xf2, 0xff, 0xff, 0x4f, 6 | 0x14, 0x04, 0x00, 0x28, 0x14, 0x0e, 0x00, 0x28, 0x10, 0x32, 0x00, 0x08, 7 | 0x94, 0x03, 0x00, 0x08, 0xf4, 0x04, 0x00, 0x08, 0xb0, 0x08, 0x00, 0x08, 8 | 0x34, 0x01, 0x00, 0x28, 0x34, 0x01, 0x00, 0x28, 0x12, 0x00, 0x40, 0x48, 9 | 0x12, 0x20, 0xa6, 0x48, 0x14, 0x50, 0x11, 0x29, 0x14, 0x50, 0x48, 0x2a, 10 | 0x10, 0x27, 0xac, 0x0e, 0xd4, 0x71, 0xe8, 0x0a, 0x74, 0x20, 0xa8, 0x0a, 11 | 0x14, 0x20, 0x00, 0x08, 0x10, 0x50, 0x00, 0x08, 0x14, 0x00, 0x00, 0x28, 12 | 0x14, 0x00, 0x00, 0x28, 0xf2, 0xff, 0xff, 0x4f, 0x0a, 0x00, 0x00, 0x50, 13 | 0x64, 0x6f, 0xf6, 0x26, 0x18, 0x80, 0x01, 0x18, 0x00, 0x00, 0x00, 0x00, 14 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 15 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/sample.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/sample.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/sample.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/sample.wav -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p01_shape24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p01_shape24.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p01_shape32alpha.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p01_shape32alpha.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p01_shape8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p01_shape8.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p02_shape24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p02_shape24.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p02_shape32alpha.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p02_shape32alpha.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p02_shape8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p02_shape8.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p03_shape24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p03_shape24.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p03_shape8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p03_shape8.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p04_shape1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p04_shape1.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p04_shape24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p04_shape24.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p04_shape32alpha.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p04_shape32alpha.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p04_shape8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p04_shape8.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p05_shape8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p05_shape8.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p06_shape1alpha.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p06_shape1alpha.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p06_shape24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p06_shape24.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p06_shape32alpha.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p06_shape32alpha.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p06_shape8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p06_shape8.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p07_shape24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p07_shape24.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p07_shape32alpha.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p07_shape32alpha.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p07_shape8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p07_shape8.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p08_shape24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p08_shape24.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p08_shape32alpha.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p08_shape32alpha.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p08_shape8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p08_shape8.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p09_shape24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p09_shape24.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p09_shape32alpha.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p09_shape32alpha.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p09_shape8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p09_shape8.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p10_shape1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p10_shape1.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p10_shape24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p10_shape24.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p10_shape32alpha.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p10_shape32alpha.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p10_shape8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p10_shape8.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p11_shape24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p11_shape24.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p11_shape32alpha.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p11_shape32alpha.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p11_shape8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p11_shape8.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p12_shape24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p12_shape24.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p12_shape8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p12_shape8.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p13_shape24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p13_shape24.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p13_shape32alpha.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p13_shape32alpha.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p13_shape8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p13_shape8.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p14_shape24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p14_shape24.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p14_shape8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p14_shape8.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p15_shape24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p15_shape24.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p15_shape32alpha.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p15_shape32alpha.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p15_shape8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p15_shape8.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p16_shape1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p16_shape1.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p16_shape24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p16_shape24.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/p16_shape8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/p16_shape8.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/trollface_24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/trollface_24.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/shapes/trollface_32alpha.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/shapes/trollface_32alpha.bmp -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/testfilesystem.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1997-2014 Sam Lantinga 3 | 4 | This software is provided 'as-is', without any express or implied 5 | warranty. In no event will the authors be held liable for any damages 6 | arising from the use of this software. 7 | 8 | Permission is granted to anyone to use this software for any purpose, 9 | including commercial applications, and to alter it and redistribute it 10 | freely. 11 | */ 12 | /* Simple test of power subsystem. */ 13 | 14 | #include 15 | #include "SDL.h" 16 | 17 | int 18 | main(int argc, char *argv[]) 19 | { 20 | /* Enable standard application logging */ 21 | SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); 22 | 23 | if (SDL_Init(0) == -1) { 24 | SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_Init() failed: %s\n", SDL_GetError()); 25 | return 1; 26 | } 27 | 28 | SDL_Log("base path: '%s'\n", SDL_GetBasePath()); 29 | SDL_Log("pref path: '%s'\n", SDL_GetPrefPath("libsdl", "testfilesystem")); 30 | 31 | SDL_Quit(); 32 | return 0; 33 | } 34 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/testkeys.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1997-2014 Sam Lantinga 3 | 4 | This software is provided 'as-is', without any express or implied 5 | warranty. In no event will the authors be held liable for any damages 6 | arising from the use of this software. 7 | 8 | Permission is granted to anyone to use this software for any purpose, 9 | including commercial applications, and to alter it and redistribute it 10 | freely. 11 | */ 12 | 13 | /* Print out all the scancodes we have, just to verify them */ 14 | 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | #include "SDL.h" 21 | 22 | int 23 | main(int argc, char *argv[]) 24 | { 25 | SDL_Scancode scancode; 26 | 27 | /* Enable standard application logging */ 28 | SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); 29 | 30 | if (SDL_Init(SDL_INIT_VIDEO) < 0) { 31 | SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL: %s\n", SDL_GetError()); 32 | exit(1); 33 | } 34 | for (scancode = 0; scancode < SDL_NUM_SCANCODES; ++scancode) { 35 | SDL_Log("Scancode #%d, \"%s\"\n", scancode, 36 | SDL_GetScancodeName(scancode)); 37 | } 38 | SDL_Quit(); 39 | return (0); 40 | } 41 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/testnativecocoa.m: -------------------------------------------------------------------------------- 1 | 2 | #include "testnative.h" 3 | 4 | #ifdef TEST_NATIVE_COCOA 5 | 6 | #include 7 | 8 | static void *CreateWindowCocoa(int w, int h); 9 | static void DestroyWindowCocoa(void *window); 10 | 11 | NativeWindowFactory CocoaWindowFactory = { 12 | "cocoa", 13 | CreateWindowCocoa, 14 | DestroyWindowCocoa 15 | }; 16 | 17 | static void *CreateWindowCocoa(int w, int h) 18 | { 19 | NSAutoreleasePool *pool; 20 | NSWindow *nswindow; 21 | NSRect rect; 22 | unsigned int style; 23 | 24 | pool = [[NSAutoreleasePool alloc] init]; 25 | 26 | rect.origin.x = 0; 27 | rect.origin.y = 0; 28 | rect.size.width = w; 29 | rect.size.height = h; 30 | rect.origin.y = CGDisplayPixelsHigh(kCGDirectMainDisplay) - rect.origin.y - rect.size.height; 31 | 32 | style = (NSTitledWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask); 33 | 34 | nswindow = [[NSWindow alloc] initWithContentRect:rect styleMask:style backing:NSBackingStoreBuffered defer:FALSE]; 35 | [nswindow makeKeyAndOrderFront:nil]; 36 | 37 | [pool release]; 38 | 39 | return nswindow; 40 | } 41 | 42 | static void DestroyWindowCocoa(void *window) 43 | { 44 | NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 45 | NSWindow *nswindow = (NSWindow *)window; 46 | 47 | [nswindow close]; 48 | [pool release]; 49 | } 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/testnativex11.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1997-2014 Sam Lantinga 3 | 4 | This software is provided 'as-is', without any express or implied 5 | warranty. In no event will the authors be held liable for any damages 6 | arising from the use of this software. 7 | 8 | Permission is granted to anyone to use this software for any purpose, 9 | including commercial applications, and to alter it and redistribute it 10 | freely. 11 | */ 12 | 13 | #include "testnative.h" 14 | 15 | #ifdef TEST_NATIVE_X11 16 | 17 | static void *CreateWindowX11(int w, int h); 18 | static void DestroyWindowX11(void *window); 19 | 20 | NativeWindowFactory X11WindowFactory = { 21 | "x11", 22 | CreateWindowX11, 23 | DestroyWindowX11 24 | }; 25 | 26 | static Display *dpy; 27 | 28 | static void * 29 | CreateWindowX11(int w, int h) 30 | { 31 | Window window = 0; 32 | 33 | dpy = XOpenDisplay(NULL); 34 | if (dpy) { 35 | window = 36 | XCreateSimpleWindow(dpy, DefaultRootWindow(dpy), 0, 0, w, h, 0, 0, 37 | 0); 38 | XMapRaised(dpy, window); 39 | XSync(dpy, False); 40 | } 41 | return (void *) window; 42 | } 43 | 44 | static void 45 | DestroyWindowX11(void *window) 46 | { 47 | if (dpy) { 48 | XDestroyWindow(dpy, (Window) window); 49 | XCloseDisplay(dpy); 50 | } 51 | } 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /deps/SDL2-2.0.3/test/utf8.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/SDL2-2.0.3/test/utf8.txt -------------------------------------------------------------------------------- /deps/TinyThread++-1.1/doc/html/bc_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/TinyThread++-1.1/doc/html/bc_s.png -------------------------------------------------------------------------------- /deps/TinyThread++-1.1/doc/html/closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/TinyThread++-1.1/doc/html/closed.png -------------------------------------------------------------------------------- /deps/TinyThread++-1.1/doc/html/doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/TinyThread++-1.1/doc/html/doxygen.png -------------------------------------------------------------------------------- /deps/TinyThread++-1.1/doc/html/nav_f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/TinyThread++-1.1/doc/html/nav_f.png -------------------------------------------------------------------------------- /deps/TinyThread++-1.1/doc/html/nav_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/TinyThread++-1.1/doc/html/nav_h.png -------------------------------------------------------------------------------- /deps/TinyThread++-1.1/doc/html/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/TinyThread++-1.1/doc/html/open.png -------------------------------------------------------------------------------- /deps/TinyThread++-1.1/doc/html/tab_a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/TinyThread++-1.1/doc/html/tab_a.png -------------------------------------------------------------------------------- /deps/TinyThread++-1.1/doc/html/tab_b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/TinyThread++-1.1/doc/html/tab_b.png -------------------------------------------------------------------------------- /deps/TinyThread++-1.1/doc/html/tab_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/TinyThread++-1.1/doc/html/tab_h.png -------------------------------------------------------------------------------- /deps/TinyThread++-1.1/doc/html/tab_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/TinyThread++-1.1/doc/html/tab_s.png -------------------------------------------------------------------------------- /deps/TinyThread++-1.1/doc/html/tabs.css: -------------------------------------------------------------------------------- 1 | .tabs, .tabs2, .tabs3 { 2 | background-image: url('tab_b.png'); 3 | width: 100%; 4 | z-index: 101; 5 | font-size: 13px; 6 | } 7 | 8 | .tabs2 { 9 | font-size: 10px; 10 | } 11 | .tabs3 { 12 | font-size: 9px; 13 | } 14 | 15 | .tablist { 16 | margin: 0; 17 | padding: 0; 18 | display: table; 19 | } 20 | 21 | .tablist li { 22 | float: left; 23 | display: table-cell; 24 | background-image: url('tab_b.png'); 25 | line-height: 36px; 26 | list-style: none; 27 | } 28 | 29 | .tablist a { 30 | display: block; 31 | padding: 0 20px; 32 | font-weight: bold; 33 | background-image:url('tab_s.png'); 34 | background-repeat:no-repeat; 35 | background-position:right; 36 | color: #283A5D; 37 | text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); 38 | text-decoration: none; 39 | outline: none; 40 | } 41 | 42 | .tabs3 .tablist a { 43 | padding: 0 10px; 44 | } 45 | 46 | .tablist a:hover { 47 | background-image: url('tab_h.png'); 48 | background-repeat:repeat-x; 49 | color: #fff; 50 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 51 | text-decoration: none; 52 | } 53 | 54 | .tablist li.current a { 55 | background-image: url('tab_a.png'); 56 | background-repeat:repeat-x; 57 | color: #fff; 58 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 59 | } 60 | -------------------------------------------------------------------------------- /deps/gtest-1.7.0/m4/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 | -------------------------------------------------------------------------------- /deps/gtest-1.7.0/xcode/Config/DebugProject.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // DebugProject.xcconfig 3 | // 4 | // These are Debug Configuration project settings for the gtest framework and 5 | // examples. It is set in the "Based On:" dropdown in the "Project" info 6 | // dialog. 7 | // This file is based on the Xcode Configuration files in: 8 | // http://code.google.com/p/google-toolbox-for-mac/ 9 | // 10 | 11 | #include "General.xcconfig" 12 | 13 | // No optimization 14 | GCC_OPTIMIZATION_LEVEL = 0 15 | 16 | // Deployment postprocessing is what triggers Xcode to strip, turn it off 17 | DEPLOYMENT_POSTPROCESSING = NO 18 | 19 | // Dead code stripping off 20 | DEAD_CODE_STRIPPING = NO 21 | 22 | // Debug symbols should be on obviously 23 | GCC_GENERATE_DEBUGGING_SYMBOLS = YES 24 | 25 | // Define the DEBUG macro in all debug builds 26 | OTHER_CFLAGS = $(OTHER_CFLAGS) -DDEBUG=1 27 | 28 | // These are turned off to avoid STL incompatibilities with client code 29 | // // Turns on special C++ STL checks to "encourage" good STL use 30 | // GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS) _GLIBCXX_DEBUG_PEDANTIC _GLIBCXX_DEBUG _GLIBCPP_CONCEPT_CHECKS 31 | -------------------------------------------------------------------------------- /deps/gtest-1.7.0/xcode/Config/FrameworkTarget.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // FrameworkTarget.xcconfig 3 | // 4 | // These are Framework target settings for the gtest framework and examples. It 5 | // is set in the "Based On:" dropdown in the "Target" info dialog. 6 | // This file is based on the Xcode Configuration files in: 7 | // http://code.google.com/p/google-toolbox-for-mac/ 8 | // 9 | 10 | // Dynamic libs need to be position independent 11 | GCC_DYNAMIC_NO_PIC = NO 12 | 13 | // Dynamic libs should not have their external symbols stripped. 14 | STRIP_STYLE = non-global 15 | 16 | // Let the user install by specifying the $DSTROOT with xcodebuild 17 | SKIP_INSTALL = NO 18 | -------------------------------------------------------------------------------- /deps/gtest-1.7.0/xcode/Config/General.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // General.xcconfig 3 | // 4 | // These are General configuration settings for the gtest framework and 5 | // examples. 6 | // This file is based on the Xcode Configuration files in: 7 | // http://code.google.com/p/google-toolbox-for-mac/ 8 | // 9 | 10 | // Build for PPC and Intel, 32- and 64-bit 11 | ARCHS = i386 x86_64 ppc ppc64 12 | 13 | // Zerolink prevents link warnings so turn it off 14 | ZERO_LINK = NO 15 | 16 | // Prebinding considered unhelpful in 10.3 and later 17 | PREBINDING = NO 18 | 19 | // Strictest warning policy 20 | WARNING_CFLAGS = -Wall -Werror -Wendif-labels -Wnewline-eof -Wno-sign-compare -Wshadow 21 | 22 | // Work around Xcode bugs by using external strip. See: 23 | // http://lists.apple.com/archives/Xcode-users/2006/Feb/msg00050.html 24 | SEPARATE_STRIP = YES 25 | 26 | // Force C99 dialect 27 | GCC_C_LANGUAGE_STANDARD = c99 28 | 29 | // not sure why apple defaults this on, but it's pretty risky 30 | ALWAYS_SEARCH_USER_PATHS = NO 31 | 32 | // Turn on position dependent code for most cases (overridden where appropriate) 33 | GCC_DYNAMIC_NO_PIC = YES 34 | 35 | // Default SDK and minimum OS version is 10.4 36 | SDKROOT = $(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk 37 | MACOSX_DEPLOYMENT_TARGET = 10.4 38 | GCC_VERSION = 4.0 39 | 40 | // VERSIONING BUILD SETTINGS (used in Info.plist) 41 | GTEST_VERSIONINFO_ABOUT = © 2008 Google Inc. 42 | -------------------------------------------------------------------------------- /deps/gtest-1.7.0/xcode/Config/ReleaseProject.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // ReleaseProject.xcconfig 3 | // 4 | // These are Release Configuration project settings for the gtest framework 5 | // and examples. It is set in the "Based On:" dropdown in the "Project" info 6 | // dialog. 7 | // This file is based on the Xcode Configuration files in: 8 | // http://code.google.com/p/google-toolbox-for-mac/ 9 | // 10 | 11 | #include "General.xcconfig" 12 | 13 | // subconfig/Release.xcconfig 14 | 15 | // Optimize for space and size (Apple recommendation) 16 | GCC_OPTIMIZATION_LEVEL = s 17 | 18 | // Deploment postprocessing is what triggers Xcode to strip 19 | DEPLOYMENT_POSTPROCESSING = YES 20 | 21 | // No symbols 22 | GCC_GENERATE_DEBUGGING_SYMBOLS = NO 23 | 24 | // Dead code strip does not affect ObjC code but can help for C 25 | DEAD_CODE_STRIPPING = YES 26 | 27 | // NDEBUG is used by things like assert.h, so define it for general compat. 28 | // ASSERT going away in release tends to create unused vars. 29 | OTHER_CFLAGS = $(OTHER_CFLAGS) -DNDEBUG=1 -Wno-unused-variable 30 | 31 | // When we strip we want to strip all symbols in release, but save externals. 32 | STRIP_STYLE = all 33 | -------------------------------------------------------------------------------- /deps/gtest-1.7.0/xcode/Config/StaticLibraryTarget.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // StaticLibraryTarget.xcconfig 3 | // 4 | // These are static library target settings for libgtest.a. It 5 | // is set in the "Based On:" dropdown in the "Target" info dialog. 6 | // This file is based on the Xcode Configuration files in: 7 | // http://code.google.com/p/google-toolbox-for-mac/ 8 | // 9 | 10 | // Static libs can be included in bundles so make them position independent 11 | GCC_DYNAMIC_NO_PIC = NO 12 | 13 | // Static libs should not have their internal globals or external symbols 14 | // stripped. 15 | STRIP_STYLE = debugging 16 | 17 | // Let the user install by specifying the $DSTROOT with xcodebuild 18 | SKIP_INSTALL = NO 19 | -------------------------------------------------------------------------------- /deps/gtest-1.7.0/xcode/Config/TestTarget.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // TestTarget.xcconfig 3 | // 4 | // These are Test target settings for the gtest framework and examples. It 5 | // is set in the "Based On:" dropdown in the "Target" info dialog. 6 | 7 | PRODUCT_NAME = $(TARGET_NAME) 8 | HEADER_SEARCH_PATHS = ../include 9 | -------------------------------------------------------------------------------- /deps/gtest-1.7.0/xcode/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.google.${PRODUCT_NAME} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | GTEST_VERSIONINFO_LONG 21 | CFBundleShortVersionString 22 | GTEST_VERSIONINFO_SHORT 23 | CFBundleGetInfoString 24 | ${PRODUCT_NAME} GTEST_VERSIONINFO_LONG, ${GTEST_VERSIONINFO_ABOUT} 25 | NSHumanReadableCopyright 26 | ${GTEST_VERSIONINFO_ABOUT} 27 | CSResourcesFileMapped 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /deps/gtest-1.7.0/xcode/Samples/FrameworkSample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.google.gtest.${PRODUCT_NAME:identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | CSResourcesFileMapped 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /deps/parson/tests/test_1_2.txt: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /deps/parson/tests/test_1_3.txt: -------------------------------------------------------------------------------- 1 | { 2 | "JSON Test Pattern pass3": { 3 | "The outermost value": "must be an object or array.", 4 | "In this test": "It is an object." 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /deps/parson/tests/test_2.txt: -------------------------------------------------------------------------------- 1 | { 2 | "string" : "lorem ipsum", 3 | "utf string" : "\u006corem\u0020ipsum", 4 | "utf-8 string": "あいうえお", 5 | "positive one" : 1, 6 | "negative one" : -1, 7 | "pi" : 3.14, 8 | "hard to parse number" : -3.14e-4, 9 | "boolean true" : true, 10 | "boolean false" : false, 11 | "null" : null, 12 | "string array" : ["lorem", "ipsum"], 13 | "x^2 array" : [0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100], 14 | "object_empty" : { }, 15 | "object" : { "nested string" : "str", 16 | "nested true" : true, 17 | "nested false" : false, 18 | "nested null" : null, 19 | "nested number" : 123, 20 | "nested array" : ["lorem", "ipsum"] } 21 | } 22 | -------------------------------------------------------------------------------- /deps/ptex-master/README: -------------------------------------------------------------------------------- 1 | Building with make (Linux): 2 | > cd src 3 | > make 4 | 5 | This will build, install to a local 'install' directory, and 6 | run regression tests. 7 | 8 | Contents of install directory: 9 | install/bin: 10 | ptxinfo 11 | 12 | install/include: 13 | PtexHalf.h PtexInt.h Ptexture.h PtexUtils.h 14 | 15 | install/lib: 16 | libPtex.a libPtex.so 17 | 18 | 19 | 20 | Building with cmake: 21 | mkdir build 22 | cd build 23 | cmake ../src 24 | make 25 | make test 26 | make install 27 | make doc 28 | 29 | Note: docs will be generated into local 'install' directory. 30 | (TODO: generate in build directory.) -------------------------------------------------------------------------------- /deps/ptex-master/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8) 2 | project(ptex) 3 | 4 | # enable testing for the project 5 | include(CTest) 6 | enable_testing() 7 | 8 | include(FindZLIB) 9 | include(FindThreads) 10 | 11 | include_directories(ptex) 12 | include_directories(${ZLIB_INCLUDE_DIR}) 13 | 14 | add_subdirectory(ptex) 15 | add_subdirectory(utils) 16 | add_subdirectory(tests) 17 | add_subdirectory(doc) 18 | -------------------------------------------------------------------------------- /deps/ptex-master/src/doc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | find_package ( Doxygen ) 2 | 3 | file ( MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/../install/doc) 4 | 5 | if (DOXYGEN_FOUND) 6 | set (generated_doc_location ${CMAKE_SOURCE_DIR}/../install/doc/ptex/) 7 | set (doxyfile_location ${CMAKE_SOURCE_DIR}/doc/) 8 | set (perm OWNER_READ GROUP_READ WORLD_READ) 9 | add_custom_target (doc 10 | ${DOXYGEN_EXECUTABLE} ${doxyfile_location}/Doxyfile 11 | WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/doc 12 | ) 13 | endif (DOXYGEN_FOUND) 14 | -------------------------------------------------------------------------------- /deps/ptex-master/src/doc/README: -------------------------------------------------------------------------------- 1 | API documentation is generated via doxygen (www.doxygen.org). 2 | Two versions are generated, one for the public api only, 3 | installed into ../../apidocs, and the other 4 | with a full source code index in ../../install/doc. 5 | -------------------------------------------------------------------------------- /deps/ptex-master/src/doc/main.txt: -------------------------------------------------------------------------------- 1 | /** \mainpage Ptex 2 | 3 | \section mainapi Main API pages 4 | - Ptex - Common data structures and enums used throughout the API. 5 | - PtexCache - Create a cache for reading one or more ptex files. 6 | - PtexTexture - Access data from a ptex file. 7 | - PtexFaceData - Access per-face texture data from a PtexTexture. 8 | - PtexMetaData - Access meta data from a PtexTexture. 9 | - PtexWriter - Create or update a ptex file. 10 | - PtexFilter - Apply a filter to ptex data. 11 | - PtexPtr - Use a smart pointer to automatically hold and release API objects. 12 | 13 | \section addtionaldocs Additional documenatation pages 14 | - \subpage license 15 | - \subpage apiintro 16 | - \subpage filterfootprint 17 | */ 18 | 19 | /** 20 | \page license License 21 | \verbinclude License.txt 22 | */ 23 | 24 | /** 25 | \page filterfootprint Filter footprint calculation 26 | \htmlinclude FilterFootprint.html 27 | */ 28 | -------------------------------------------------------------------------------- /deps/ptex-master/src/doc/uvellipse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/deps/ptex-master/src/doc/uvellipse.png -------------------------------------------------------------------------------- /deps/ptex-master/src/ptex/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if (WIN32) 2 | add_definitions ( /DPTEX_EXPORTS ) 3 | endif (WIN32) 4 | 5 | set(SRCS 6 | PtexCache.cpp 7 | PtexFilters.cpp 8 | PtexHalf.cpp 9 | PtexReader.cpp 10 | PtexSeparableFilter.cpp 11 | PtexSeparableKernel.cpp 12 | PtexTriangleFilter.cpp 13 | PtexTriangleKernel.cpp 14 | PtexUtils.cpp 15 | PtexWriter.cpp) 16 | 17 | add_library(Ptex_static STATIC ${SRCS}) 18 | set_target_properties(Ptex_static PROPERTIES OUTPUT_NAME Ptex) 19 | 20 | add_library(Ptex_dynamic SHARED ${SRCS}) 21 | set_target_properties(Ptex_dynamic PROPERTIES OUTPUT_NAME Ptex) 22 | 23 | target_link_libraries(Ptex_dynamic ${CMAKE_THREAD_LIBS_INIT} ${ZLIB_LIBRARIES}) 24 | -------------------------------------------------------------------------------- /deps/ptex-master/src/tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(wtest wtest.cpp) 2 | target_link_libraries(wtest Ptex_dynamic) 3 | 4 | add_executable(rtest rtest.cpp) 5 | target_link_libraries(rtest Ptex_dynamic) 6 | 7 | add_executable(ftest ftest.cpp) 8 | target_link_libraries(ftest Ptex_dynamic) 9 | 10 | add_executable(halftest halftest.cpp) 11 | target_link_libraries(halftest Ptex_dynamic) 12 | 13 | # create a function to add tests that compare output 14 | # file results 15 | function(add_compare_test test_name) 16 | add_test(NAME ${test_name} 17 | COMMAND ${CMAKE_COMMAND} 18 | -DOUT=${CMAKE_CURRENT_BINARY_DIR}/${test_name}.out 19 | -DDATA=${CMAKE_CURRENT_SOURCE_DIR}/${test_name}ok.dat 20 | -DCMD=$ 21 | -P ${CMAKE_CURRENT_SOURCE_DIR}/compare_test.cmake) 22 | endfunction(add_compare_test) 23 | 24 | # add all the tests 25 | add_test(NAME wtest COMMAND $) 26 | add_compare_test(rtest) 27 | add_compare_test(ftest) 28 | add_test(NAME halftest COMMAND $) 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /deps/ptex-master/src/tests/compare_test.cmake: -------------------------------------------------------------------------------- 1 | message("Run ${CMD} to produce: ${OUT} and compare with: ${DATA}") 2 | # run the test 3 | execute_process(COMMAND "${CMD}" OUTPUT_FILE "${OUT}" RESULT_VARIABLE ret) 4 | if(NOT ${ret} EQUAL 0) 5 | message(FATAL_ERROR "${CMD} returned a non-zero value:${ret}") 6 | endif() 7 | # use cmake executable to compare the output of the tests 8 | execute_process(COMMAND "${CMAKE_COMMAND}" -E compare_files "${OUT}" "${DATA}" 9 | RESULT_VARIABLE ret) 10 | if(NOT ${ret} EQUAL 0) 11 | message(FATAL_ERROR 12 | "compare_files ${OUT} ${DATA} returned a non-zero value:${ret}") 13 | endif() -------------------------------------------------------------------------------- /deps/ptex-master/src/tests/ftest.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "Ptexture.h" 6 | 7 | int main(int argc, char** argv) 8 | { 9 | int maxmem = argc >= 2 ? atoi(argv[1]) : 1024*1024; 10 | PtexCache* c = PtexCache::create(0, maxmem); 11 | 12 | Ptex::String error; 13 | PtexPtr r ( c->get("test.ptx", error) ); 14 | 15 | if (!r) { 16 | std::cerr << error.c_str() << std::endl; 17 | return 1; 18 | } 19 | 20 | PtexFilter::Options opts(PtexFilter::f_bicubic, 0, 1.0); 21 | PtexPtr f ( PtexFilter::getFilter(r, opts) ); 22 | float result[4]; 23 | int faceid = 0; 24 | float u=0, v=0, uw=.125, vw=.125; 25 | for (v = 0; v <= 1; v += .125) { 26 | for (u = 0; u <= 1; u += .125) { 27 | f->eval(result, 0, 1, faceid, u, v, uw, 0, 0, vw); 28 | printf("%8f %8f -> %8f\n", u, v, result[0]); 29 | } 30 | } 31 | 32 | return 0; 33 | } 34 | -------------------------------------------------------------------------------- /deps/ptex-master/src/tests/run_tests.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | os.environ['PATH'] = ':'.join(['.', os.environ['PATH']]) 4 | 5 | def CompareFiles(a, b): 6 | 'Compare files using Universal Newline Support for portability' 7 | return open(a, 'rU').readlines() != open(b, 'rU').readlines() 8 | 9 | tests = ['wtest', 10 | ('rtest', 'rtest.dat', 'rtestok.dat'), 11 | ('ftest', 'ftest.dat', 'ftestok.dat'), 12 | 'halftest'] 13 | 14 | failed = 0 15 | for test in tests: 16 | if type(test) is tuple: 17 | cmd, output, ref = test 18 | cmd = cmd + ' > ' + output 19 | else: 20 | cmd = test 21 | output = ref = None 22 | print 'Running:', cmd 23 | status = os.system(cmd) 24 | if status == 0 and output and ref: 25 | print 'Comparing:', output, ref 26 | status = CompareFiles(output, ref) 27 | if status != 0: 28 | print 'FAILED' 29 | failed += 1 30 | else: 31 | print 'Passed' 32 | print 33 | 34 | print 'Finished', len(tests), 'tests,' 35 | if failed == 0: 36 | print 'All tests passed' 37 | else: 38 | print failed, 'tests FAILED' 39 | exit(1) 40 | -------------------------------------------------------------------------------- /deps/ptex-master/src/utils/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # build version string from git query 2 | execute_process(COMMAND git rev-list --max-count=1 HEAD 3 | OUTPUT_VARIABLE PTEX_SHA 4 | OUTPUT_STRIP_TRAILING_WHITESPACE) 5 | execute_process(COMMAND git describe ${PTEX_SHA} 6 | OUTPUT_VARIABLE PTEX_VER 7 | OUTPUT_STRIP_TRAILING_WHITESPACE) 8 | 9 | add_executable(ptxinfo ptxinfo.cpp) 10 | add_definitions(-DPTEX_VER="${PTEX_VER} \(${PTEX_SHA}\)") 11 | target_link_libraries(ptxinfo Ptex_dynamic) 12 | -------------------------------------------------------------------------------- /extlibs/windows/SDL2-2.0.3/BUGS.txt: -------------------------------------------------------------------------------- 1 | 2 | Bugs are now managed in the SDL bug tracker, here: 3 | 4 | http://bugzilla.libsdl.org/ 5 | 6 | You may report bugs there, and search to see if a given issue has already 7 | been reported, discussed, and maybe even fixed. 8 | 9 | 10 | You may also find help on the SDL mailing list. Subscription information: 11 | 12 | http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org 13 | 14 | Bug reports are welcome here, but we really appreciate if you use Bugzilla, as 15 | bugs discussed on the mailing list may be forgotten or missed. 16 | 17 | -------------------------------------------------------------------------------- /extlibs/windows/SDL2-2.0.3/COPYING.txt: -------------------------------------------------------------------------------- 1 | 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /extlibs/windows/SDL2-2.0.3/README-SDL.txt: -------------------------------------------------------------------------------- 1 | 2 | Please distribute this file with the SDL runtime environment: 3 | 4 | The Simple DirectMedia Layer (SDL for short) is a cross-platform library 5 | designed to make it easy to write multi-media software, such as games and 6 | emulators. 7 | 8 | The Simple DirectMedia Layer library source code is available from: 9 | http://www.libsdl.org/ 10 | 11 | This library is distributed under the terms of the zlib license: 12 | http://www.zlib.net/zlib_license.html 13 | 14 | -------------------------------------------------------------------------------- /extlibs/windows/SDL2-2.0.3/include/SDL_name.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /extlibs/windows/SDL2-2.0.3/include/SDL_revision.h: -------------------------------------------------------------------------------- 1 | #define SDL_REVISION "hg-8628:b558f99d48f0" 2 | #define SDL_REVISION_NUMBER 8628 3 | -------------------------------------------------------------------------------- /extlibs/windows/SDL2-2.0.3/include/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2014 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 | -------------------------------------------------------------------------------- /extlibs/windows/SDL2-2.0.3/lib/x64/SDL2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/extlibs/windows/SDL2-2.0.3/lib/x64/SDL2.dll -------------------------------------------------------------------------------- /extlibs/windows/SDL2-2.0.3/lib/x64/SDL2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/extlibs/windows/SDL2-2.0.3/lib/x64/SDL2.lib -------------------------------------------------------------------------------- /extlibs/windows/SDL2-2.0.3/lib/x64/SDL2main.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/extlibs/windows/SDL2-2.0.3/lib/x64/SDL2main.lib -------------------------------------------------------------------------------- /extlibs/windows/SDL2-2.0.3/lib/x64/SDL2test.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/extlibs/windows/SDL2-2.0.3/lib/x64/SDL2test.lib -------------------------------------------------------------------------------- /extlibs/windows/SDL2-2.0.3/lib/x86/SDL2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/extlibs/windows/SDL2-2.0.3/lib/x86/SDL2.dll -------------------------------------------------------------------------------- /extlibs/windows/SDL2-2.0.3/lib/x86/SDL2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/extlibs/windows/SDL2-2.0.3/lib/x86/SDL2.lib -------------------------------------------------------------------------------- /extlibs/windows/SDL2-2.0.3/lib/x86/SDL2main.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/extlibs/windows/SDL2-2.0.3/lib/x86/SDL2main.lib -------------------------------------------------------------------------------- /extlibs/windows/SDL2-2.0.3/lib/x86/SDL2test.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/extlibs/windows/SDL2-2.0.3/lib/x86/SDL2test.lib -------------------------------------------------------------------------------- /fabfile.py: -------------------------------------------------------------------------------- 1 | from fabric.api import env, cd, run, local 2 | 3 | env.hosts = ['vsp'] 4 | env.use_ssh_config = True # Read local .ssh/config 5 | 6 | def get_mallie_dir(): 7 | hostname = env.host 8 | if hostname == 'vsp': 9 | return '~/work/mallie/' 10 | else: 11 | return '~/work/mallie/' 12 | 13 | def prepare(): 14 | with cd(get_mallie_dir()): 15 | run('git pull') 16 | 17 | def configure(): 18 | with cd(get_mallie_dir()): 19 | if env.host == 'vsp': # CentOS 20 | run('./scripts/setup_linux.sh') 21 | 22 | def build(): 23 | with cd(get_mallie_dir()): 24 | run('make clean') 25 | run('make') 26 | 27 | def deploy(): 28 | pass 29 | 30 | def host_type(): 31 | run('uname -s') 32 | -------------------------------------------------------------------------------- /filepath_util.h: -------------------------------------------------------------------------------- 1 | #ifndef __MALLIE_FILEPATH_UTIL_H__ 2 | #define __MALLIE_FILEPATH_UTIL_H__ 3 | 4 | #include 5 | #include 6 | 7 | namespace mallie { 8 | 9 | // Expand filepath. e.g. '~/myfile' -> '/home/syoyo/myfile' 10 | std::string ExpandFilePath(const std::string& filepath); 11 | std::string GetFilePathExtension(const std::string& FileName); 12 | std::string GetBaseFilename(const std::string& FileName); 13 | std::string FindFile(const std::vector& paths, const std::string& FileName); 14 | std::vector SplitPath(const std::string& s, char c = ':'); 15 | 16 | bool FileExists(const std::string& abs_filepath); 17 | 18 | // 'aa/' + bb -> 'aa/bb' 19 | std::string JoinPath(const std::string& path0, const std::string& path1); 20 | 21 | }; 22 | 23 | #endif // __MALLIE_FILEPATH_UTIL_H__ 24 | -------------------------------------------------------------------------------- /format_source.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | clang-format -i *.cc 4 | clang-format -i *.cpp 5 | clang-format -i *.h 6 | -------------------------------------------------------------------------------- /importers/magicavoxel_loader.h: -------------------------------------------------------------------------------- 1 | #ifndef __MAGICAVOXEL_LOADER_H__ 2 | #define __MAGICAVOXEL_LOADER_H__ 3 | 4 | #include 5 | #include "material.h" 6 | 7 | class MagicaVoxelLoader { 8 | public: 9 | MagicaVoxelLoader() {}; 10 | ~MagicaVoxelLoader() {}; 11 | 12 | bool Load(const char *filename, std::vector &materials, 13 | std::vector &voxelData, int &sizeX, int &sizeY, 14 | int &sizeZ); 15 | 16 | private: 17 | }; 18 | 19 | #endif // __MAGICAVOXEL_LOADER_H__ 20 | -------------------------------------------------------------------------------- /importers/mesh_loader.h: -------------------------------------------------------------------------------- 1 | #ifndef __MESH_LOADER_H__ 2 | #define __MESH_LOADER_H__ 3 | 4 | #include "mesh.h" 5 | #include "material.h" 6 | 7 | class MeshLoader { 8 | public: 9 | MeshLoader(); 10 | 11 | ///< Load wavefront obj data from a file. 12 | ///< Allocated memory for the mesh must be free'ed by the application. 13 | static bool LoadObj(Mesh &mesh, const char *filename); 14 | 15 | ///< Load ESON mesh from a file. 16 | ///< Allocated memory for the mesh must be free'ed by the application. 17 | ///< Implicitly loads material infos whose name is basename(filename) + 18 | ///'.material.json' 19 | static bool LoadESON(Mesh &mesh, const char *filename); 20 | 21 | ///< Load MagicaVoxel data(as mesh) from a file. 22 | ///< Allocated memory for the mesh must be free'ed by the application. 23 | static bool LoadMagicaVoxel(Mesh &mesh, std::vector &materials, 24 | const char *filename); 25 | }; 26 | 27 | #endif // __MESH_LOADER_H__ 28 | // vim:set sw=2 ts=2 expandtab: 29 | -------------------------------------------------------------------------------- /importers/mmd_scene.h: -------------------------------------------------------------------------------- 1 | #ifndef __MMD_SCENE_H__ 2 | #define __MMD_SCENE_H__ 3 | 4 | #include "pmd_model.h" 5 | #include "vmd_animation.h" 6 | 7 | namespace mmd { 8 | 9 | class MMDScene { 10 | public: 11 | MMDScene(); 12 | ~MMDScene(); 13 | 14 | // Update bone position(resolve IK). 15 | void UpdateBone(float frame, float step); 16 | 17 | void SetModel(PMDModel *model) { model_ = model; } 18 | 19 | PMDModel *GetModel() const { return model_; } 20 | 21 | void AttachAnimation(VMDAnimation *anim); 22 | 23 | private: 24 | PMDModel *model_; 25 | VMDAnimation *anim_; 26 | }; 27 | }; 28 | 29 | #endif // __MMD_SCENE_H__ 30 | -------------------------------------------------------------------------------- /importers/pmd_reader.h: -------------------------------------------------------------------------------- 1 | #ifndef __MMD_PMD_READER_H__ 2 | #define __MMD_PMD_READER_H__ 3 | 4 | #include "pmd_model.h" 5 | 6 | namespace mmd { 7 | 8 | class PMDReader { 9 | public: 10 | PMDReader(); 11 | ~PMDReader(); 12 | 13 | PMDModel *LoadFromFile(const std::string &filename); 14 | 15 | private: 16 | }; 17 | 18 | } // namespace 19 | 20 | #endif // __MMD_PMD_READER_H__ 21 | -------------------------------------------------------------------------------- /importers/vmd_reader.h: -------------------------------------------------------------------------------- 1 | #ifndef __MMD_VMD_READER_H__ 2 | #define __MMD_VMD_READER_H__ 3 | 4 | #include "vmd_animation.h" 5 | 6 | namespace mmd { 7 | 8 | class VMDReader { 9 | public: 10 | VMDReader(); 11 | ~VMDReader(); 12 | 13 | VMDAnimation *LoadFromFile(const std::string &filename); 14 | 15 | private: 16 | }; 17 | 18 | } // namespace 19 | 20 | #endif // __MMD_VMD_READER_H__ 21 | 22 | // vim:set sw=2 ts=2 expandtab: 23 | -------------------------------------------------------------------------------- /intersection.h: -------------------------------------------------------------------------------- 1 | #ifndef __INTERSECTION_H__ 2 | #define __INTERSECTION_H__ 3 | 4 | #include "common.h" 5 | 6 | typedef struct { 7 | real t; 8 | real u; 9 | real v; 10 | unsigned int faceID; 11 | unsigned int materialID; 12 | 13 | unsigned int f0; 14 | unsigned int f1; 15 | unsigned int f2; 16 | 17 | real3 position; 18 | real3 geometricNormal; 19 | real3 normal; 20 | real3 tangent; 21 | real3 binormal; 22 | real texcoord[2]; 23 | 24 | } Intersection; 25 | 26 | #endif // __INTERSECTION_H__ 27 | -------------------------------------------------------------------------------- /light.cc: -------------------------------------------------------------------------------- 1 | #include "light.h" 2 | 3 | using namespace mallie; 4 | 5 | real AreaLight::SampleL(real posRnd[2], real dirRnd[2]) const { 6 | assert(0); 7 | return 0.0; 8 | } 9 | -------------------------------------------------------------------------------- /light.h: -------------------------------------------------------------------------------- 1 | #ifndef __MALLIE_LIGHT_H__ 2 | #define __MALLIE_LIGHT_H__ 3 | 4 | #include "common.h" 5 | 6 | #include 7 | 8 | namespace mallie { 9 | 10 | class Light { 11 | 12 | virtual real3 Radiance() const = 0; 13 | 14 | // Finite(area) or not(directional, envmap) 15 | virtual bool IsFinite() const = 0; 16 | 17 | // Whether the light has delta function(point, directional) or not(area) 18 | virtual bool IsDelta() const = 0; 19 | 20 | // Sample light position and direction, and its PDFs. 21 | virtual real SampleL(real posRnd[2], real dirRnd[2]) const = 0; 22 | }; 23 | 24 | class AreaLight : public Light { 25 | public: 26 | AreaLight(const real3 &corner, const real3 &du, const real3 &dv) { 27 | assert(0); // @todo 28 | } 29 | 30 | virtual real3 Radiance() const { 31 | assert(0); 32 | return real3(0.0, 0.0, 0.0); 33 | } 34 | 35 | bool IsFinite() const { return false; } 36 | 37 | bool IsDelta() const { return false; } 38 | 39 | real SampleL(real posRnd[2], real dirRnd[2]) const; 40 | }; 41 | 42 | } // namespace 43 | 44 | #endif // __MALLIE_LIGHT_H__ 45 | -------------------------------------------------------------------------------- /log.cc: -------------------------------------------------------------------------------- 1 | #include "log.h" 2 | 3 | using namespace mallie; 4 | 5 | Log::Log() {} 6 | 7 | Log::~Log() {} 8 | -------------------------------------------------------------------------------- /log.h: -------------------------------------------------------------------------------- 1 | #ifndef __MALLIE_LOG_H__ 2 | #define __MALLIE_LOG_H__ 3 | 4 | #include 5 | 6 | namespace mallie { 7 | 8 | class Log { 9 | public: 10 | Log(); 11 | ~Log(); 12 | 13 | private: 14 | std::string message_; 15 | }; 16 | 17 | } // namespace 18 | 19 | #endif // __MALLIE_LOG_H__ 20 | -------------------------------------------------------------------------------- /main_console.h: -------------------------------------------------------------------------------- 1 | #ifndef __MALLIE_MAIN_CONSOLE_H__ 2 | #define __MALLIE_MAIN_CONSOLE_H__ 3 | 4 | #include "render.h" 5 | 6 | namespace mallie { 7 | 8 | void DoMainConsole(Scene &scene, const RenderConfig &config); 9 | } 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /main_sdl.h: -------------------------------------------------------------------------------- 1 | #ifndef __MAIN_SDL_H__ 2 | #define __MAIN_SDL_H__ 3 | 4 | #include "render.h" 5 | 6 | namespace mallie { 7 | void DoMainSDL(Scene &scene, const RenderConfig &config); 8 | } 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /mallie.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/mallie.jpg -------------------------------------------------------------------------------- /material.h: -------------------------------------------------------------------------------- 1 | #ifndef __MALLIE_MATERIAL_H__ 2 | #define __MALLIE_MATERIAL_H__ 3 | 4 | #include "common.h" 5 | 6 | struct Material { 7 | real3 diffuse; 8 | real3 reflection; 9 | real3 refraction; 10 | int id; 11 | 12 | Material() { 13 | diffuse[0] = 0.5; 14 | diffuse[1] = 0.5; 15 | diffuse[2] = 0.5; 16 | reflection[0] = 0.0; 17 | reflection[1] = 0.0; 18 | reflection[2] = 0.0; 19 | refraction[0] = 0.0; 20 | refraction[1] = 0.0; 21 | refraction[2] = 0.0; 22 | id = -1; 23 | } 24 | }; 25 | 26 | #endif // __MALLIE_MATERIAL_H__ 27 | -------------------------------------------------------------------------------- /matrix.h: -------------------------------------------------------------------------------- 1 | #ifndef __MALLIE_MATRIX_HPP__ 2 | #define __MALLIE_MATRIX_HPP__ 3 | 4 | namespace mallie { 5 | 6 | class Matrix { 7 | public: 8 | Matrix(); 9 | ~Matrix(); 10 | 11 | static void FloatToDoubleMatrix(double out[4][4], float in[4][4]) { 12 | for (int j = 0; j < 4; j++) { 13 | for (int i = 0; i < 4; i++) { 14 | out[j][i] = in[j][i]; 15 | } 16 | } 17 | } 18 | 19 | static void Print(double m[4][4]); 20 | static void LookAt(double m[4][4], double eye[3], double lookat[3], 21 | double up[3]); 22 | static void Inverse(double m[4][4]); 23 | static void Mult(double dst[4][4], double m0[4][4], double m1[4][4]); 24 | static void MultV(double dst[3], double m[4][4], double v[3]); 25 | }; 26 | } 27 | 28 | #endif 29 | 30 | // vim:set sw=2 ts=2 expandtab: 31 | -------------------------------------------------------------------------------- /mesh.h: -------------------------------------------------------------------------------- 1 | #ifndef __MESH_H__ 2 | #define __MESH_H__ 3 | 4 | #include 5 | #include "common.h" 6 | 7 | typedef struct { 8 | size_t numVertices; 9 | size_t numFaces; 10 | real *vertices; /// [xyz] * numVertices 11 | real *facevarying_normals; /// [xyz] * 3(triangle) * numFaces 12 | real *facevarying_tangents; /// [xyz] * 3(triangle) * numFaces 13 | real *facevarying_binormals; /// [xyz] * 3(triangle) * numFaces 14 | real *facevarying_uvs; /// [xyz] * 3(triangle) * numFaces 15 | real *facevarying_vertex_colors; /// [xyz] * 3(triangle) * numFaces 16 | unsigned int *faces; /// triangle x numFaces 17 | unsigned int *materialIDs; /// index x numFaces 18 | } Mesh; 19 | 20 | #endif // __MESH_H__ 21 | -------------------------------------------------------------------------------- /mmm_io.cc: -------------------------------------------------------------------------------- 1 | #include "mmm_io.h" 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | using namespace mallie; 8 | 9 | bool SaveMMM(const char *filename, double *data, int width, int height) { 10 | FILE *fp = fopen(filename, "wb"); 11 | if (!fp) { 12 | fprintf(stderr, "[MMM] Failed to write file: %s\n", filename); 13 | return false; 14 | } 15 | 16 | int n; 17 | n = fwrite(&width, sizeof(int), 1, fp); 18 | assert(n == 1); 19 | 20 | n = fwrite(&height, sizeof(int), 1, fp); 21 | assert(n == 1); 22 | 23 | n = fwrite(data, sizeof(double), width * height, fp); 24 | assert(n == width * height); 25 | 26 | fclose(fp); 27 | 28 | return true; 29 | } 30 | 31 | bool LoadMMM(double **data, int &width, int &height, const char *filename) { 32 | 33 | FILE *fp = fopen(filename, "rb"); 34 | if (!fp) { 35 | fprintf(stderr, "[MMM] Failed to read file: %s\n", filename); 36 | return false; 37 | } 38 | 39 | int n; 40 | n = fread(&width, sizeof(int), 1, fp); 41 | assert(n == 1); 42 | 43 | n = fread(&height, sizeof(int), 1, fp); 44 | assert(n == 1); 45 | 46 | (*data) = reinterpret_cast( 47 | malloc(sizeof(double) * (size_t)width * (size_t)height)); 48 | n = fread((*data), sizeof(double), width * height, fp); 49 | assert(n == width * height); 50 | 51 | fclose(fp); 52 | return true; 53 | } 54 | -------------------------------------------------------------------------------- /mmm_io.h: -------------------------------------------------------------------------------- 1 | #ifndef __MALLIE_MMM_IO_H__ 2 | #define __MALLIE_MMM_IO_H__ 3 | 4 | // 5 | // MMM = Mallie MonochroMe image format. 6 | // 7 | 8 | namespace mallie { 9 | 10 | bool SaveMMM(const char *filename, double *data, int width, int height); 11 | 12 | bool LoadMMM(double **data, int &width, int &height, const char *filename); 13 | }; 14 | 15 | #endif // __MALLIE_MMM_IO_H__ 16 | -------------------------------------------------------------------------------- /prim-plane.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include "prim-plane.h" 5 | 6 | using namespace mallie; 7 | 8 | bool Plane::intersect(Intersection *info, const Ray &ray) { 9 | real3 n(m_a, m_b, m_c); 10 | real3 v = ray.dir; 11 | v.normalize(); 12 | float vn = vdot(v, n); 13 | 14 | if (std::abs(vn) > std::numeric_limits::epsilon() * 1024.0f) { 15 | float on_d = vdot(ray.org, n) + m_d; 16 | float t = -on_d / vn; 17 | 18 | if ((t > 0) && (t < info->t)) { 19 | 20 | info->t = t; 21 | info->position = ray.org + t * v; 22 | 23 | n.normalize(); 24 | info->geometricNormal = n; 25 | info->normal = n; 26 | info->tangent[0] = 1.0; // @fixme 27 | info->tangent[1] = 0.0; 28 | info->tangent[2] = 0.0; 29 | info->binormal[0] = 0.0; // @fixme 30 | info->binormal[1] = 0.0; 31 | info->binormal[2] = -1.0; 32 | info->texcoord[0] = 0.0; 33 | info->texcoord[1] = 0.0; 34 | info->materialID = (unsigned int)(-1); // invalid 35 | 36 | return true; 37 | } 38 | 39 | return false; 40 | 41 | } else { 42 | return false; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /prim-plane.h: -------------------------------------------------------------------------------- 1 | #ifndef __MALLIE_PRIM_PLANE_HPP__ 2 | #define __MALLIE_PRIM_PLANE_HPP__ 3 | 4 | #include "intersection.h" 5 | #include "common.h" 6 | 7 | namespace mallie { 8 | 9 | class Plane { 10 | public: 11 | Plane() {} 12 | 13 | ~Plane() {} 14 | 15 | void set(float a, float b, float c, float d) { 16 | m_a = a; 17 | m_b = b; 18 | m_c = c; 19 | m_d = d; 20 | } 21 | 22 | bool intersect(Intersection *info, const Ray &ray); 23 | 24 | float m_a, m_b, m_c, m_d; 25 | }; 26 | } 27 | 28 | #endif // __MALLIE_PLANE_HPP__ 29 | -------------------------------------------------------------------------------- /script_engine.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include "duktape.h" 5 | 6 | #include "script_engine.h" 7 | 8 | namespace { 9 | 10 | static duk_context *gJS; 11 | 12 | static duk_ret_t native_prime_check(duk_context *ctx) { 13 | int val = duk_require_int(ctx, 0); 14 | int lim = duk_require_int(ctx, 1); 15 | int i; 16 | 17 | for (i = 2; i <= lim; i++) { 18 | if (val % i == 0) { 19 | duk_push_false(ctx); 20 | return 1; 21 | } 22 | } 23 | 24 | duk_push_true(ctx); 25 | return 1; 26 | } 27 | 28 | } // namespace 29 | 30 | void ScriptEngine::Release() { duk_destroy_heap(gJS); } 31 | 32 | void ScriptEngine::Create() { 33 | Release(); 34 | 35 | gJS = duk_create_heap_default(); 36 | 37 | duk_push_global_object(gJS); 38 | duk_push_c_function(gJS, native_prime_check, 2 /*nargs*/); 39 | duk_put_prop_string(gJS, -2, "primeCheckNative"); 40 | 41 | Eval("primeCheckNative(1,3);\n"); 42 | 43 | return; 44 | } 45 | 46 | bool ScriptEngine::Eval(const char *str) { 47 | 48 | duk_push_string(gJS, str); 49 | if (duk_peval(gJS) != 0) { 50 | printf("> eval failed: %s\n", duk_safe_to_string(gJS, -1)); 51 | return false; 52 | } else { 53 | printf("> result: %s\n", duk_safe_to_string(gJS, -1)); 54 | } 55 | 56 | duk_pop(gJS); 57 | 58 | return true; 59 | } 60 | -------------------------------------------------------------------------------- /script_engine.h: -------------------------------------------------------------------------------- 1 | #ifndef __MALLIE_SCRIPT_ENGINE_H__ 2 | #define __MALLIE_SCRIPT_ENGINE_H__ 3 | 4 | class ScriptEngine { 5 | public: 6 | ScriptEngine(); 7 | ~ScriptEngine(); 8 | 9 | static void Create(); 10 | static void Release(); 11 | 12 | static bool Eval(const char *str); 13 | }; 14 | 15 | #endif // __MALLIE_SCRIPT_ENGINE_H__ 16 | -------------------------------------------------------------------------------- /scripts/build_deplibs_linux.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | curdir=`pwd` 4 | targetdir="${curdir}"/extlibs/linux/SDL2 5 | 6 | cd deps/SDL2-2.0.3 7 | rm -rf mybuild 8 | mkdir mybuild 9 | cd mybuild 10 | ../configure --prefix="${targetdir}" --disable-shared 11 | make && make install 12 | 13 | cd "${curdir}" 14 | 15 | -------------------------------------------------------------------------------- /scripts/build_deplibs_macosx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | curdir=`pwd` 4 | targetdir="${curdir}"/extlibs/macosx/SDL2 5 | 6 | cd deps/SDL2-2.0.3 7 | rm -rf mybuild 8 | mkdir mybuild 9 | cd mybuild 10 | ../configure --prefix="${targetdir}" --disable-shared 11 | make && make install 12 | 13 | cd "${curdir}" 14 | 15 | -------------------------------------------------------------------------------- /scripts/setup_linux.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | flags='--with-sdl --with-openmp' 4 | 5 | ./tools/linux/premake4 ${flags} gmake 6 | -------------------------------------------------------------------------------- /scripts/setup_linux_aarch64.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | flags='--arm' 4 | 5 | ./tools/linux/premake4 ${flags} gmake 6 | 7 | # change CC, CXX compiler 8 | sed -i -e 's/ifndef CC/CC=aarch64-linux-gnu-gcc\nifndef CC/g' Mallie.make 9 | sed -i -e 's/ifndef CXX/CXX=aarch64-linux-gnu-g++\nifndef CXX/g' Mallie.make 10 | -------------------------------------------------------------------------------- /scripts/setup_macosx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | args=`echo "$@" | tr -d "\r\n"` 4 | 5 | if [ -n "${args}" ]; then 6 | flags="${args}" 7 | else 8 | flags='--with-sdl --with-openmp' 9 | fi 10 | 11 | 12 | echo premake flags: ${flags} 13 | 14 | ./tools/macosx/premake4 ${flags} gmake 15 | 16 | # change CC, CXX compiler 17 | gsed -i -e 's/ifndef CC/CC=gcc-4.8\nifndef CC/g' Mallie.make 18 | gsed -i -e 's/ifndef CXX/CXX=g++-4.8\nifndef CXX/g' Mallie.make 19 | -------------------------------------------------------------------------------- /switch_gcc48.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | export CC=gcc-4.8 4 | export CXX=g++-4.8 5 | -------------------------------------------------------------------------------- /teapot.mtl: -------------------------------------------------------------------------------- 1 | # Default material file. Created by Morgan McGuire and released into 2 | # the Public Domain on July 16, 2011. 3 | # 4 | # http://graphics.cs.williams.edu/data 5 | 6 | newmtl default 7 | Ns 10.0000 8 | Ni 1.5000 9 | Tr 0 0 10 | illum 2 11 | Ka 1 1 1 12 | Kd 1 1 1 13 | Ks 0.2 0.2 0.2 14 | Ke 0 0 0 15 | map_Kd default.png 16 | -------------------------------------------------------------------------------- /test/cctest/test-atomic.cc: -------------------------------------------------------------------------------- 1 | #include "gtest/gtest.h" 2 | 3 | #if defined(__sparc__) 4 | 5 | #define ASI_P "0x80" 6 | 7 | static inline int 8 | SparcCompareAndSwapU64( 9 | volatile int64_t *addr, 10 | int64_t oldval, int64_t newval) 11 | { 12 | // From OpenMPI. 13 | 14 | /* casa [reg(rs1)] %asi, reg(rs2), reg(rd) 15 | * 16 | * if (*(reg(rs1)) == reg(rs1) ) 17 | * swap reg(rd), *(reg(rs1)) 18 | * else 19 | * reg(rd) = *(reg(rs1)) 20 | */ 21 | int64_t ret = newval; 22 | 23 | __asm__ __volatile__("casxa [%1] " ASI_P ", %2, %0" 24 | : "+r" (ret) 25 | : "r" (addr), "r" (oldval)); 26 | return (ret == oldval); 27 | } 28 | 29 | TEST(AtomicTest, CAS64) { 30 | 31 | double a = 0.1; 32 | double b = 0.2; 33 | double c = 0.3; 34 | 35 | void* addr = &a; 36 | void* oldaddr = &b; 37 | void* newaddr = &c; 38 | int ret = SparcCompareAndSwapU64((int64_t*)&addr, reinterpret_cast(oldaddr), reinterpret_cast(newaddr)); 39 | 40 | EXPECT_EQ(ret, 0); 41 | 42 | addr = &a; 43 | oldaddr = &a; 44 | newaddr = &c; 45 | ret = SparcCompareAndSwapU64((int64_t*)&addr, reinterpret_cast(oldaddr), reinterpret_cast(newaddr)); 46 | 47 | EXPECT_EQ(ret, 1); 48 | 49 | } 50 | #endif 51 | -------------------------------------------------------------------------------- /test/cctest/test-main.cc: -------------------------------------------------------------------------------- 1 | #ifdef _OPENMP 2 | #include 3 | #endif 4 | 5 | #include 6 | 7 | #include "gtest/gtest.h" 8 | 9 | GTEST_API_ int main(int argc, char **argv) { 10 | 11 | //printf("Running main() from gtest_main.cc\n"); 12 | testing::InitGoogleTest(&argc, argv); 13 | int ret = RUN_ALL_TESTS(); 14 | 15 | return ret; 16 | } 17 | -------------------------------------------------------------------------------- /texture.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef ENABLE_PTEX 4 | #include 5 | #endif 6 | 7 | #ifdef ENABLE_PTEX 8 | PtexCache *InitPtex() { 9 | int maxMem = 1024 * 1024; 10 | PtexCache *c = PtexCache::create(0, maxMem); 11 | 12 | return c; 13 | } 14 | 15 | PtexTexture *LoadPtex(PtexCache *cache, const char *filename) { 16 | Ptex::String err; 17 | PtexTexture *r = PtexTexture::open(filename, err, /* premult */ 0); 18 | 19 | printf("[Mallie] PtexTexture: %p\n", r); 20 | 21 | if (!r) { 22 | std::cerr << err.c_str() << std::endl; 23 | return NULL; 24 | } 25 | 26 | return r; 27 | } 28 | #endif 29 | -------------------------------------------------------------------------------- /texture.h: -------------------------------------------------------------------------------- 1 | #ifndef __MALLIE_TEXTURE_H__ 2 | #define __MALLIE_TEXTURE_H__ 3 | 4 | namespace mallie { 5 | 6 | // PTex 7 | class PTexture() { 8 | public: 9 | PTexture(); 10 | ~PTexture(); 11 | 12 | private: 13 | #ifdef ENABLE_PTEX 14 | 15 | #endif 16 | }; 17 | 18 | } // namespace 19 | 20 | #endif // __MALLIE_TEXTURE_H__ 21 | -------------------------------------------------------------------------------- /tools/linux/premake4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/tools/linux/premake4 -------------------------------------------------------------------------------- /tools/macosx/ispc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/tools/macosx/ispc -------------------------------------------------------------------------------- /tools/macosx/premake4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/tools/macosx/premake4 -------------------------------------------------------------------------------- /tools/solaris/premake4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/tools/solaris/premake4 -------------------------------------------------------------------------------- /tools/windows/premake4.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/tools/windows/premake4.exe -------------------------------------------------------------------------------- /tools/windows/premake5.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lighttransport/mallie/2ec03e06369da62eab37e2e524adeccd193911ce/tools/windows/premake5.exe -------------------------------------------------------------------------------- /vcbuild.bat: -------------------------------------------------------------------------------- 1 | rem -- config -- 2 | rem set target=vs2010 3 | rem set buildtype=release 4 | 5 | set target=vs2013 6 | set buildtype=release 7 | set myplatform=x64 8 | 9 | tools\\windows\\premake5.exe --with-sdl %target% %buildtype% 10 | -------------------------------------------------------------------------------- /vcm.cc: -------------------------------------------------------------------------------- 1 | #include "bsdf.h" 2 | #include "light.h" 3 | -------------------------------------------------------------------------------- /version.h: -------------------------------------------------------------------------------- 1 | #ifndef __MALLIE_VERSION_H__ 2 | #define __MALLIE_VERSION_H__ 3 | 4 | #define MALLIE_VERSION "0.1" 5 | 6 | namespace mallie {}; 7 | 8 | #endif // __MALLIE_VERSION_H__ 9 | --------------------------------------------------------------------------------