├── .gitignore ├── CMakeLists.txt ├── LICENSE ├── MacUI ├── AppDelegate.h ├── AppDelegate.m ├── SetupViewController.h └── SetupViewController.m ├── Makefile ├── README.md ├── Rvm_Win64.sln ├── Rvm_Win64 ├── Rvm_Win64.aps ├── Rvm_Win64.rc ├── Rvm_Win64.vcxproj ├── Rvm_Win64.vcxproj.filters ├── Rvm_Win64.vcxproj.user ├── SDL_win32_main.c ├── icon1.ico ├── references │ ├── BUGS.txt │ ├── COPYING.txt │ ├── README-SDL.txt │ ├── README.txt │ ├── WhatsNew.txt │ ├── include │ │ ├── GL │ │ │ ├── eglew.h │ │ │ ├── glew.h │ │ │ ├── glxew.h │ │ │ └── wglew.h │ │ ├── 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_macosx.h.orig │ │ ├── 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_metal.h │ │ ├── SDL_mixer.h │ │ ├── SDL_mouse.h │ │ ├── SDL_mutex.h │ │ ├── SDL_name.h │ │ ├── SDL_opengl.h │ │ ├── SDL_opengl_glext.h │ │ ├── SDL_opengles.h │ │ ├── SDL_opengles2.h │ │ ├── SDL_opengles2_gl2.h │ │ ├── SDL_opengles2_gl2ext.h │ │ ├── SDL_opengles2_gl2platform.h │ │ ├── SDL_opengles2_khrplatform.h │ │ ├── SDL_pixels.h │ │ ├── SDL_platform.h │ │ ├── SDL_power.h │ │ ├── SDL_quit.h │ │ ├── SDL_rect.h │ │ ├── SDL_render.h │ │ ├── SDL_revision.h │ │ ├── SDL_rwops.h │ │ ├── SDL_scancode.h │ │ ├── SDL_sensor.h │ │ ├── SDL_shape.h │ │ ├── SDL_stdinc.h │ │ ├── SDL_surface.h │ │ ├── SDL_system.h │ │ ├── SDL_syswm.h │ │ ├── SDL_test.h │ │ ├── SDL_test_assert.h │ │ ├── SDL_test_common.h │ │ ├── SDL_test_compare.h │ │ ├── SDL_test_crc32.h │ │ ├── SDL_test_font.h │ │ ├── SDL_test_fuzzer.h │ │ ├── SDL_test_harness.h │ │ ├── SDL_test_images.h │ │ ├── SDL_test_log.h │ │ ├── SDL_test_md5.h │ │ ├── SDL_test_memory.h │ │ ├── SDL_test_random.h │ │ ├── SDL_thread.h │ │ ├── SDL_timer.h │ │ ├── SDL_touch.h │ │ ├── SDL_types.h │ │ ├── SDL_version.h │ │ ├── SDL_video.h │ │ ├── SDL_vulkan.h │ │ ├── begin_code.h │ │ └── close_code.h │ └── lib │ │ └── x64 │ │ ├── LICENSE.FLAC.txt │ │ ├── LICENSE.modplug.txt │ │ ├── LICENSE.mpg123.txt │ │ ├── LICENSE.ogg-vorbis.txt │ │ ├── LICENSE.opus.txt │ │ ├── LICENSE.opusfile.txt │ │ ├── SDL2.dll │ │ ├── SDL2.lib │ │ ├── SDL2_mixer.dll │ │ ├── SDL2_mixer.lib │ │ ├── SDL2main.lib │ │ ├── SDL2test.lib │ │ ├── glew32.dll │ │ ├── glew32.lib │ │ ├── glew32s.lib │ │ ├── libFLAC-8.dll │ │ ├── libmodplug-1.dll │ │ ├── libmpg123-0.dll │ │ ├── libogg-0.dll │ │ ├── libopus-0.dll │ │ ├── libopusfile-0.dll │ │ ├── libvorbis-0.dll │ │ └── libvorbisfile-3.dll ├── resource.h └── win_main.c ├── SDL2.framework ├── Headers ├── Resources ├── SDL2 └── Versions │ ├── A │ ├── Frameworks │ │ └── hidapi.framework │ │ │ ├── Resources │ │ │ ├── Versions │ │ │ ├── A │ │ │ │ ├── Resources │ │ │ │ │ ├── AUTHORS.txt │ │ │ │ │ ├── Info.plist │ │ │ │ │ ├── LICENSE-bsd.txt │ │ │ │ │ ├── LICENSE-gpl3.txt │ │ │ │ │ ├── LICENSE-orig.txt │ │ │ │ │ └── LICENSE.txt │ │ │ │ ├── _CodeSignature │ │ │ │ │ └── CodeResources │ │ │ │ └── hidapi │ │ │ └── Current │ │ │ └── hidapi │ ├── Headers │ │ ├── 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_macosx.h │ │ ├── SDL_copying.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_metal.h │ │ ├── SDL_mouse.h │ │ ├── SDL_mutex.h │ │ ├── SDL_name.h │ │ ├── SDL_opengl.h │ │ ├── SDL_opengl_glext.h │ │ ├── SDL_opengles.h │ │ ├── SDL_opengles2.h │ │ ├── SDL_opengles2_gl2.h │ │ ├── SDL_opengles2_gl2ext.h │ │ ├── SDL_opengles2_gl2platform.h │ │ ├── SDL_opengles2_khrplatform.h │ │ ├── SDL_pixels.h │ │ ├── SDL_platform.h │ │ ├── SDL_power.h │ │ ├── SDL_quit.h │ │ ├── SDL_rect.h │ │ ├── SDL_render.h │ │ ├── SDL_revision.h │ │ ├── SDL_rwops.h │ │ ├── SDL_scancode.h │ │ ├── SDL_sensor.h │ │ ├── SDL_shape.h │ │ ├── SDL_stdinc.h │ │ ├── SDL_surface.h │ │ ├── SDL_system.h │ │ ├── SDL_syswm.h │ │ ├── SDL_thread.h │ │ ├── SDL_timer.h │ │ ├── SDL_touch.h │ │ ├── SDL_types.h │ │ ├── SDL_version.h │ │ ├── SDL_video.h │ │ ├── SDL_vulkan.h │ │ ├── begin_code.h │ │ └── close_code.h │ ├── Resources │ │ ├── Info.plist │ │ ├── License.txt │ │ ├── ReadMe.txt │ │ └── default.metallib │ ├── SDL2 │ └── _CodeSignature │ │ └── CodeResources │ └── Current ├── SDL2_mixer.framework ├── Frameworks ├── Headers ├── Resources ├── SDL2_mixer └── Versions │ ├── A │ ├── Frameworks │ │ ├── Ogg.framework │ │ │ ├── Headers │ │ │ ├── Ogg │ │ │ ├── Resources │ │ │ └── Versions │ │ │ │ ├── A │ │ │ │ ├── Headers │ │ │ │ │ ├── config_types.h │ │ │ │ │ ├── ogg.h │ │ │ │ │ └── os_types.h │ │ │ │ ├── Ogg │ │ │ │ ├── Resources │ │ │ │ │ └── Info.plist │ │ │ │ └── _CodeSignature │ │ │ │ │ └── CodeResources │ │ │ │ └── Current │ │ └── Vorbis.framework │ │ │ ├── Headers │ │ │ ├── Resources │ │ │ ├── Versions │ │ │ ├── A │ │ │ │ ├── Headers │ │ │ │ │ ├── codec.h │ │ │ │ │ ├── vorbisenc.h │ │ │ │ │ └── vorbisfile.h │ │ │ │ ├── Resources │ │ │ │ │ └── Info.plist │ │ │ │ ├── Vorbis │ │ │ │ └── _CodeSignature │ │ │ │ │ └── CodeResources │ │ │ └── Current │ │ │ └── Vorbis │ ├── Headers │ │ └── SDL_mixer.h │ ├── Resources │ │ └── Info.plist │ ├── SDL2_mixer │ └── _CodeSignature │ │ └── CodeResources │ └── Current ├── icon.jpg ├── rvm.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcshareddata │ └── xcschemes │ └── rvm.xcscheme └── rvm ├── Assets.xcassets └── AppIcon.appiconset │ ├── Contents.json │ ├── icesonic-1.png │ ├── icesonic.png │ ├── icesonic128.png │ ├── icesonic256-1.png │ ├── icesonic256.png │ ├── icesonic32.png │ └── icesonic64.png ├── Base.lproj └── MainMenu.xib ├── Core ├── AnimationFileList.h ├── AnimationSystem.c ├── AnimationSystem.h ├── AudioPlayback.c ├── AudioPlayback.h ├── CollisionBox.h ├── CollisionMask16x16.h ├── CollisionSensor.h ├── DrawVertex.h ├── DrawVertex3D.h ├── EngineCallbacks.c ├── EngineCallbacks.h ├── Face3D.h ├── FileData.h ├── FileIO.c ├── FileIO.h ├── FontCharacter.h ├── FunctionScript.h ├── GfxSurfaceDesc.h ├── GifDecoder.h ├── GifLoader.c ├── GifLoader.h ├── GlobalAppDefinitions.c ├── GlobalAppDefinitions.h ├── GraphicsSystem.c ├── GraphicsSystem.h ├── InputResult.h ├── InputSystem.c ├── InputSystem.h ├── LayoutMap.h ├── LineScrollParallax.h ├── Mappings128x128.h ├── MpvPlayer.c ├── MpvPlayer.h ├── MusicTrackInfo.h ├── ObjectDrawList.h ├── ObjectEntity.h ├── ObjectScript.h ├── ObjectSystem.c ├── ObjectSystem.h ├── PaletteEntry.h ├── PlayerObject.h ├── PlayerStatistics.h ├── PlayerSystem.c ├── PlayerSystem.h ├── Quad2D.h ├── RenderDevice.c ├── RenderDevice.h ├── Scene3D.c ├── Scene3D.h ├── ScriptEngine.h ├── SortList.h ├── SpriteAnimation.h ├── SpriteFrame.h ├── StageList.h ├── StageSystem.c ├── StageSystem.h ├── TextMenu.h ├── TextSystem.c ├── TextSystem.h ├── Vertex2D.h └── Vertex3D.h ├── Info.plist ├── main.m └── main_linux.c /.gitignore: -------------------------------------------------------------------------------- 1 | rvm.xcodeproj/project.xcworkspace/xcuserdata 2 | .vs 3 | .vscode 4 | Rvm_Win64/x64 5 | /x64* 6 | *.o 7 | webOut/* 8 | rvm.xcodeproj/project.xcworkspace/xcuserdata 9 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(soniccd) 2 | 3 | cmake_minimum_required(VERSION 3.0) 4 | 5 | include(FindPkgConfig) 6 | 7 | option(ENABLE_MPV "Enable MPV support" OFF) 8 | 9 | set(CMAKE_C_FLAGS "-g -DLINUX -DSDL_DISABLE_IMMINTRIN_H -DSDL_DISABLE_MMINTRIN_H -std=c99 ${CMAKE_C_FLAGS}") 10 | 11 | pkg_check_modules(SDL2 sdl2 REQUIRED) 12 | pkg_check_modules(SDL2_mixer SDL2_mixer REQUIRED) 13 | 14 | if(ENABLE_MPV) 15 | pkg_check_modules(MPV mpv REQUIRED) 16 | set(CMAKE_C_FLAGS "-DENABLE_MPV ${CMAKE_C_FLAGS}") 17 | set(EXTRA_LIBS ${MPV_LIBRARIES}) 18 | endif(ENABLE_MPV) 19 | 20 | if(NSWITCH) 21 | set(CMAKE_C_FLAGS "-DGLEW_NO_GLU ${CMAKE_C_FLAGS}") 22 | find_package(GLEW REQUIRED) 23 | find_library(GLEW_LIBRARY NAMES GLEW) 24 | set(EXTRA_LIBS ${GLEW_LIBRARY} ${EXTRA_LIBS}) 25 | else() 26 | set(OpenGL_GL_PREFERENCE LEGACY) 27 | find_package(OpenGL REQUIRED) 28 | set(EXTRA_LIBS ${OPENGL_gl_LIBRARY} ${EXTRA_LIBS}) 29 | endif(NSWITCH) 30 | 31 | include_directories( 32 | ${SDL2_INCLUDE_DIRS} 33 | ${CMAKE_SOURCE_DIR}/rvm/Core 34 | ) 35 | 36 | file(GLOB SRC rvm/*.c rvm/Core/*.c) 37 | add_executable(${CMAKE_PROJECT_NAME} 38 | ${SRC} 39 | ) 40 | 41 | target_link_libraries(${CMAKE_PROJECT_NAME} 42 | ${SDL2_mixer_LIBRARIES} 43 | ${EXTRA_LIBS} 44 | m 45 | ) 46 | 47 | if(NSWITCH) 48 | add_definitions(-D__SWITCH__) 49 | add_custom_target(${CMAKE_PROJECT_NAME}.nro 50 | DEPENDS ${CMAKE_PROJECT_NAME} 51 | COMMAND nacptool --create "Sonic CD" "Sappharad, usineur" "0.7.5" ${CMAKE_PROJECT_NAME}.nacp 52 | COMMAND elf2nro ${CMAKE_PROJECT_NAME} ${CMAKE_PROJECT_NAME}.nro --icon=${CMAKE_SOURCE_DIR}/icon.jpg --nacp=${CMAKE_PROJECT_NAME}.nacp 53 | ) 54 | add_custom_target(nxlink 55 | COMMAND nxlink -a $(SWITCHIP) ${CMAKE_PROJECT_NAME}.nro -s -p ${CMAKE_PROJECT_NAME}/${CMAKE_PROJECT_NAME}.nro 56 | DEPENDS ${CMAKE_PROJECT_NAME}.nro 57 | ) 58 | endif(NSWITCH) 59 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This repository is an attempt to recreate the original 2011 Retro Engine Sonic CD code as closely as possible. 2 | 3 | Since it tries to be a clone rather than a compatible recreation, you absolutely should not use this code for anything other than unofficial ports of the game. Do not bundle it with game data. 4 | 5 | You can learn from it and change it, but don't try to use it for developing a new project. -------------------------------------------------------------------------------- /MacUI/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // rvm 4 | // 5 | 6 | #import 7 | #import 8 | #import "SetupViewController.h" 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface AppDelegate : NSObject 13 | @property (weak) IBOutlet NSWindow *wndSetup; 14 | @property (weak) IBOutlet SetupViewController *SetupVC; 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /MacUI/SetupViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SetupViewController.h 3 | // rvm 4 | // 5 | 6 | #import 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface SetupViewController : NSViewController 11 | @property (weak) IBOutlet NSWindow *wndSetup; 12 | @property bool ReadyToPlay; 13 | @property NSString* RsdkPath; 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /MacUI/SetupViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // SetupViewController.m 3 | // rvm 4 | // 5 | 6 | #import "SetupViewController.h" 7 | #include "FileIO.h" 8 | 9 | @interface SetupViewController () 10 | 11 | @end 12 | 13 | @implementation SetupViewController 14 | 15 | - (void)viewDidLoad { 16 | [super viewDidLoad]; 17 | // Do view setup here. 18 | } 19 | 20 | - (void)awakeFromNib { 21 | [super awakeFromNib]; 22 | _ReadyToPlay = NO; 23 | } 24 | 25 | -(BOOL)panel:(id)sender shouldEnableURL:(NSURL *)url{ 26 | if(url.hasDirectoryPath){ 27 | return YES; 28 | } 29 | else if([url.lastPathComponent.lowercaseString isEqualToString:@"data.rsdk"]){ 30 | return YES; 31 | } 32 | return NO; 33 | } 34 | 35 | - (IBAction)btnSelectData:(id)sender { 36 | NSOpenPanel* nop = [NSOpenPanel openPanel]; 37 | nop.delegate = self; 38 | nop.allowedFileTypes = @[@"rsdk"]; 39 | [nop beginSheetModalForWindow:_wndSetup completionHandler:^(NSModalResponse result) { 40 | if(result == NSModalResponseOK){ 41 | const char* cPath = [nop.URL.path cStringUsingEncoding:NSString.defaultCStringEncoding]; 42 | if(FileIO_IsValidDataRsdk(cPath)){ 43 | self.RsdkPath = nop.URL.path; 44 | self.ReadyToPlay = YES; 45 | [self->_wndSetup close]; 46 | } 47 | else{ 48 | NSAlert *alert = [[NSAlert alloc] init]; 49 | [alert setMessageText:@"Incorrect file"]; 50 | [alert setInformativeText:@"The selected file is not game data compatible with Sonic CD 2011."]; 51 | [alert addButtonWithTitle:@"OK"]; 52 | [alert setAlertStyle:NSAlertStyleCritical]; 53 | [alert beginSheetModalForWindow:self->_wndSetup completionHandler:^(NSModalResponse returnCode) { }]; 54 | } 55 | } 56 | }]; 57 | } 58 | 59 | @end 60 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # This makefile is actually for emscripten, but you could probably adapt it for Linux 2 | TARGET = rvmscd 3 | 4 | CFLAGS = -DLINUX -DSDL_DISABLE_IMMINTRIN_H -DSDL_DISABLE_MMINTRIN_H -Irvm/Core/ -std=c99 -s USE_SDL=2 -s USE_SDL_MIXER=2 5 | 6 | CSRC := rvm/main_linux.c rvm/Core/AnimationSystem.c rvm/Core/GifLoader.c rvm/Core/ObjectSystem.c \ 7 | rvm/Core/StageSystem.c rvm/Core/AudioPlayback.c rvm/Core/GlobalAppDefinitions.c rvm/Core/PlayerSystem.c \ 8 | rvm/Core/TextSystem.c rvm/Core/EngineCallbacks.c rvm/Core/GraphicsSystem.c rvm/Core/RenderDevice.c \ 9 | rvm/Core/FileIO.c rvm/Core/InputSystem.c rvm/Core/Scene3D.c 10 | 11 | COBJ = $(patsubst %.c, %.o, $(CSRC)) 12 | 13 | OBJS = $(COBJ) 14 | 15 | all: rm-elf $(TARGET) 16 | 17 | clean: 18 | -rm -f $(TARGET) $(OBJS) 19 | 20 | rm-elf: 21 | -rm -f $(TARGET) 22 | 23 | $(TARGET): $(OBJS) 24 | mkdir -p webOut 25 | emcc -o webOut/$(TARGET).html $(OBJS) $(OBJEXTRA) -lSDL2 -lSDL2_Mixer -lGL -lm -s USE_OGG=1 -s USE_VORBIS=1 -s LEGACY_GL_EMULATION=1 -s ALLOW_MEMORY_GROWTH=1 -s --preload-file ../Data.rsdk@Data.rsdk 26 | 27 | run: $(TARGET) 28 | $(TARGET) 29 | 30 | dist: 31 | rm -f $(OBJS) 32 | $(TARGET) 33 | -------------------------------------------------------------------------------- /Rvm_Win64.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28010.2003 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Rvm_Win64", "Rvm_Win64\Rvm_Win64.vcxproj", "{194E2F81-BE68-44CE-A1DA-FAA3A71FB8CB}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Debug|x86 = Debug|x86 12 | Release|x64 = Release|x64 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {194E2F81-BE68-44CE-A1DA-FAA3A71FB8CB}.Debug|x64.ActiveCfg = Debug|x64 17 | {194E2F81-BE68-44CE-A1DA-FAA3A71FB8CB}.Debug|x64.Build.0 = Debug|x64 18 | {194E2F81-BE68-44CE-A1DA-FAA3A71FB8CB}.Debug|x86.ActiveCfg = Debug|Win32 19 | {194E2F81-BE68-44CE-A1DA-FAA3A71FB8CB}.Debug|x86.Build.0 = Debug|Win32 20 | {194E2F81-BE68-44CE-A1DA-FAA3A71FB8CB}.Release|x64.ActiveCfg = Release|x64 21 | {194E2F81-BE68-44CE-A1DA-FAA3A71FB8CB}.Release|x64.Build.0 = Release|x64 22 | {194E2F81-BE68-44CE-A1DA-FAA3A71FB8CB}.Release|x86.ActiveCfg = Release|Win32 23 | {194E2F81-BE68-44CE-A1DA-FAA3A71FB8CB}.Release|x86.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {50205B9C-DC19-4A4F-B9BA-603276463D44} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /Rvm_Win64/Rvm_Win64.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/Rvm_Win64.aps -------------------------------------------------------------------------------- /Rvm_Win64/Rvm_Win64.rc: -------------------------------------------------------------------------------- 1 | // Microsoft Visual C++ generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #include "winres.h" 11 | 12 | ///////////////////////////////////////////////////////////////////////////// 13 | #undef APSTUDIO_READONLY_SYMBOLS 14 | 15 | ///////////////////////////////////////////////////////////////////////////// 16 | // English (United States) resources 17 | 18 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 19 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 20 | #pragma code_page(1252) 21 | 22 | #ifdef APSTUDIO_INVOKED 23 | ///////////////////////////////////////////////////////////////////////////// 24 | // 25 | // TEXTINCLUDE 26 | // 27 | 28 | 1 TEXTINCLUDE 29 | BEGIN 30 | "resource.h\0" 31 | END 32 | 33 | 2 TEXTINCLUDE 34 | BEGIN 35 | "#include ""winres.h""\r\n" 36 | "\0" 37 | END 38 | 39 | 3 TEXTINCLUDE 40 | BEGIN 41 | "\r\n" 42 | "\0" 43 | END 44 | 45 | #endif // APSTUDIO_INVOKED 46 | 47 | 48 | ///////////////////////////////////////////////////////////////////////////// 49 | // 50 | // Icon 51 | // 52 | 53 | // Icon with lowest ID value placed first to ensure application icon 54 | // remains consistent on all systems. 55 | IDI_ICON1 ICON "icon1.ico" 56 | 57 | #endif // English (United States) resources 58 | ///////////////////////////////////////////////////////////////////////////// 59 | 60 | 61 | 62 | #ifndef APSTUDIO_INVOKED 63 | ///////////////////////////////////////////////////////////////////////////// 64 | // 65 | // Generated from the TEXTINCLUDE 3 resource. 66 | // 67 | 68 | 69 | ///////////////////////////////////////////////////////////////////////////// 70 | #endif // not APSTUDIO_INVOKED 71 | 72 | -------------------------------------------------------------------------------- /Rvm_Win64/Rvm_Win64.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir) 5 | WindowsLocalDebugger 6 | 7 | -------------------------------------------------------------------------------- /Rvm_Win64/icon1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/icon1.ico -------------------------------------------------------------------------------- /Rvm_Win64/references/BUGS.txt: -------------------------------------------------------------------------------- 1 | 2 | Bugs are now managed in the SDL bug tracker, here: 3 | 4 | https://bugzilla.libsdl.org/ 5 | 6 | You may report bugs there, and search to see if a given issue has already 7 | been reported, discussed, and maybe even fixed. 8 | 9 | 10 | You may also find help at the SDL forums/mailing list: 11 | 12 | https://discourse.libsdl.org/ 13 | 14 | Bug reports are welcome here, but we really appreciate if you use Bugzilla, as 15 | bugs discussed on the mailing list may be forgotten or missed. 16 | 17 | -------------------------------------------------------------------------------- /Rvm_Win64/references/COPYING.txt: -------------------------------------------------------------------------------- 1 | 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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 | -------------------------------------------------------------------------------- /Rvm_Win64/references/README-SDL.txt: -------------------------------------------------------------------------------- 1 | 2 | Please distribute this file with the SDL runtime environment: 3 | 4 | The Simple DirectMedia Layer (SDL for short) is a cross-platform library 5 | designed to make it easy to write multi-media software, such as games 6 | and emulators. 7 | 8 | The Simple DirectMedia Layer library source code is available from: 9 | https://www.libsdl.org/ 10 | 11 | This library is distributed under the terms of the zlib license: 12 | http://www.zlib.net/zlib_license.html 13 | 14 | -------------------------------------------------------------------------------- /Rvm_Win64/references/README.txt: -------------------------------------------------------------------------------- 1 | 2 | Simple DirectMedia Layer 3 | 4 | (SDL) 5 | 6 | Version 2.0 7 | 8 | --- 9 | https://www.libsdl.org/ 10 | 11 | Simple DirectMedia Layer is a cross-platform development library designed 12 | to provide low level access to audio, keyboard, mouse, joystick, and graphics 13 | hardware via OpenGL and Direct3D. It is used by video playback software, 14 | emulators, and popular games including Valve's award winning catalog 15 | and many Humble Bundle games. 16 | 17 | More extensive documentation is available in the docs directory, starting 18 | with README.md 19 | 20 | Enjoy! 21 | Sam Lantinga (slouken@libsdl.org) 22 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_bits.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_bits.h 24 | * 25 | * Functions for fiddling with bits and bitmasks. 26 | */ 27 | 28 | #ifndef SDL_bits_h_ 29 | #define SDL_bits_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \file SDL_bits.h 41 | */ 42 | 43 | /** 44 | * Get the index of the most significant bit. Result is undefined when called 45 | * with 0. This operation can also be stated as "count leading zeroes" and 46 | * "log base 2". 47 | * 48 | * \return Index of the most significant bit, or -1 if the value is 0. 49 | */ 50 | #if defined(__WATCOMC__) && defined(__386__) 51 | extern _inline int _SDL_clz_watcom (Uint32); 52 | #pragma aux _SDL_clz_watcom = \ 53 | "bsr eax, eax" \ 54 | "xor eax, 31" \ 55 | parm [eax] nomemory \ 56 | value [eax] \ 57 | modify exact [eax] nomemory; 58 | #endif 59 | 60 | SDL_FORCE_INLINE int 61 | SDL_MostSignificantBitIndex32(Uint32 x) 62 | { 63 | #if defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) 64 | /* Count Leading Zeroes builtin in GCC. 65 | * http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html 66 | */ 67 | if (x == 0) { 68 | return -1; 69 | } 70 | return 31 - __builtin_clz(x); 71 | #elif defined(__WATCOMC__) && defined(__386__) 72 | if (x == 0) { 73 | return -1; 74 | } 75 | return 31 - _SDL_clz_watcom(x); 76 | #else 77 | /* Based off of Bit Twiddling Hacks by Sean Eron Anderson 78 | * , released in the public domain. 79 | * http://graphics.stanford.edu/~seander/bithacks.html#IntegerLog 80 | */ 81 | const Uint32 b[] = {0x2, 0xC, 0xF0, 0xFF00, 0xFFFF0000}; 82 | const int S[] = {1, 2, 4, 8, 16}; 83 | 84 | int msbIndex = 0; 85 | int i; 86 | 87 | if (x == 0) { 88 | return -1; 89 | } 90 | 91 | for (i = 4; i >= 0; i--) 92 | { 93 | if (x & b[i]) 94 | { 95 | x >>= S[i]; 96 | msbIndex |= S[i]; 97 | } 98 | } 99 | 100 | return msbIndex; 101 | #endif 102 | } 103 | 104 | SDL_FORCE_INLINE SDL_bool 105 | SDL_HasExactlyOneBitSet32(Uint32 x) 106 | { 107 | if (x && !(x & (x - 1))) { 108 | return SDL_TRUE; 109 | } 110 | return SDL_FALSE; 111 | } 112 | 113 | /* Ends C function definitions when using C++ */ 114 | #ifdef __cplusplus 115 | } 116 | #endif 117 | #include "close_code.h" 118 | 119 | #endif /* SDL_bits_h_ */ 120 | 121 | /* vi: set ts=4 sw=4 expandtab: */ 122 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_clipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_clipboard.h 24 | * 25 | * Include file for SDL clipboard handling 26 | */ 27 | 28 | #ifndef SDL_clipboard_h_ 29 | #define SDL_clipboard_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Function prototypes */ 40 | 41 | /** 42 | * \brief Put UTF-8 text into the clipboard 43 | * 44 | * \sa SDL_GetClipboardText() 45 | */ 46 | extern DECLSPEC int SDLCALL SDL_SetClipboardText(const char *text); 47 | 48 | /** 49 | * \brief Get UTF-8 text from the clipboard, which must be freed with SDL_free() 50 | * 51 | * \sa SDL_SetClipboardText() 52 | */ 53 | extern DECLSPEC char * SDLCALL SDL_GetClipboardText(void); 54 | 55 | /** 56 | * \brief Returns a flag indicating whether the clipboard exists and contains a text string that is non-empty 57 | * 58 | * \sa SDL_GetClipboardText() 59 | */ 60 | extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void); 61 | 62 | 63 | /* Ends C function definitions when using C++ */ 64 | #ifdef __cplusplus 65 | } 66 | #endif 67 | #include "close_code.h" 68 | 69 | #endif /* SDL_clipboard_h_ */ 70 | 71 | /* vi: set ts=4 sw=4 expandtab: */ 72 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_config_minimal.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2017 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_config_minimal_h_ 23 | #define SDL_config_minimal_h_ 24 | #define SDL_config_h_ 25 | 26 | #include "SDL_platform.h" 27 | 28 | /** 29 | * \file SDL_config_minimal.h 30 | * 31 | * This is the minimal configuration that can be used to build SDL. 32 | */ 33 | 34 | #define HAVE_STDARG_H 1 35 | #define HAVE_STDDEF_H 1 36 | 37 | /* Most everything except Visual Studio 2008 and earlier has stdint.h now */ 38 | #if defined(_MSC_VER) && (_MSC_VER < 1600) 39 | /* Here are some reasonable defaults */ 40 | typedef unsigned int size_t; 41 | typedef signed char int8_t; 42 | typedef unsigned char uint8_t; 43 | typedef signed short int16_t; 44 | typedef unsigned short uint16_t; 45 | typedef signed int int32_t; 46 | typedef unsigned int uint32_t; 47 | typedef signed long long int64_t; 48 | typedef unsigned long long uint64_t; 49 | typedef unsigned long uintptr_t; 50 | #else 51 | #define HAVE_STDINT_H 1 52 | #endif /* Visual Studio 2008 */ 53 | 54 | #ifdef __GNUC__ 55 | #define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1 56 | #endif 57 | 58 | /* Enable the dummy audio driver (src/audio/dummy/\*.c) */ 59 | #define SDL_AUDIO_DRIVER_DUMMY 1 60 | 61 | /* Enable the stub joystick driver (src/joystick/dummy/\*.c) */ 62 | #define SDL_JOYSTICK_DISABLED 1 63 | 64 | /* Enable the stub haptic driver (src/haptic/dummy/\*.c) */ 65 | #define SDL_HAPTIC_DISABLED 1 66 | 67 | /* Enable the stub shared object loader (src/loadso/dummy/\*.c) */ 68 | #define SDL_LOADSO_DISABLED 1 69 | 70 | /* Enable the stub thread support (src/thread/generic/\*.c) */ 71 | #define SDL_THREADS_DISABLED 1 72 | 73 | /* Enable the stub timer support (src/timer/dummy/\*.c) */ 74 | #define SDL_TIMERS_DISABLED 1 75 | 76 | /* Enable the dummy video driver (src/video/dummy/\*.c) */ 77 | #define SDL_VIDEO_DRIVER_DUMMY 1 78 | 79 | /* Enable the dummy filesystem driver (src/filesystem/dummy/\*.c) */ 80 | #define SDL_FILESYSTEM_DUMMY 1 81 | 82 | #endif /* SDL_config_minimal_h_ */ 83 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_config_pandora.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2017 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_config_pandora_h_ 23 | #define SDL_config_pandora_h_ 24 | #define SDL_config_h_ 25 | 26 | /* This is a set of defines to configure the SDL features */ 27 | 28 | /* General platform specific identifiers */ 29 | #include "SDL_platform.h" 30 | 31 | #ifdef __LP64__ 32 | #define SIZEOF_VOIDP 8 33 | #else 34 | #define SIZEOF_VOIDP 4 35 | #endif 36 | 37 | #define SDL_BYTEORDER 1234 38 | 39 | #define HAVE_ALLOCA_H 1 40 | #define HAVE_SYS_TYPES_H 1 41 | #define HAVE_STDIO_H 1 42 | #define STDC_HEADERS 1 43 | #define HAVE_STDLIB_H 1 44 | #define HAVE_STDARG_H 1 45 | #define HAVE_MALLOC_H 1 46 | #define HAVE_MEMORY_H 1 47 | #define HAVE_STRING_H 1 48 | #define HAVE_STRINGS_H 1 49 | #define HAVE_INTTYPES_H 1 50 | #define HAVE_STDINT_H 1 51 | #define HAVE_CTYPE_H 1 52 | #define HAVE_MATH_H 1 53 | #define HAVE_ICONV_H 1 54 | #define HAVE_SIGNAL_H 1 55 | #define HAVE_MALLOC 1 56 | #define HAVE_CALLOC 1 57 | #define HAVE_REALLOC 1 58 | #define HAVE_FREE 1 59 | #define HAVE_ALLOCA 1 60 | #define HAVE_GETENV 1 61 | #define HAVE_SETENV 1 62 | #define HAVE_PUTENV 1 63 | #define HAVE_UNSETENV 1 64 | #define HAVE_QSORT 1 65 | #define HAVE_ABS 1 66 | #define HAVE_BCOPY 1 67 | #define HAVE_MEMSET 1 68 | #define HAVE_MEMCPY 1 69 | #define HAVE_MEMMOVE 1 70 | #define HAVE_STRLEN 1 71 | #define HAVE_STRDUP 1 72 | #define HAVE_STRCHR 1 73 | #define HAVE_STRRCHR 1 74 | #define HAVE_STRSTR 1 75 | #define HAVE_STRTOL 1 76 | #define HAVE_STRTOUL 1 77 | #define HAVE_STRTOLL 1 78 | #define HAVE_STRTOULL 1 79 | #define HAVE_ATOI 1 80 | #define HAVE_ATOF 1 81 | #define HAVE_STRCMP 1 82 | #define HAVE_STRNCMP 1 83 | #define HAVE_STRCASECMP 1 84 | #define HAVE_STRNCASECMP 1 85 | #define HAVE_VSSCANF 1 86 | #define HAVE_VSNPRINTF 1 87 | #define HAVE_M_PI 1 88 | #define HAVE_CEIL 1 89 | #define HAVE_COPYSIGN 1 90 | #define HAVE_COS 1 91 | #define HAVE_COSF 1 92 | #define HAVE_FABS 1 93 | #define HAVE_FLOOR 1 94 | #define HAVE_LOG 1 95 | #define HAVE_SCALBN 1 96 | #define HAVE_SIN 1 97 | #define HAVE_SINF 1 98 | #define HAVE_SQRT 1 99 | #define HAVE_SQRTF 1 100 | #define HAVE_TAN 1 101 | #define HAVE_TANF 1 102 | #define HAVE_SIGACTION 1 103 | #define HAVE_SETJMP 1 104 | #define HAVE_NANOSLEEP 1 105 | 106 | #define SDL_AUDIO_DRIVER_DUMMY 1 107 | #define SDL_AUDIO_DRIVER_OSS 1 108 | 109 | #define SDL_INPUT_LINUXEV 1 110 | #define SDL_INPUT_TSLIB 1 111 | #define SDL_JOYSTICK_LINUX 1 112 | #define SDL_HAPTIC_LINUX 1 113 | 114 | #define SDL_LOADSO_DLOPEN 1 115 | 116 | #define SDL_THREAD_PTHREAD 1 117 | #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1 118 | 119 | #define SDL_TIMER_UNIX 1 120 | #define SDL_FILESYSTEM_UNIX 1 121 | 122 | #define SDL_VIDEO_DRIVER_DUMMY 1 123 | #define SDL_VIDEO_DRIVER_X11 1 124 | #define SDL_VIDEO_DRIVER_PANDORA 1 125 | #define SDL_VIDEO_RENDER_OGL_ES 1 126 | #define SDL_VIDEO_OPENGL_ES 1 127 | 128 | #endif /* SDL_config_pandora_h_ */ 129 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_config_wiz.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2017 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_config_wiz_h_ 23 | #define SDL_config_wiz_h_ 24 | #define SDL_config_h_ 25 | 26 | /* This is a set of defines to configure the SDL features */ 27 | 28 | /* General platform specific identifiers */ 29 | #include "SDL_platform.h" 30 | 31 | #define SDL_BYTEORDER 1234 32 | 33 | #define HAVE_ALLOCA_H 1 34 | #define HAVE_SYS_TYPES_H 1 35 | #define HAVE_STDIO_H 1 36 | #define STDC_HEADERS 1 37 | #define HAVE_STDLIB_H 1 38 | #define HAVE_STDARG_H 1 39 | #define HAVE_MALLOC_H 1 40 | #define HAVE_MEMORY_H 1 41 | #define HAVE_STRING_H 1 42 | #define HAVE_STRINGS_H 1 43 | #define HAVE_INTTYPES_H 1 44 | #define HAVE_STDINT_H 1 45 | #define HAVE_CTYPE_H 1 46 | #define HAVE_MATH_H 1 47 | #define HAVE_ICONV_H 1 48 | #define HAVE_SIGNAL_H 1 49 | #define HAVE_MALLOC 1 50 | #define HAVE_CALLOC 1 51 | #define HAVE_REALLOC 1 52 | #define HAVE_FREE 1 53 | #define HAVE_ALLOCA 1 54 | #define HAVE_GETENV 1 55 | #define HAVE_SETENV 1 56 | #define HAVE_PUTENV 1 57 | #define HAVE_UNSETENV 1 58 | #define HAVE_QSORT 1 59 | #define HAVE_ABS 1 60 | #define HAVE_BCOPY 1 61 | #define HAVE_MEMSET 1 62 | #define HAVE_MEMCPY 1 63 | #define HAVE_MEMMOVE 1 64 | #define HAVE_STRLEN 1 65 | #define HAVE_STRDUP 1 66 | #define HAVE_STRCHR 1 67 | #define HAVE_STRRCHR 1 68 | #define HAVE_STRSTR 1 69 | #define HAVE_STRTOL 1 70 | #define HAVE_STRTOUL 1 71 | #define HAVE_STRTOLL 1 72 | #define HAVE_STRTOULL 1 73 | #define HAVE_ATOI 1 74 | #define HAVE_ATOF 1 75 | #define HAVE_STRCMP 1 76 | #define HAVE_STRNCMP 1 77 | #define HAVE_STRCASECMP 1 78 | #define HAVE_STRNCASECMP 1 79 | #define HAVE_VSSCANF 1 80 | #define HAVE_VSNPRINTF 1 81 | #define HAVE_M_PI 1 82 | #define HAVE_CEIL 1 83 | #define HAVE_COPYSIGN 1 84 | #define HAVE_COS 1 85 | #define HAVE_COSF 1 86 | #define HAVE_FABS 1 87 | #define HAVE_FLOOR 1 88 | #define HAVE_LOG 1 89 | #define HAVE_SCALBN 1 90 | #define HAVE_SIN 1 91 | #define HAVE_SINF 1 92 | #define HAVE_SQRT 1 93 | #define HAVE_SQRTF 1 94 | #define HAVE_TAN 1 95 | #define HAVE_TANF 1 96 | #define HAVE_SIGACTION 1 97 | #define HAVE_SETJMP 1 98 | #define HAVE_NANOSLEEP 1 99 | #define HAVE_POW 1 100 | 101 | #define SDL_AUDIO_DRIVER_DUMMY 1 102 | #define SDL_AUDIO_DRIVER_OSS 1 103 | 104 | #define SDL_INPUT_LINUXEV 1 105 | #define SDL_INPUT_TSLIB 1 106 | #define SDL_JOYSTICK_LINUX 1 107 | #define SDL_HAPTIC_LINUX 1 108 | 109 | #define SDL_LOADSO_DLOPEN 1 110 | 111 | #define SDL_THREAD_PTHREAD 1 112 | #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1 113 | 114 | #define SDL_TIMER_UNIX 1 115 | 116 | #define SDL_VIDEO_DRIVER_DUMMY 1 117 | #define SDL_VIDEO_DRIVER_PANDORA 1 118 | #define SDL_VIDEO_RENDER_OGL_ES 1 119 | #define SDL_VIDEO_OPENGL_ES 1 120 | 121 | #endif /* SDL_config_wiz_h_ */ 122 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_copying.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2017 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 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_error.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_error.h 24 | * 25 | * Simple error message routines for SDL. 26 | */ 27 | 28 | #ifndef SDL_error_h_ 29 | #define SDL_error_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Public functions */ 40 | /* SDL_SetError() unconditionally returns -1. */ 41 | extern DECLSPEC int SDLCALL SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1); 42 | extern DECLSPEC const char *SDLCALL SDL_GetError(void); 43 | extern DECLSPEC void SDLCALL SDL_ClearError(void); 44 | 45 | /** 46 | * \name Internal error functions 47 | * 48 | * \internal 49 | * Private error reporting function - used internally. 50 | */ 51 | /* @{ */ 52 | #define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM) 53 | #define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED) 54 | #define SDL_InvalidParamError(param) SDL_SetError("Parameter '%s' is invalid", (param)) 55 | typedef enum 56 | { 57 | SDL_ENOMEM, 58 | SDL_EFREAD, 59 | SDL_EFWRITE, 60 | SDL_EFSEEK, 61 | SDL_UNSUPPORTED, 62 | SDL_LASTERROR 63 | } SDL_errorcode; 64 | /* SDL_Error() unconditionally returns -1. */ 65 | extern DECLSPEC int SDLCALL SDL_Error(SDL_errorcode code); 66 | /* @} *//* Internal error functions */ 67 | 68 | /* Ends C function definitions when using C++ */ 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | #include "close_code.h" 73 | 74 | #endif /* SDL_error_h_ */ 75 | 76 | /* vi: set ts=4 sw=4 expandtab: */ 77 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_gesture.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_gesture.h 24 | * 25 | * Include file for SDL gesture event handling. 26 | */ 27 | 28 | #ifndef SDL_gesture_h_ 29 | #define SDL_gesture_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | #include "SDL_video.h" 34 | 35 | #include "SDL_touch.h" 36 | 37 | 38 | #include "begin_code.h" 39 | /* Set up for C function definitions, even when using C++ */ 40 | #ifdef __cplusplus 41 | extern "C" { 42 | #endif 43 | 44 | typedef Sint64 SDL_GestureID; 45 | 46 | /* Function prototypes */ 47 | 48 | /** 49 | * \brief Begin Recording a gesture on the specified touch, or all touches (-1) 50 | * 51 | * 52 | */ 53 | extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId); 54 | 55 | 56 | /** 57 | * \brief Save all currently loaded Dollar Gesture templates 58 | * 59 | * 60 | */ 61 | extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *dst); 62 | 63 | /** 64 | * \brief Save a currently loaded Dollar Gesture template 65 | * 66 | * 67 | */ 68 | extern DECLSPEC int SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *dst); 69 | 70 | 71 | /** 72 | * \brief Load Dollar Gesture templates from a file 73 | * 74 | * 75 | */ 76 | extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src); 77 | 78 | 79 | /* Ends C function definitions when using C++ */ 80 | #ifdef __cplusplus 81 | } 82 | #endif 83 | #include "close_code.h" 84 | 85 | #endif /* SDL_gesture_h_ */ 86 | 87 | /* vi: set ts=4 sw=4 expandtab: */ 88 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_loadso.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_loadso.h 24 | * 25 | * System dependent library loading routines 26 | * 27 | * Some things to keep in mind: 28 | * \li These functions only work on C function names. Other languages may 29 | * have name mangling and intrinsic language support that varies from 30 | * compiler to compiler. 31 | * \li Make sure you declare your function pointers with the same calling 32 | * convention as the actual library function. Your code will crash 33 | * mysteriously if you do not do this. 34 | * \li Avoid namespace collisions. If you load a symbol from the library, 35 | * it is not defined whether or not it goes into the global symbol 36 | * namespace for the application. If it does and it conflicts with 37 | * symbols in your code or other shared libraries, you will not get 38 | * the results you expect. :) 39 | */ 40 | 41 | #ifndef SDL_loadso_h_ 42 | #define SDL_loadso_h_ 43 | 44 | #include "SDL_stdinc.h" 45 | #include "SDL_error.h" 46 | 47 | #include "begin_code.h" 48 | /* Set up for C function definitions, even when using C++ */ 49 | #ifdef __cplusplus 50 | extern "C" { 51 | #endif 52 | 53 | /** 54 | * This function dynamically loads a shared object and returns a pointer 55 | * to the object handle (or NULL if there was an error). 56 | * The 'sofile' parameter is a system dependent name of the object file. 57 | */ 58 | extern DECLSPEC void *SDLCALL SDL_LoadObject(const char *sofile); 59 | 60 | /** 61 | * Given an object handle, this function looks up the address of the 62 | * named function in the shared object and returns it. This address 63 | * is no longer valid after calling SDL_UnloadObject(). 64 | */ 65 | extern DECLSPEC void *SDLCALL SDL_LoadFunction(void *handle, 66 | const char *name); 67 | 68 | /** 69 | * Unload a shared object from memory. 70 | */ 71 | extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle); 72 | 73 | /* Ends C function definitions when using C++ */ 74 | #ifdef __cplusplus 75 | } 76 | #endif 77 | #include "close_code.h" 78 | 79 | #endif /* SDL_loadso_h_ */ 80 | 81 | /* vi: set ts=4 sw=4 expandtab: */ 82 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_metal.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_metal.h 24 | * 25 | * Header file for functions to creating Metal layers and views on SDL windows. 26 | */ 27 | 28 | #ifndef SDL_metal_h_ 29 | #define SDL_metal_h_ 30 | 31 | #include "SDL_video.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \brief A handle to a CAMetalLayer-backed NSView (macOS) or UIView (iOS/tvOS). 41 | * 42 | * \note This can be cast directly to an NSView or UIView. 43 | */ 44 | typedef void *SDL_MetalView; 45 | 46 | /** 47 | * \name Metal support functions 48 | */ 49 | /* @{ */ 50 | 51 | /** 52 | * \brief Create a CAMetalLayer-backed NSView/UIView and attach it to the 53 | * specified window. 54 | * 55 | * On macOS, this does *not* associate a MTLDevice with the CAMetalLayer on its 56 | * own. It is up to user code to do that. 57 | * 58 | * The returned handle can be casted directly to a NSView or UIView, and the 59 | * CAMetalLayer can be accessed from the view's 'layer' property. 60 | * 61 | * \code 62 | * SDL_MetalView metalview = SDL_Metal_CreateView(window); 63 | * UIView *uiview = (__bridge UIView *)metalview; 64 | * CAMetalLayer *metallayer = (CAMetalLayer *)uiview.layer; 65 | * // [...] 66 | * SDL_Metal_DestroyView(metalview); 67 | * \endcode 68 | * 69 | * \sa SDL_Metal_DestroyView 70 | */ 71 | extern DECLSPEC SDL_MetalView SDLCALL SDL_Metal_CreateView(SDL_Window * window); 72 | 73 | /** 74 | * \brief Destroy an existing SDL_MetalView object. 75 | * 76 | * This should be called before SDL_DestroyWindow, if SDL_Metal_CreateView was 77 | * called after SDL_CreateWindow. 78 | * 79 | * \sa SDL_Metal_CreateView 80 | */ 81 | extern DECLSPEC void SDLCALL SDL_Metal_DestroyView(SDL_MetalView view); 82 | 83 | /* @} *//* Metal support functions */ 84 | 85 | /* Ends C function definitions when using C++ */ 86 | #ifdef __cplusplus 87 | } 88 | #endif 89 | #include "close_code.h" 90 | 91 | #endif /* SDL_metal_h_ */ 92 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_name.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_opengles.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 1.X API headers. 26 | */ 27 | #include "SDL_config.h" 28 | 29 | #ifdef __IPHONEOS__ 30 | #include 31 | #include 32 | #else 33 | #include 34 | #include 35 | #endif 36 | 37 | #ifndef APIENTRY 38 | #define APIENTRY 39 | #endif 40 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_opengles2.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_opengles2.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 2.0 API headers. 26 | */ 27 | #include "SDL_config.h" 28 | 29 | #ifndef _MSC_VER 30 | 31 | #ifdef __IPHONEOS__ 32 | #include 33 | #include 34 | #else 35 | #include 36 | #include 37 | #include 38 | #endif 39 | 40 | #else /* _MSC_VER */ 41 | 42 | /* OpenGL ES2 headers for Visual Studio */ 43 | #include "SDL_opengles2_khrplatform.h" 44 | #include "SDL_opengles2_gl2platform.h" 45 | #include "SDL_opengles2_gl2.h" 46 | #include "SDL_opengles2_gl2ext.h" 47 | 48 | #endif /* _MSC_VER */ 49 | 50 | #ifndef APIENTRY 51 | #define APIENTRY GL_APIENTRY 52 | #endif 53 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_opengles2_gl2platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl2platform_h_ 2 | #define __gl2platform_h_ 3 | 4 | /* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* Platform-specific types and definitions for OpenGL ES 2.X gl2.h 12 | * 13 | * Adopters may modify khrplatform.h and this file to suit their platform. 14 | * You are encouraged to submit all modifications to the Khronos group so that 15 | * they can be included in future versions of this file. Please submit changes 16 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) 17 | * by filing a bug against product "OpenGL-ES" component "Registry". 18 | */ 19 | 20 | /*#include */ 21 | 22 | #ifndef GL_APICALL 23 | #define GL_APICALL KHRONOS_APICALL 24 | #endif 25 | 26 | #ifndef GL_APIENTRY 27 | #define GL_APIENTRY KHRONOS_APIENTRY 28 | #endif 29 | 30 | #endif /* __gl2platform_h_ */ 31 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_power.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_power_h_ 23 | #define SDL_power_h_ 24 | 25 | /** 26 | * \file SDL_power.h 27 | * 28 | * Header for the SDL power management routines. 29 | */ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \brief The basic state for the system's power supply. 41 | */ 42 | typedef enum 43 | { 44 | SDL_POWERSTATE_UNKNOWN, /**< cannot determine power status */ 45 | SDL_POWERSTATE_ON_BATTERY, /**< Not plugged in, running on the battery */ 46 | SDL_POWERSTATE_NO_BATTERY, /**< Plugged in, no battery available */ 47 | SDL_POWERSTATE_CHARGING, /**< Plugged in, charging battery */ 48 | SDL_POWERSTATE_CHARGED /**< Plugged in, battery charged */ 49 | } SDL_PowerState; 50 | 51 | 52 | /** 53 | * \brief Get the current power supply details. 54 | * 55 | * \param secs Seconds of battery life left. You can pass a NULL here if 56 | * you don't care. Will return -1 if we can't determine a 57 | * value, or we're not running on a battery. 58 | * 59 | * \param pct Percentage of battery life left, between 0 and 100. You can 60 | * pass a NULL here if you don't care. Will return -1 if we 61 | * can't determine a value, or we're not running on a battery. 62 | * 63 | * \return The state of the battery (if any). 64 | */ 65 | extern DECLSPEC SDL_PowerState SDLCALL SDL_GetPowerInfo(int *secs, int *pct); 66 | 67 | /* Ends C function definitions when using C++ */ 68 | #ifdef __cplusplus 69 | } 70 | #endif 71 | #include "close_code.h" 72 | 73 | #endif /* SDL_power_h_ */ 74 | 75 | /* vi: set ts=4 sw=4 expandtab: */ 76 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_quit.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_quit.h 24 | * 25 | * Include file for SDL quit event handling. 26 | */ 27 | 28 | #ifndef SDL_quit_h_ 29 | #define SDL_quit_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | /** 35 | * \file SDL_quit.h 36 | * 37 | * An ::SDL_QUIT event is generated when the user tries to close the application 38 | * window. If it is ignored or filtered out, the window will remain open. 39 | * If it is not ignored or filtered, it is queued normally and the window 40 | * is allowed to close. When the window is closed, screen updates will 41 | * complete, but have no effect. 42 | * 43 | * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) 44 | * and SIGTERM (system termination request), if handlers do not already 45 | * exist, that generate ::SDL_QUIT events as well. There is no way 46 | * to determine the cause of an ::SDL_QUIT event, but setting a signal 47 | * handler in your application will override the default generation of 48 | * quit events for that signal. 49 | * 50 | * \sa SDL_Quit() 51 | */ 52 | 53 | /* There are no functions directly affecting the quit event */ 54 | 55 | #define SDL_QuitRequested() \ 56 | (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0)) 57 | 58 | #endif /* SDL_quit_h_ */ 59 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_revision.h: -------------------------------------------------------------------------------- 1 | #define SDL_REVISION "hg-13609:34cc7d3b69d3" 2 | #define SDL_REVISION_NUMBER 13609 3 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_test.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_test.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | #ifndef SDL_test_h_ 31 | #define SDL_test_h_ 32 | 33 | #include "SDL.h" 34 | #include "SDL_test_assert.h" 35 | #include "SDL_test_common.h" 36 | #include "SDL_test_compare.h" 37 | #include "SDL_test_crc32.h" 38 | #include "SDL_test_font.h" 39 | #include "SDL_test_fuzzer.h" 40 | #include "SDL_test_harness.h" 41 | #include "SDL_test_images.h" 42 | #include "SDL_test_log.h" 43 | #include "SDL_test_md5.h" 44 | #include "SDL_test_memory.h" 45 | #include "SDL_test_random.h" 46 | 47 | #include "begin_code.h" 48 | /* Set up for C function definitions, even when using C++ */ 49 | #ifdef __cplusplus 50 | extern "C" { 51 | #endif 52 | 53 | /* Global definitions */ 54 | 55 | /* 56 | * Note: Maximum size of SDLTest log message is less than SDL's limit 57 | * to ensure we can fit additional information such as the timestamp. 58 | */ 59 | #define SDLTEST_MAX_LOGMESSAGE_LENGTH 3584 60 | 61 | /* Ends C function definitions when using C++ */ 62 | #ifdef __cplusplus 63 | } 64 | #endif 65 | #include "close_code.h" 66 | 67 | #endif /* SDL_test_h_ */ 68 | 69 | /* vi: set ts=4 sw=4 expandtab: */ 70 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_test_assert.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_test_assert.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | * 32 | * Assert API for test code and test cases 33 | * 34 | */ 35 | 36 | #ifndef SDL_test_assert_h_ 37 | #define SDL_test_assert_h_ 38 | 39 | #include "begin_code.h" 40 | /* Set up for C function definitions, even when using C++ */ 41 | #ifdef __cplusplus 42 | extern "C" { 43 | #endif 44 | 45 | /** 46 | * \brief Fails the assert. 47 | */ 48 | #define ASSERT_FAIL 0 49 | 50 | /** 51 | * \brief Passes the assert. 52 | */ 53 | #define ASSERT_PASS 1 54 | 55 | /** 56 | * \brief Assert that logs and break execution flow on failures. 57 | * 58 | * \param assertCondition Evaluated condition or variable to assert; fail (==0) or pass (!=0). 59 | * \param assertDescription Message to log with the assert describing it. 60 | */ 61 | void SDLTest_Assert(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(2); 62 | 63 | /** 64 | * \brief Assert for test cases that logs but does not break execution flow on failures. Updates assertion counters. 65 | * 66 | * \param assertCondition Evaluated condition or variable to assert; fail (==0) or pass (!=0). 67 | * \param assertDescription Message to log with the assert describing it. 68 | * 69 | * \returns Returns the assertCondition so it can be used to externally to break execution flow if desired. 70 | */ 71 | int SDLTest_AssertCheck(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(2); 72 | 73 | /** 74 | * \brief Explicitly pass without checking an assertion condition. Updates assertion counter. 75 | * 76 | * \param assertDescription Message to log with the assert describing it. 77 | */ 78 | void SDLTest_AssertPass(SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(1); 79 | 80 | /** 81 | * \brief Resets the assert summary counters to zero. 82 | */ 83 | void SDLTest_ResetAssertSummary(void); 84 | 85 | /** 86 | * \brief Logs summary of all assertions (total, pass, fail) since last reset as INFO or ERROR. 87 | */ 88 | void SDLTest_LogAssertSummary(void); 89 | 90 | 91 | /** 92 | * \brief Converts the current assert summary state to a test result. 93 | * 94 | * \returns TEST_RESULT_PASSED, TEST_RESULT_FAILED, or TEST_RESULT_NO_ASSERT 95 | */ 96 | int SDLTest_AssertSummaryToTestResult(void); 97 | 98 | #ifdef __cplusplus 99 | } 100 | #endif 101 | #include "close_code.h" 102 | 103 | #endif /* SDL_test_assert_h_ */ 104 | 105 | /* vi: set ts=4 sw=4 expandtab: */ 106 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_test_compare.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_test_compare.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | 32 | Defines comparison functions (i.e. for surfaces). 33 | 34 | */ 35 | 36 | #ifndef SDL_test_compare_h_ 37 | #define SDL_test_compare_h_ 38 | 39 | #include "SDL.h" 40 | 41 | #include "SDL_test_images.h" 42 | 43 | #include "begin_code.h" 44 | /* Set up for C function definitions, even when using C++ */ 45 | #ifdef __cplusplus 46 | extern "C" { 47 | #endif 48 | 49 | /** 50 | * \brief Compares a surface and with reference image data for equality 51 | * 52 | * \param surface Surface used in comparison 53 | * \param referenceSurface Test Surface used in comparison 54 | * \param allowable_error Allowable difference (=sum of squared difference for each RGB component) in blending accuracy. 55 | * 56 | * \returns 0 if comparison succeeded, >0 (=number of pixels for which the comparison failed) if comparison failed, -1 if any of the surfaces were NULL, -2 if the surface sizes differ. 57 | */ 58 | int SDLTest_CompareSurfaces(SDL_Surface *surface, SDL_Surface *referenceSurface, int allowable_error); 59 | 60 | 61 | /* Ends C function definitions when using C++ */ 62 | #ifdef __cplusplus 63 | } 64 | #endif 65 | #include "close_code.h" 66 | 67 | #endif /* SDL_test_compare_h_ */ 68 | 69 | /* vi: set ts=4 sw=4 expandtab: */ 70 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_test_crc32.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_test_crc32.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | 32 | Implements CRC32 calculations (default output is Perl String::CRC32 compatible). 33 | 34 | */ 35 | 36 | #ifndef SDL_test_crc32_h_ 37 | #define SDL_test_crc32_h_ 38 | 39 | #include "begin_code.h" 40 | /* Set up for C function definitions, even when using C++ */ 41 | #ifdef __cplusplus 42 | extern "C" { 43 | #endif 44 | 45 | 46 | /* ------------ Definitions --------- */ 47 | 48 | /* Definition shared by all CRC routines */ 49 | 50 | #ifndef CrcUint32 51 | #define CrcUint32 unsigned int 52 | #endif 53 | #ifndef CrcUint8 54 | #define CrcUint8 unsigned char 55 | #endif 56 | 57 | #ifdef ORIGINAL_METHOD 58 | #define CRC32_POLY 0x04c11db7 /* AUTODIN II, Ethernet, & FDDI */ 59 | #else 60 | #define CRC32_POLY 0xEDB88320 /* Perl String::CRC32 compatible */ 61 | #endif 62 | 63 | /** 64 | * Data structure for CRC32 (checksum) computation 65 | */ 66 | typedef struct { 67 | CrcUint32 crc32_table[256]; /* CRC table */ 68 | } SDLTest_Crc32Context; 69 | 70 | /* ---------- Function Prototypes ------------- */ 71 | 72 | /** 73 | * \brief Initialize the CRC context 74 | * 75 | * Note: The function initializes the crc table required for all crc calculations. 76 | * 77 | * \param crcContext pointer to context variable 78 | * 79 | * \returns 0 for OK, -1 on error 80 | * 81 | */ 82 | int SDLTest_Crc32Init(SDLTest_Crc32Context * crcContext); 83 | 84 | 85 | /** 86 | * \brief calculate a crc32 from a data block 87 | * 88 | * \param crcContext pointer to context variable 89 | * \param inBuf input buffer to checksum 90 | * \param inLen length of input buffer 91 | * \param crc32 pointer to Uint32 to store the final CRC into 92 | * 93 | * \returns 0 for OK, -1 on error 94 | * 95 | */ 96 | int SDLTest_Crc32Calc(SDLTest_Crc32Context * crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32); 97 | 98 | /* Same routine broken down into three steps */ 99 | int SDLTest_Crc32CalcStart(SDLTest_Crc32Context * crcContext, CrcUint32 *crc32); 100 | int SDLTest_Crc32CalcEnd(SDLTest_Crc32Context * crcContext, CrcUint32 *crc32); 101 | int SDLTest_Crc32CalcBuffer(SDLTest_Crc32Context * crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32); 102 | 103 | 104 | /** 105 | * \brief clean up CRC context 106 | * 107 | * \param crcContext pointer to context variable 108 | * 109 | * \returns 0 for OK, -1 on error 110 | * 111 | */ 112 | 113 | int SDLTest_Crc32Done(SDLTest_Crc32Context * crcContext); 114 | 115 | 116 | /* Ends C function definitions when using C++ */ 117 | #ifdef __cplusplus 118 | } 119 | #endif 120 | #include "close_code.h" 121 | 122 | #endif /* SDL_test_crc32_h_ */ 123 | 124 | /* vi: set ts=4 sw=4 expandtab: */ 125 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_test_font.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_test_font.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | #ifndef SDL_test_font_h_ 31 | #define SDL_test_font_h_ 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Function prototypes */ 40 | 41 | #define FONT_CHARACTER_SIZE 8 42 | 43 | /** 44 | * \brief Draw a string in the currently set font. 45 | * 46 | * \param renderer The renderer to draw on. 47 | * \param x The X coordinate of the upper left corner of the character. 48 | * \param y The Y coordinate of the upper left corner of the character. 49 | * \param c The character to draw. 50 | * 51 | * \returns Returns 0 on success, -1 on failure. 52 | */ 53 | int SDLTest_DrawCharacter(SDL_Renderer *renderer, int x, int y, char c); 54 | 55 | /** 56 | * \brief Draw a string in the currently set font. 57 | * 58 | * \param renderer The renderer to draw on. 59 | * \param x The X coordinate of the upper left corner of the string. 60 | * \param y The Y coordinate of the upper left corner of the string. 61 | * \param s The string to draw. 62 | * 63 | * \returns Returns 0 on success, -1 on failure. 64 | */ 65 | int SDLTest_DrawString(SDL_Renderer *renderer, int x, int y, const char *s); 66 | 67 | 68 | /** 69 | * \brief Cleanup textures used by font drawing functions. 70 | */ 71 | void SDLTest_CleanupTextDrawing(void); 72 | 73 | /* Ends C function definitions when using C++ */ 74 | #ifdef __cplusplus 75 | } 76 | #endif 77 | #include "close_code.h" 78 | 79 | #endif /* SDL_test_font_h_ */ 80 | 81 | /* vi: set ts=4 sw=4 expandtab: */ 82 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_test_images.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_test_images.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | 32 | Defines some images for tests. 33 | 34 | */ 35 | 36 | #ifndef SDL_test_images_h_ 37 | #define SDL_test_images_h_ 38 | 39 | #include "SDL.h" 40 | 41 | #include "begin_code.h" 42 | /* Set up for C function definitions, even when using C++ */ 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | /** 48 | *Type for test images. 49 | */ 50 | typedef struct SDLTest_SurfaceImage_s { 51 | int width; 52 | int height; 53 | unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */ 54 | const char *pixel_data; 55 | } SDLTest_SurfaceImage_t; 56 | 57 | /* Test images */ 58 | SDL_Surface *SDLTest_ImageBlit(void); 59 | SDL_Surface *SDLTest_ImageBlitColor(void); 60 | SDL_Surface *SDLTest_ImageBlitAlpha(void); 61 | SDL_Surface *SDLTest_ImageBlitBlendAdd(void); 62 | SDL_Surface *SDLTest_ImageBlitBlend(void); 63 | SDL_Surface *SDLTest_ImageBlitBlendMod(void); 64 | SDL_Surface *SDLTest_ImageBlitBlendNone(void); 65 | SDL_Surface *SDLTest_ImageBlitBlendAll(void); 66 | SDL_Surface *SDLTest_ImageFace(void); 67 | SDL_Surface *SDLTest_ImagePrimitives(void); 68 | SDL_Surface *SDLTest_ImagePrimitivesBlend(void); 69 | 70 | /* Ends C function definitions when using C++ */ 71 | #ifdef __cplusplus 72 | } 73 | #endif 74 | #include "close_code.h" 75 | 76 | #endif /* SDL_test_images_h_ */ 77 | 78 | /* vi: set ts=4 sw=4 expandtab: */ 79 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_test_log.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_test_log.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | * 32 | * Wrapper to log in the TEST category 33 | * 34 | */ 35 | 36 | #ifndef SDL_test_log_h_ 37 | #define SDL_test_log_h_ 38 | 39 | #include "begin_code.h" 40 | /* Set up for C function definitions, even when using C++ */ 41 | #ifdef __cplusplus 42 | extern "C" { 43 | #endif 44 | 45 | /** 46 | * \brief Prints given message with a timestamp in the TEST category and INFO priority. 47 | * 48 | * \param fmt Message to be logged 49 | */ 50 | void SDLTest_Log(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1); 51 | 52 | /** 53 | * \brief Prints given message with a timestamp in the TEST category and the ERROR priority. 54 | * 55 | * \param fmt Message to be logged 56 | */ 57 | void SDLTest_LogError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1); 58 | 59 | /* Ends C function definitions when using C++ */ 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | #include "close_code.h" 64 | 65 | #endif /* SDL_test_log_h_ */ 66 | 67 | /* vi: set ts=4 sw=4 expandtab: */ 68 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_test_memory.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_test_memory.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | #ifndef SDL_test_memory_h_ 31 | #define SDL_test_memory_h_ 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | 40 | /** 41 | * \brief Start tracking SDL memory allocations 42 | * 43 | * \note This should be called before any other SDL functions for complete tracking coverage 44 | */ 45 | int SDLTest_TrackAllocations(void); 46 | 47 | /** 48 | * \brief Print a log of any outstanding allocations 49 | * 50 | * \note This can be called after SDL_Quit() 51 | */ 52 | void SDLTest_LogAllocations(void); 53 | 54 | 55 | /* Ends C function definitions when using C++ */ 56 | #ifdef __cplusplus 57 | } 58 | #endif 59 | #include "close_code.h" 60 | 61 | #endif /* SDL_test_memory_h_ */ 62 | 63 | /* vi: set ts=4 sw=4 expandtab: */ 64 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_test_random.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_test_random.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | 32 | A "32-bit Multiply with carry random number generator. Very fast. 33 | Includes a list of recommended multipliers. 34 | 35 | multiply-with-carry generator: x(n) = a*x(n-1) + carry mod 2^32. 36 | period: (a*2^31)-1 37 | 38 | */ 39 | 40 | #ifndef SDL_test_random_h_ 41 | #define SDL_test_random_h_ 42 | 43 | #include "begin_code.h" 44 | /* Set up for C function definitions, even when using C++ */ 45 | #ifdef __cplusplus 46 | extern "C" { 47 | #endif 48 | 49 | /* --- Definitions */ 50 | 51 | /* 52 | * Macros that return a random number in a specific format. 53 | */ 54 | #define SDLTest_RandomInt(c) ((int)SDLTest_Random(c)) 55 | 56 | /* 57 | * Context structure for the random number generator state. 58 | */ 59 | typedef struct { 60 | unsigned int a; 61 | unsigned int x; 62 | unsigned int c; 63 | unsigned int ah; 64 | unsigned int al; 65 | } SDLTest_RandomContext; 66 | 67 | 68 | /* --- Function prototypes */ 69 | 70 | /** 71 | * \brief Initialize random number generator with two integers. 72 | * 73 | * Note: The random sequence of numbers returned by ...Random() is the 74 | * same for the same two integers and has a period of 2^31. 75 | * 76 | * \param rndContext pointer to context structure 77 | * \param xi integer that defines the random sequence 78 | * \param ci integer that defines the random sequence 79 | * 80 | */ 81 | void SDLTest_RandomInit(SDLTest_RandomContext * rndContext, unsigned int xi, 82 | unsigned int ci); 83 | 84 | /** 85 | * \brief Initialize random number generator based on current system time. 86 | * 87 | * \param rndContext pointer to context structure 88 | * 89 | */ 90 | void SDLTest_RandomInitTime(SDLTest_RandomContext *rndContext); 91 | 92 | 93 | /** 94 | * \brief Initialize random number generator based on current system time. 95 | * 96 | * Note: ...RandomInit() or ...RandomInitTime() must have been called 97 | * before using this function. 98 | * 99 | * \param rndContext pointer to context structure 100 | * 101 | * \returns A random number (32bit unsigned integer) 102 | * 103 | */ 104 | unsigned int SDLTest_Random(SDLTest_RandomContext *rndContext); 105 | 106 | 107 | /* Ends C function definitions when using C++ */ 108 | #ifdef __cplusplus 109 | } 110 | #endif 111 | #include "close_code.h" 112 | 113 | #endif /* SDL_test_random_h_ */ 114 | 115 | /* vi: set ts=4 sw=4 expandtab: */ 116 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_timer.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_timer_h_ 23 | #define SDL_timer_h_ 24 | 25 | /** 26 | * \file SDL_timer.h 27 | * 28 | * Header for the SDL time management routines. 29 | */ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | #include "begin_code.h" 35 | /* Set up for C function definitions, even when using C++ */ 36 | #ifdef __cplusplus 37 | extern "C" { 38 | #endif 39 | 40 | /** 41 | * \brief Get the number of milliseconds since the SDL library initialization. 42 | * 43 | * \note This value wraps if the program runs for more than ~49 days. 44 | */ 45 | extern DECLSPEC Uint32 SDLCALL SDL_GetTicks(void); 46 | 47 | /** 48 | * \brief Compare SDL ticks values, and return true if A has passed B 49 | * 50 | * e.g. if you want to wait 100 ms, you could do this: 51 | * Uint32 timeout = SDL_GetTicks() + 100; 52 | * while (!SDL_TICKS_PASSED(SDL_GetTicks(), timeout)) { 53 | * ... do work until timeout has elapsed 54 | * } 55 | */ 56 | #define SDL_TICKS_PASSED(A, B) ((Sint32)((B) - (A)) <= 0) 57 | 58 | /** 59 | * \brief Get the current value of the high resolution counter 60 | */ 61 | extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceCounter(void); 62 | 63 | /** 64 | * \brief Get the count per second of the high resolution counter 65 | */ 66 | extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceFrequency(void); 67 | 68 | /** 69 | * \brief Wait a specified number of milliseconds before returning. 70 | */ 71 | extern DECLSPEC void SDLCALL SDL_Delay(Uint32 ms); 72 | 73 | /** 74 | * Function prototype for the timer callback function. 75 | * 76 | * The callback function is passed the current timer interval and returns 77 | * the next timer interval. If the returned value is the same as the one 78 | * passed in, the periodic alarm continues, otherwise a new alarm is 79 | * scheduled. If the callback returns 0, the periodic alarm is cancelled. 80 | */ 81 | typedef Uint32 (SDLCALL * SDL_TimerCallback) (Uint32 interval, void *param); 82 | 83 | /** 84 | * Definition of the timer ID type. 85 | */ 86 | typedef int SDL_TimerID; 87 | 88 | /** 89 | * \brief Add a new timer to the pool of timers already running. 90 | * 91 | * \return A timer ID, or 0 when an error occurs. 92 | */ 93 | extern DECLSPEC SDL_TimerID SDLCALL SDL_AddTimer(Uint32 interval, 94 | SDL_TimerCallback callback, 95 | void *param); 96 | 97 | /** 98 | * \brief Remove a timer knowing its ID. 99 | * 100 | * \return A boolean value indicating success or failure. 101 | * 102 | * \warning It is not safe to remove a timer multiple times. 103 | */ 104 | extern DECLSPEC SDL_bool SDLCALL SDL_RemoveTimer(SDL_TimerID id); 105 | 106 | 107 | /* Ends C function definitions when using C++ */ 108 | #ifdef __cplusplus 109 | } 110 | #endif 111 | #include "close_code.h" 112 | 113 | #endif /* SDL_timer_h_ */ 114 | 115 | /* vi: set ts=4 sw=4 expandtab: */ 116 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_touch.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_touch.h 24 | * 25 | * Include file for SDL touch event handling. 26 | */ 27 | 28 | #ifndef SDL_touch_h_ 29 | #define SDL_touch_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | #include "SDL_video.h" 34 | 35 | #include "begin_code.h" 36 | /* Set up for C function definitions, even when using C++ */ 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | typedef Sint64 SDL_TouchID; 42 | typedef Sint64 SDL_FingerID; 43 | 44 | typedef enum 45 | { 46 | SDL_TOUCH_DEVICE_INVALID = -1, 47 | SDL_TOUCH_DEVICE_DIRECT, /* touch screen with window-relative coordinates */ 48 | SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE, /* trackpad with absolute device coordinates */ 49 | SDL_TOUCH_DEVICE_INDIRECT_RELATIVE /* trackpad with screen cursor-relative coordinates */ 50 | } SDL_TouchDeviceType; 51 | 52 | typedef struct SDL_Finger 53 | { 54 | SDL_FingerID id; 55 | float x; 56 | float y; 57 | float pressure; 58 | } SDL_Finger; 59 | 60 | /* Used as the device ID for mouse events simulated with touch input */ 61 | #define SDL_TOUCH_MOUSEID ((Uint32)-1) 62 | 63 | /* Used as the SDL_TouchID for touch events simulated with mouse input */ 64 | #define SDL_MOUSE_TOUCHID ((Sint64)-1) 65 | 66 | 67 | /* Function prototypes */ 68 | 69 | /** 70 | * \brief Get the number of registered touch devices. 71 | */ 72 | extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void); 73 | 74 | /** 75 | * \brief Get the touch ID with the given index, or 0 if the index is invalid. 76 | */ 77 | extern DECLSPEC SDL_TouchID SDLCALL SDL_GetTouchDevice(int index); 78 | 79 | /** 80 | * \brief Get the type of the given touch device. 81 | */ 82 | extern DECLSPEC SDL_TouchDeviceType SDLCALL SDL_GetTouchDeviceType(SDL_TouchID touchID); 83 | 84 | /** 85 | * \brief Get the number of active fingers for a given touch device. 86 | */ 87 | extern DECLSPEC int SDLCALL SDL_GetNumTouchFingers(SDL_TouchID touchID); 88 | 89 | /** 90 | * \brief Get the finger object of the given touch, with the given index. 91 | */ 92 | extern DECLSPEC SDL_Finger * SDLCALL SDL_GetTouchFinger(SDL_TouchID touchID, int index); 93 | 94 | /* Ends C function definitions when using C++ */ 95 | #ifdef __cplusplus 96 | } 97 | #endif 98 | #include "close_code.h" 99 | 100 | #endif /* SDL_touch_h_ */ 101 | 102 | /* vi: set ts=4 sw=4 expandtab: */ 103 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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 | -------------------------------------------------------------------------------- /Rvm_Win64/references/include/close_code.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file close_code.h 24 | * 25 | * This file reverses the effects of begin_code.h and should be included 26 | * after you finish any function and structure declarations in your headers 27 | */ 28 | 29 | #ifndef _begin_code_h 30 | #error close_code.h included without matching begin_code.h 31 | #endif 32 | #undef _begin_code_h 33 | 34 | /* Reset structure packing at previous byte alignment */ 35 | #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__) 36 | #ifdef __BORLANDC__ 37 | #pragma nopackwarning 38 | #endif 39 | #pragma pack(pop) 40 | #endif /* Compiler needs structure packing set */ 41 | -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/LICENSE.FLAC.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | https://hg.libsdl.org/SDL_mixer/file/default/external 3 | --- 4 | 5 | Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions 9 | are met: 10 | 11 | - Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | - Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | - Neither the name of the Xiph.org Foundation nor the names of its 19 | contributors may be used to endorse or promote products derived from 20 | this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR 26 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 27 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 28 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 29 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 30 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 31 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 32 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/LICENSE.modplug.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | https://hg.libsdl.org/SDL_mixer/file/default/external 3 | --- 4 | 5 | ModPlug-XMMS and libmodplug are now in the public domain. 6 | -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/LICENSE.ogg-vorbis.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright (c) 2002-2008 Xiph.org Foundation 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions 9 | are met: 10 | 11 | - Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | - Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | - Neither the name of the Xiph.org Foundation nor the names of its 19 | contributors may be used to endorse or promote products derived from 20 | this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION 26 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/LICENSE.opus.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | https://hg.libsdl.org/SDL_mixer/file/default/external 3 | --- 4 | 5 | Copyright 2001-2011 Xiph.Org, Skype Limited, Octasic, 6 | Jean-Marc Valin, Timothy B. Terriberry, 7 | CSIRO, Gregory Maxwell, Mark Borgerding, 8 | Erik de Castro Lopo 9 | 10 | Redistribution and use in source and binary forms, with or without 11 | modification, are permitted provided that the following conditions 12 | are met: 13 | 14 | - Redistributions of source code must retain the above copyright 15 | notice, this list of conditions and the following disclaimer. 16 | 17 | - Redistributions in binary form must reproduce the above copyright 18 | notice, this list of conditions and the following disclaimer in the 19 | documentation and/or other materials provided with the distribution. 20 | 21 | - Neither the name of Internet Society, IETF or IETF Trust, nor the 22 | names of specific contributors, may be used to endorse or promote 23 | products derived from this software without specific prior written 24 | permission. 25 | 26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 27 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 28 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 29 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 30 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 31 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 32 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 33 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 34 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 35 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 36 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 | 38 | Opus is subject to the royalty-free patent licenses which are 39 | specified at: 40 | 41 | Xiph.Org Foundation: 42 | https://datatracker.ietf.org/ipr/1524/ 43 | 44 | Microsoft Corporation: 45 | https://datatracker.ietf.org/ipr/1914/ 46 | 47 | Broadcom Corporation: 48 | https://datatracker.ietf.org/ipr/1526/ 49 | -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/LICENSE.opusfile.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_mixer can be found here: 2 | https://hg.libsdl.org/SDL_mixer/file/default/external 3 | --- 4 | 5 | Copyright (c) 1994-2013 Xiph.Org Foundation and contributors 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions 9 | are met: 10 | 11 | - Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | - Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in the 16 | documentation and/or other materials provided with the distribution. 17 | 18 | - Neither the name of the Xiph.Org Foundation nor the names of its 19 | contributors may be used to endorse or promote products derived from 20 | this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION 26 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/SDL2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/SDL2.dll -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/SDL2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/SDL2.lib -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/SDL2_mixer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/SDL2_mixer.dll -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/SDL2_mixer.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/SDL2_mixer.lib -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/SDL2main.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/SDL2main.lib -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/SDL2test.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/SDL2test.lib -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/glew32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/glew32.dll -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/glew32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/glew32.lib -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/glew32s.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/glew32s.lib -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/libFLAC-8.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/libFLAC-8.dll -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/libmodplug-1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/libmodplug-1.dll -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/libmpg123-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/libmpg123-0.dll -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/libogg-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/libogg-0.dll -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/libopus-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/libopus-0.dll -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/libopusfile-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/libopusfile-0.dll -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/libvorbis-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/libvorbis-0.dll -------------------------------------------------------------------------------- /Rvm_Win64/references/lib/x64/libvorbisfile-3.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/Rvm_Win64/references/lib/x64/libvorbisfile-3.dll -------------------------------------------------------------------------------- /Rvm_Win64/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Rvm_Win64.rc 4 | // 5 | #define IDI_ICON1 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /SDL2.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /SDL2.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /SDL2.framework/SDL2: -------------------------------------------------------------------------------- 1 | Versions/Current/SDL2 -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Frameworks/hidapi.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Frameworks/hidapi.framework/Versions/A/Resources/AUTHORS.txt: -------------------------------------------------------------------------------- 1 | 2 | HIDAPI Authors: 3 | 4 | Alan Ott : 5 | Original Author and Maintainer 6 | Linux, Windows, and Mac implementations 7 | 8 | Ludovic Rousseau : 9 | Formatting for Doxygen documentation 10 | Bug fixes 11 | Correctness fixes 12 | 13 | 14 | For a comprehensive list of contributions, see the commit list at github: 15 | https://github.com/libusb/hidapi/commits/master 16 | 17 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Frameworks/hidapi.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 19G2021 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | hidapi 11 | CFBundleIdentifier 12 | org.libsdl.hidapi 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | hidapi 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSupportedPlatforms 22 | 23 | MacOSX 24 | 25 | CFBundleVersion 26 | 1.0 27 | DTCompiler 28 | com.apple.compilers.llvm.clang.1_0 29 | DTPlatformBuild 30 | 12B5018i 31 | DTPlatformName 32 | macosx 33 | DTPlatformVersion 34 | 11.0 35 | DTSDKBuild 36 | 20A5374f 37 | DTSDKName 38 | macosx11.0 39 | DTXcode 40 | 1220 41 | DTXcodeBuild 42 | 12B5018i 43 | LSMinimumSystemVersion 44 | 10.9 45 | 46 | 47 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Frameworks/hidapi.framework/Versions/A/Resources/LICENSE-bsd.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010, Alan Ott, Signal 11 Software 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, 8 | this list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above copyright 10 | notice, this list of conditions and the following disclaimer in the 11 | documentation and/or other materials provided with the distribution. 12 | * Neither the name of Signal 11 Software nor the names of its 13 | contributors may be used to endorse or promote products derived from 14 | this software without specific prior written permission. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 20 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 | POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Frameworks/hidapi.framework/Versions/A/Resources/LICENSE-orig.txt: -------------------------------------------------------------------------------- 1 | HIDAPI - Multi-Platform library for 2 | communication with HID devices. 3 | 4 | Copyright 2009, Alan Ott, Signal 11 Software. 5 | All Rights Reserved. 6 | 7 | This software may be used by anyone for any reason so 8 | long as the copyright notice in the source files 9 | remains intact. 10 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Frameworks/hidapi.framework/Versions/A/Resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | HIDAPI can be used under one of three licenses. 2 | 3 | 1. The GNU General Public License, version 3.0, in LICENSE-gpl3.txt 4 | 2. A BSD-Style License, in LICENSE-bsd.txt. 5 | 3. The more liberal original HIDAPI license. LICENSE-orig.txt 6 | 7 | The license chosen is at the discretion of the user of HIDAPI. For example: 8 | 1. An author of GPL software would likely use HIDAPI under the terms of the 9 | GPL. 10 | 11 | 2. An author of commercial closed-source software would likely use HIDAPI 12 | under the terms of the BSD-style license or the original HIDAPI license. 13 | 14 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Frameworks/hidapi.framework/Versions/A/hidapi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/SDL2.framework/Versions/A/Frameworks/hidapi.framework/Versions/A/hidapi -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Frameworks/hidapi.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Frameworks/hidapi.framework/hidapi: -------------------------------------------------------------------------------- 1 | Versions/Current/hidapi -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_bits.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_bits.h 24 | * 25 | * Functions for fiddling with bits and bitmasks. 26 | */ 27 | 28 | #ifndef SDL_bits_h_ 29 | #define SDL_bits_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \file SDL_bits.h 41 | */ 42 | 43 | /** 44 | * Get the index of the most significant bit. Result is undefined when called 45 | * with 0. This operation can also be stated as "count leading zeroes" and 46 | * "log base 2". 47 | * 48 | * \return Index of the most significant bit, or -1 if the value is 0. 49 | */ 50 | #if defined(__WATCOMC__) && defined(__386__) 51 | extern _inline int _SDL_clz_watcom (Uint32); 52 | #pragma aux _SDL_clz_watcom = \ 53 | "bsr eax, eax" \ 54 | "xor eax, 31" \ 55 | parm [eax] nomemory \ 56 | value [eax] \ 57 | modify exact [eax] nomemory; 58 | #endif 59 | 60 | SDL_FORCE_INLINE int 61 | SDL_MostSignificantBitIndex32(Uint32 x) 62 | { 63 | #if defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) 64 | /* Count Leading Zeroes builtin in GCC. 65 | * http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html 66 | */ 67 | if (x == 0) { 68 | return -1; 69 | } 70 | return 31 - __builtin_clz(x); 71 | #elif defined(__WATCOMC__) && defined(__386__) 72 | if (x == 0) { 73 | return -1; 74 | } 75 | return 31 - _SDL_clz_watcom(x); 76 | #else 77 | /* Based off of Bit Twiddling Hacks by Sean Eron Anderson 78 | * , released in the public domain. 79 | * http://graphics.stanford.edu/~seander/bithacks.html#IntegerLog 80 | */ 81 | const Uint32 b[] = {0x2, 0xC, 0xF0, 0xFF00, 0xFFFF0000}; 82 | const int S[] = {1, 2, 4, 8, 16}; 83 | 84 | int msbIndex = 0; 85 | int i; 86 | 87 | if (x == 0) { 88 | return -1; 89 | } 90 | 91 | for (i = 4; i >= 0; i--) 92 | { 93 | if (x & b[i]) 94 | { 95 | x >>= S[i]; 96 | msbIndex |= S[i]; 97 | } 98 | } 99 | 100 | return msbIndex; 101 | #endif 102 | } 103 | 104 | SDL_FORCE_INLINE SDL_bool 105 | SDL_HasExactlyOneBitSet32(Uint32 x) 106 | { 107 | if (x && !(x & (x - 1))) { 108 | return SDL_TRUE; 109 | } 110 | return SDL_FALSE; 111 | } 112 | 113 | /* Ends C function definitions when using C++ */ 114 | #ifdef __cplusplus 115 | } 116 | #endif 117 | #include "close_code.h" 118 | 119 | #endif /* SDL_bits_h_ */ 120 | 121 | /* vi: set ts=4 sw=4 expandtab: */ 122 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_clipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_clipboard.h 24 | * 25 | * Include file for SDL clipboard handling 26 | */ 27 | 28 | #ifndef SDL_clipboard_h_ 29 | #define SDL_clipboard_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Function prototypes */ 40 | 41 | /** 42 | * \brief Put UTF-8 text into the clipboard 43 | * 44 | * \sa SDL_GetClipboardText() 45 | */ 46 | extern DECLSPEC int SDLCALL SDL_SetClipboardText(const char *text); 47 | 48 | /** 49 | * \brief Get UTF-8 text from the clipboard, which must be freed with SDL_free() 50 | * 51 | * \sa SDL_SetClipboardText() 52 | */ 53 | extern DECLSPEC char * SDLCALL SDL_GetClipboardText(void); 54 | 55 | /** 56 | * \brief Returns a flag indicating whether the clipboard exists and contains a text string that is non-empty 57 | * 58 | * \sa SDL_GetClipboardText() 59 | */ 60 | extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void); 61 | 62 | 63 | /* Ends C function definitions when using C++ */ 64 | #ifdef __cplusplus 65 | } 66 | #endif 67 | #include "close_code.h" 68 | 69 | #endif /* SDL_clipboard_h_ */ 70 | 71 | /* vi: set ts=4 sw=4 expandtab: */ 72 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_config.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_config_h_ 23 | #define SDL_config_h_ 24 | 25 | #include "SDL_platform.h" 26 | 27 | /** 28 | * \file SDL_config.h 29 | */ 30 | 31 | /* Add any platform that doesn't build using the configure system. */ 32 | #if defined(__WIN32__) 33 | #include "SDL_config_windows.h" 34 | #elif defined(__WINRT__) 35 | #include "SDL_config_winrt.h" 36 | #elif defined(__MACOSX__) 37 | #include "SDL_config_macosx.h" 38 | #elif defined(__IPHONEOS__) 39 | #include "SDL_config_iphoneos.h" 40 | #elif defined(__ANDROID__) 41 | #include "SDL_config_android.h" 42 | #elif defined(__PSP__) 43 | #include "SDL_config_psp.h" 44 | #elif defined(__OS2__) 45 | #include "SDL_config_os2.h" 46 | #else 47 | /* This is a minimal configuration just to get SDL running on new platforms. */ 48 | #include "SDL_config_minimal.h" 49 | #endif /* platform config */ 50 | 51 | #ifdef USING_GENERATED_CONFIG_H 52 | #error Wrong SDL_config.h, check your include path? 53 | #endif 54 | 55 | #endif /* SDL_config_h_ */ 56 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_copying.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_error.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_error.h 24 | * 25 | * Simple error message routines for SDL. 26 | */ 27 | 28 | #ifndef SDL_error_h_ 29 | #define SDL_error_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Public functions */ 40 | /* SDL_SetError() unconditionally returns -1. */ 41 | extern DECLSPEC int SDLCALL SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1); 42 | extern DECLSPEC const char *SDLCALL SDL_GetError(void); 43 | extern DECLSPEC void SDLCALL SDL_ClearError(void); 44 | 45 | /** 46 | * \name Internal error functions 47 | * 48 | * \internal 49 | * Private error reporting function - used internally. 50 | */ 51 | /* @{ */ 52 | #define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM) 53 | #define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED) 54 | #define SDL_InvalidParamError(param) SDL_SetError("Parameter '%s' is invalid", (param)) 55 | typedef enum 56 | { 57 | SDL_ENOMEM, 58 | SDL_EFREAD, 59 | SDL_EFWRITE, 60 | SDL_EFSEEK, 61 | SDL_UNSUPPORTED, 62 | SDL_LASTERROR 63 | } SDL_errorcode; 64 | /* SDL_Error() unconditionally returns -1. */ 65 | extern DECLSPEC int SDLCALL SDL_Error(SDL_errorcode code); 66 | /* @} *//* Internal error functions */ 67 | 68 | /* Ends C function definitions when using C++ */ 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | #include "close_code.h" 73 | 74 | #endif /* SDL_error_h_ */ 75 | 76 | /* vi: set ts=4 sw=4 expandtab: */ 77 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_gesture.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_gesture.h 24 | * 25 | * Include file for SDL gesture event handling. 26 | */ 27 | 28 | #ifndef SDL_gesture_h_ 29 | #define SDL_gesture_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | #include "SDL_video.h" 34 | 35 | #include "SDL_touch.h" 36 | 37 | 38 | #include "begin_code.h" 39 | /* Set up for C function definitions, even when using C++ */ 40 | #ifdef __cplusplus 41 | extern "C" { 42 | #endif 43 | 44 | typedef Sint64 SDL_GestureID; 45 | 46 | /* Function prototypes */ 47 | 48 | /** 49 | * \brief Begin Recording a gesture on the specified touch, or all touches (-1) 50 | * 51 | * 52 | */ 53 | extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId); 54 | 55 | 56 | /** 57 | * \brief Save all currently loaded Dollar Gesture templates 58 | * 59 | * 60 | */ 61 | extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *dst); 62 | 63 | /** 64 | * \brief Save a currently loaded Dollar Gesture template 65 | * 66 | * 67 | */ 68 | extern DECLSPEC int SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *dst); 69 | 70 | 71 | /** 72 | * \brief Load Dollar Gesture templates from a file 73 | * 74 | * 75 | */ 76 | extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src); 77 | 78 | 79 | /* Ends C function definitions when using C++ */ 80 | #ifdef __cplusplus 81 | } 82 | #endif 83 | #include "close_code.h" 84 | 85 | #endif /* SDL_gesture_h_ */ 86 | 87 | /* vi: set ts=4 sw=4 expandtab: */ 88 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_loadso.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_loadso.h 24 | * 25 | * System dependent library loading routines 26 | * 27 | * Some things to keep in mind: 28 | * \li These functions only work on C function names. Other languages may 29 | * have name mangling and intrinsic language support that varies from 30 | * compiler to compiler. 31 | * \li Make sure you declare your function pointers with the same calling 32 | * convention as the actual library function. Your code will crash 33 | * mysteriously if you do not do this. 34 | * \li Avoid namespace collisions. If you load a symbol from the library, 35 | * it is not defined whether or not it goes into the global symbol 36 | * namespace for the application. If it does and it conflicts with 37 | * symbols in your code or other shared libraries, you will not get 38 | * the results you expect. :) 39 | */ 40 | 41 | #ifndef SDL_loadso_h_ 42 | #define SDL_loadso_h_ 43 | 44 | #include "SDL_stdinc.h" 45 | #include "SDL_error.h" 46 | 47 | #include "begin_code.h" 48 | /* Set up for C function definitions, even when using C++ */ 49 | #ifdef __cplusplus 50 | extern "C" { 51 | #endif 52 | 53 | /** 54 | * This function dynamically loads a shared object and returns a pointer 55 | * to the object handle (or NULL if there was an error). 56 | * The 'sofile' parameter is a system dependent name of the object file. 57 | */ 58 | extern DECLSPEC void *SDLCALL SDL_LoadObject(const char *sofile); 59 | 60 | /** 61 | * Given an object handle, this function looks up the address of the 62 | * named function in the shared object and returns it. This address 63 | * is no longer valid after calling SDL_UnloadObject(). 64 | */ 65 | extern DECLSPEC void *SDLCALL SDL_LoadFunction(void *handle, 66 | const char *name); 67 | 68 | /** 69 | * Unload a shared object from memory. 70 | */ 71 | extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle); 72 | 73 | /* Ends C function definitions when using C++ */ 74 | #ifdef __cplusplus 75 | } 76 | #endif 77 | #include "close_code.h" 78 | 79 | #endif /* SDL_loadso_h_ */ 80 | 81 | /* vi: set ts=4 sw=4 expandtab: */ 82 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_metal.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_metal.h 24 | * 25 | * Header file for functions to creating Metal layers and views on SDL windows. 26 | */ 27 | 28 | #ifndef SDL_metal_h_ 29 | #define SDL_metal_h_ 30 | 31 | #include "SDL_video.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \brief A handle to a CAMetalLayer-backed NSView (macOS) or UIView (iOS/tvOS). 41 | * 42 | * \note This can be cast directly to an NSView or UIView. 43 | */ 44 | typedef void *SDL_MetalView; 45 | 46 | /** 47 | * \name Metal support functions 48 | */ 49 | /* @{ */ 50 | 51 | /** 52 | * \brief Create a CAMetalLayer-backed NSView/UIView and attach it to the 53 | * specified window. 54 | * 55 | * On macOS, this does *not* associate a MTLDevice with the CAMetalLayer on its 56 | * own. It is up to user code to do that. 57 | * 58 | * The returned handle can be casted directly to a NSView or UIView, and the 59 | * CAMetalLayer can be accessed from the view's 'layer' property. 60 | * 61 | * \code 62 | * SDL_MetalView metalview = SDL_Metal_CreateView(window); 63 | * UIView *uiview = (__bridge UIView *)metalview; 64 | * CAMetalLayer *metallayer = (CAMetalLayer *)uiview.layer; 65 | * // [...] 66 | * SDL_Metal_DestroyView(metalview); 67 | * \endcode 68 | * 69 | * \sa SDL_Metal_DestroyView 70 | */ 71 | extern DECLSPEC SDL_MetalView SDLCALL SDL_Metal_CreateView(SDL_Window * window); 72 | 73 | /** 74 | * \brief Destroy an existing SDL_MetalView object. 75 | * 76 | * This should be called before SDL_DestroyWindow, if SDL_Metal_CreateView was 77 | * called after SDL_CreateWindow. 78 | * 79 | * \sa SDL_Metal_CreateView 80 | */ 81 | extern DECLSPEC void SDLCALL SDL_Metal_DestroyView(SDL_MetalView view); 82 | 83 | /* @} *//* Metal support functions */ 84 | 85 | /* Ends C function definitions when using C++ */ 86 | #ifdef __cplusplus 87 | } 88 | #endif 89 | #include "close_code.h" 90 | 91 | #endif /* SDL_metal_h_ */ 92 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_name.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_opengles.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 1.X API headers. 26 | */ 27 | #include "SDL_config.h" 28 | 29 | #ifdef __IPHONEOS__ 30 | #include 31 | #include 32 | #else 33 | #include 34 | #include 35 | #endif 36 | 37 | #ifndef APIENTRY 38 | #define APIENTRY 39 | #endif 40 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_opengles2.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_opengles2.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 2.0 API headers. 26 | */ 27 | #include "SDL_config.h" 28 | 29 | #ifndef _MSC_VER 30 | 31 | #ifdef __IPHONEOS__ 32 | #include 33 | #include 34 | #else 35 | #include 36 | #include 37 | #include 38 | #endif 39 | 40 | #else /* _MSC_VER */ 41 | 42 | /* OpenGL ES2 headers for Visual Studio */ 43 | #include "SDL_opengles2_khrplatform.h" 44 | #include "SDL_opengles2_gl2platform.h" 45 | #include "SDL_opengles2_gl2.h" 46 | #include "SDL_opengles2_gl2ext.h" 47 | 48 | #endif /* _MSC_VER */ 49 | 50 | #ifndef APIENTRY 51 | #define APIENTRY GL_APIENTRY 52 | #endif 53 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_opengles2_gl2platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl2platform_h_ 2 | #define __gl2platform_h_ 3 | 4 | /* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* Platform-specific types and definitions for OpenGL ES 2.X gl2.h 12 | * 13 | * Adopters may modify khrplatform.h and this file to suit their platform. 14 | * You are encouraged to submit all modifications to the Khronos group so that 15 | * they can be included in future versions of this file. Please submit changes 16 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) 17 | * by filing a bug against product "OpenGL-ES" component "Registry". 18 | */ 19 | 20 | /*#include */ 21 | 22 | #ifndef GL_APICALL 23 | #define GL_APICALL KHRONOS_APICALL 24 | #endif 25 | 26 | #ifndef GL_APIENTRY 27 | #define GL_APIENTRY KHRONOS_APIENTRY 28 | #endif 29 | 30 | #endif /* __gl2platform_h_ */ 31 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_power.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_power_h_ 23 | #define SDL_power_h_ 24 | 25 | /** 26 | * \file SDL_power.h 27 | * 28 | * Header for the SDL power management routines. 29 | */ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \brief The basic state for the system's power supply. 41 | */ 42 | typedef enum 43 | { 44 | SDL_POWERSTATE_UNKNOWN, /**< cannot determine power status */ 45 | SDL_POWERSTATE_ON_BATTERY, /**< Not plugged in, running on the battery */ 46 | SDL_POWERSTATE_NO_BATTERY, /**< Plugged in, no battery available */ 47 | SDL_POWERSTATE_CHARGING, /**< Plugged in, charging battery */ 48 | SDL_POWERSTATE_CHARGED /**< Plugged in, battery charged */ 49 | } SDL_PowerState; 50 | 51 | 52 | /** 53 | * \brief Get the current power supply details. 54 | * 55 | * \param secs Seconds of battery life left. You can pass a NULL here if 56 | * you don't care. Will return -1 if we can't determine a 57 | * value, or we're not running on a battery. 58 | * 59 | * \param pct Percentage of battery life left, between 0 and 100. You can 60 | * pass a NULL here if you don't care. Will return -1 if we 61 | * can't determine a value, or we're not running on a battery. 62 | * 63 | * \return The state of the battery (if any). 64 | */ 65 | extern DECLSPEC SDL_PowerState SDLCALL SDL_GetPowerInfo(int *secs, int *pct); 66 | 67 | /* Ends C function definitions when using C++ */ 68 | #ifdef __cplusplus 69 | } 70 | #endif 71 | #include "close_code.h" 72 | 73 | #endif /* SDL_power_h_ */ 74 | 75 | /* vi: set ts=4 sw=4 expandtab: */ 76 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_quit.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_quit.h 24 | * 25 | * Include file for SDL quit event handling. 26 | */ 27 | 28 | #ifndef SDL_quit_h_ 29 | #define SDL_quit_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | /** 35 | * \file SDL_quit.h 36 | * 37 | * An ::SDL_QUIT event is generated when the user tries to close the application 38 | * window. If it is ignored or filtered out, the window will remain open. 39 | * If it is not ignored or filtered, it is queued normally and the window 40 | * is allowed to close. When the window is closed, screen updates will 41 | * complete, but have no effect. 42 | * 43 | * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) 44 | * and SIGTERM (system termination request), if handlers do not already 45 | * exist, that generate ::SDL_QUIT events as well. There is no way 46 | * to determine the cause of an ::SDL_QUIT event, but setting a signal 47 | * handler in your application will override the default generation of 48 | * quit events for that signal. 49 | * 50 | * \sa SDL_Quit() 51 | */ 52 | 53 | /* There are no functions directly affecting the quit event */ 54 | 55 | #define SDL_QuitRequested() \ 56 | (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0)) 57 | 58 | #endif /* SDL_quit_h_ */ 59 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_revision.h: -------------------------------------------------------------------------------- 1 | #define SDL_REVISION "hg-13609:34cc7d3b69d3" 2 | #define SDL_REVISION_NUMBER 13609 3 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_timer.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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_timer_h_ 23 | #define SDL_timer_h_ 24 | 25 | /** 26 | * \file SDL_timer.h 27 | * 28 | * Header for the SDL time management routines. 29 | */ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | #include "begin_code.h" 35 | /* Set up for C function definitions, even when using C++ */ 36 | #ifdef __cplusplus 37 | extern "C" { 38 | #endif 39 | 40 | /** 41 | * \brief Get the number of milliseconds since the SDL library initialization. 42 | * 43 | * \note This value wraps if the program runs for more than ~49 days. 44 | */ 45 | extern DECLSPEC Uint32 SDLCALL SDL_GetTicks(void); 46 | 47 | /** 48 | * \brief Compare SDL ticks values, and return true if A has passed B 49 | * 50 | * e.g. if you want to wait 100 ms, you could do this: 51 | * Uint32 timeout = SDL_GetTicks() + 100; 52 | * while (!SDL_TICKS_PASSED(SDL_GetTicks(), timeout)) { 53 | * ... do work until timeout has elapsed 54 | * } 55 | */ 56 | #define SDL_TICKS_PASSED(A, B) ((Sint32)((B) - (A)) <= 0) 57 | 58 | /** 59 | * \brief Get the current value of the high resolution counter 60 | */ 61 | extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceCounter(void); 62 | 63 | /** 64 | * \brief Get the count per second of the high resolution counter 65 | */ 66 | extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceFrequency(void); 67 | 68 | /** 69 | * \brief Wait a specified number of milliseconds before returning. 70 | */ 71 | extern DECLSPEC void SDLCALL SDL_Delay(Uint32 ms); 72 | 73 | /** 74 | * Function prototype for the timer callback function. 75 | * 76 | * The callback function is passed the current timer interval and returns 77 | * the next timer interval. If the returned value is the same as the one 78 | * passed in, the periodic alarm continues, otherwise a new alarm is 79 | * scheduled. If the callback returns 0, the periodic alarm is cancelled. 80 | */ 81 | typedef Uint32 (SDLCALL * SDL_TimerCallback) (Uint32 interval, void *param); 82 | 83 | /** 84 | * Definition of the timer ID type. 85 | */ 86 | typedef int SDL_TimerID; 87 | 88 | /** 89 | * \brief Add a new timer to the pool of timers already running. 90 | * 91 | * \return A timer ID, or 0 when an error occurs. 92 | */ 93 | extern DECLSPEC SDL_TimerID SDLCALL SDL_AddTimer(Uint32 interval, 94 | SDL_TimerCallback callback, 95 | void *param); 96 | 97 | /** 98 | * \brief Remove a timer knowing its ID. 99 | * 100 | * \return A boolean value indicating success or failure. 101 | * 102 | * \warning It is not safe to remove a timer multiple times. 103 | */ 104 | extern DECLSPEC SDL_bool SDLCALL SDL_RemoveTimer(SDL_TimerID id); 105 | 106 | 107 | /* Ends C function definitions when using C++ */ 108 | #ifdef __cplusplus 109 | } 110 | #endif 111 | #include "close_code.h" 112 | 113 | #endif /* SDL_timer_h_ */ 114 | 115 | /* vi: set ts=4 sw=4 expandtab: */ 116 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_touch.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_touch.h 24 | * 25 | * Include file for SDL touch event handling. 26 | */ 27 | 28 | #ifndef SDL_touch_h_ 29 | #define SDL_touch_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | #include "SDL_video.h" 34 | 35 | #include "begin_code.h" 36 | /* Set up for C function definitions, even when using C++ */ 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | typedef Sint64 SDL_TouchID; 42 | typedef Sint64 SDL_FingerID; 43 | 44 | typedef enum 45 | { 46 | SDL_TOUCH_DEVICE_INVALID = -1, 47 | SDL_TOUCH_DEVICE_DIRECT, /* touch screen with window-relative coordinates */ 48 | SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE, /* trackpad with absolute device coordinates */ 49 | SDL_TOUCH_DEVICE_INDIRECT_RELATIVE /* trackpad with screen cursor-relative coordinates */ 50 | } SDL_TouchDeviceType; 51 | 52 | typedef struct SDL_Finger 53 | { 54 | SDL_FingerID id; 55 | float x; 56 | float y; 57 | float pressure; 58 | } SDL_Finger; 59 | 60 | /* Used as the device ID for mouse events simulated with touch input */ 61 | #define SDL_TOUCH_MOUSEID ((Uint32)-1) 62 | 63 | /* Used as the SDL_TouchID for touch events simulated with mouse input */ 64 | #define SDL_MOUSE_TOUCHID ((Sint64)-1) 65 | 66 | 67 | /* Function prototypes */ 68 | 69 | /** 70 | * \brief Get the number of registered touch devices. 71 | */ 72 | extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void); 73 | 74 | /** 75 | * \brief Get the touch ID with the given index, or 0 if the index is invalid. 76 | */ 77 | extern DECLSPEC SDL_TouchID SDLCALL SDL_GetTouchDevice(int index); 78 | 79 | /** 80 | * \brief Get the type of the given touch device. 81 | */ 82 | extern DECLSPEC SDL_TouchDeviceType SDLCALL SDL_GetTouchDeviceType(SDL_TouchID touchID); 83 | 84 | /** 85 | * \brief Get the number of active fingers for a given touch device. 86 | */ 87 | extern DECLSPEC int SDLCALL SDL_GetNumTouchFingers(SDL_TouchID touchID); 88 | 89 | /** 90 | * \brief Get the finger object of the given touch, with the given index. 91 | */ 92 | extern DECLSPEC SDL_Finger * SDLCALL SDL_GetTouchFinger(SDL_TouchID touchID, int index); 93 | 94 | /* Ends C function definitions when using C++ */ 95 | #ifdef __cplusplus 96 | } 97 | #endif 98 | #include "close_code.h" 99 | 100 | #endif /* SDL_touch_h_ */ 101 | 102 | /* vi: set ts=4 sw=4 expandtab: */ 103 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Headers/close_code.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file close_code.h 24 | * 25 | * This file reverses the effects of begin_code.h and should be included 26 | * after you finish any function and structure declarations in your headers 27 | */ 28 | 29 | #ifndef _begin_code_h 30 | #error close_code.h included without matching begin_code.h 31 | #endif 32 | #undef _begin_code_h 33 | 34 | /* Reset structure packing at previous byte alignment */ 35 | #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__) 36 | #ifdef __BORLANDC__ 37 | #pragma nopackwarning 38 | #endif 39 | #pragma pack(pop) 40 | #endif /* Compiler needs structure packing set */ 41 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 19G2021 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | SDL2 11 | CFBundleGetInfoString 12 | http://www.libsdl.org 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.12 23 | CFBundleSignature 24 | SDLX 25 | CFBundleSupportedPlatforms 26 | 27 | MacOSX 28 | 29 | CFBundleVersion 30 | 2.0.12 31 | DTCompiler 32 | com.apple.compilers.llvm.clang.1_0 33 | DTPlatformBuild 34 | 12B5018i 35 | DTPlatformName 36 | macosx 37 | DTPlatformVersion 38 | 11.0 39 | DTSDKBuild 40 | 20A5374f 41 | DTSDKName 42 | macosx11.0 43 | DTXcode 44 | 1220 45 | DTXcodeBuild 46 | 12B5018i 47 | LSMinimumSystemVersion 48 | 10.9 49 | 50 | 51 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Resources/License.txt: -------------------------------------------------------------------------------- 1 | 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 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 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/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 | -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/Resources/default.metallib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/SDL2.framework/Versions/A/Resources/default.metallib -------------------------------------------------------------------------------- /SDL2.framework/Versions/A/SDL2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/SDL2.framework/Versions/A/SDL2 -------------------------------------------------------------------------------- /SDL2.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /SDL2_mixer.framework/Frameworks: -------------------------------------------------------------------------------- 1 | Versions/Current/Frameworks -------------------------------------------------------------------------------- /SDL2_mixer.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /SDL2_mixer.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /SDL2_mixer.framework/SDL2_mixer: -------------------------------------------------------------------------------- 1 | Versions/Current/SDL2_mixer -------------------------------------------------------------------------------- /SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Ogg: -------------------------------------------------------------------------------- 1 | Versions/Current/Ogg -------------------------------------------------------------------------------- /SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Versions/A/Headers/config_types.h: -------------------------------------------------------------------------------- 1 | #ifndef __CONFIG_TYPES_H__ 2 | #define __CONFIG_TYPES_H__ 3 | 4 | /* these are filled in by configure or cmake*/ 5 | #define INCLUDE_INTTYPES_H 1 6 | #define INCLUDE_STDINT_H 1 7 | #define INCLUDE_SYS_TYPES_H 1 8 | 9 | #if INCLUDE_INTTYPES_H 10 | # include 11 | #endif 12 | #if INCLUDE_STDINT_H 13 | # include 14 | #endif 15 | #if INCLUDE_SYS_TYPES_H 16 | # include 17 | #endif 18 | 19 | typedef int16_t ogg_int16_t; 20 | typedef uint16_t ogg_uint16_t; 21 | typedef int32_t ogg_int32_t; 22 | typedef uint32_t ogg_uint32_t; 23 | typedef int64_t ogg_int64_t; 24 | typedef uint64_t ogg_uint64_t; 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Versions/A/Ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Versions/A/Ogg -------------------------------------------------------------------------------- /SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 19G2021 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | Ogg 11 | CFBundleIdentifier 12 | org.xiph.ogg 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.3.4 19 | CFBundleSignature 20 | ???? 21 | CFBundleSupportedPlatforms 22 | 23 | MacOSX 24 | 25 | CFBundleVersion 26 | 1.3.4 27 | CSResourcesFileMapped 28 | 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 12B5018i 33 | DTPlatformName 34 | macosx 35 | DTPlatformVersion 36 | 11.0 37 | DTSDKBuild 38 | 20A5374f 39 | DTSDKName 40 | macosx11.0 41 | DTXcode 42 | 1220 43 | DTXcodeBuild 44 | 12B5018i 45 | LSMinimumSystemVersion 46 | 10.9 47 | 48 | 49 | -------------------------------------------------------------------------------- /SDL2_mixer.framework/Versions/A/Frameworks/Ogg.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 19G2021 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | Vorbis 11 | CFBundleIdentifier 12 | org.xiph.vorbis 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.3.6 19 | CFBundleSignature 20 | ???? 21 | CFBundleSupportedPlatforms 22 | 23 | MacOSX 24 | 25 | CFBundleVersion 26 | 1.3.6 27 | CSResourcesFileMapped 28 | 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 12B5018i 33 | DTPlatformName 34 | macosx 35 | DTPlatformVersion 36 | 11.0 37 | DTSDKBuild 38 | 20A5374f 39 | DTSDKName 40 | macosx11.0 41 | DTXcode 42 | 1220 43 | DTXcodeBuild 44 | 12B5018i 45 | LSMinimumSystemVersion 46 | 10.9 47 | 48 | 49 | -------------------------------------------------------------------------------- /SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Versions/A/Vorbis: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Versions/A/Vorbis -------------------------------------------------------------------------------- /SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /SDL2_mixer.framework/Versions/A/Frameworks/Vorbis.framework/Vorbis: -------------------------------------------------------------------------------- 1 | Versions/Current/Vorbis -------------------------------------------------------------------------------- /SDL2_mixer.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 19G2021 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | SDL2_mixer 11 | CFBundleIdentifier 12 | org.libsdl.SDL2-mixer 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | SDL2_mixer 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 2.0.4 21 | CFBundleSupportedPlatforms 22 | 23 | MacOSX 24 | 25 | CFBundleVersion 26 | 2.0.4 27 | DTCompiler 28 | com.apple.compilers.llvm.clang.1_0 29 | DTPlatformBuild 30 | 12B5018i 31 | DTPlatformName 32 | macosx 33 | DTPlatformVersion 34 | 11.0 35 | DTSDKBuild 36 | 20A5374f 37 | DTSDKName 38 | macosx11.0 39 | DTXcode 40 | 1220 41 | DTXcodeBuild 42 | 12B5018i 43 | LSMinimumSystemVersion 44 | 10.9 45 | 46 | 47 | -------------------------------------------------------------------------------- /SDL2_mixer.framework/Versions/A/SDL2_mixer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/SDL2_mixer.framework/Versions/A/SDL2_mixer -------------------------------------------------------------------------------- /SDL2_mixer.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/icon.jpg -------------------------------------------------------------------------------- /rvm.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /rvm.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /rvm.xcodeproj/xcshareddata/xcschemes/rvm.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 45 | 51 | 52 | 53 | 54 | 60 | 62 | 68 | 69 | 70 | 71 | 73 | 74 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /rvm/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "scale" : "1x", 6 | "size" : "16x16" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "scale" : "2x", 11 | "size" : "16x16" 12 | }, 13 | { 14 | "filename" : "icesonic32.png", 15 | "idiom" : "mac", 16 | "scale" : "1x", 17 | "size" : "32x32" 18 | }, 19 | { 20 | "filename" : "icesonic64.png", 21 | "idiom" : "mac", 22 | "scale" : "2x", 23 | "size" : "32x32" 24 | }, 25 | { 26 | "filename" : "icesonic128.png", 27 | "idiom" : "mac", 28 | "scale" : "1x", 29 | "size" : "128x128" 30 | }, 31 | { 32 | "filename" : "icesonic256-1.png", 33 | "idiom" : "mac", 34 | "scale" : "2x", 35 | "size" : "128x128" 36 | }, 37 | { 38 | "filename" : "icesonic256.png", 39 | "idiom" : "mac", 40 | "scale" : "1x", 41 | "size" : "256x256" 42 | }, 43 | { 44 | "filename" : "icesonic.png", 45 | "idiom" : "mac", 46 | "scale" : "2x", 47 | "size" : "256x256" 48 | }, 49 | { 50 | "filename" : "icesonic-1.png", 51 | "idiom" : "mac", 52 | "scale" : "1x", 53 | "size" : "512x512" 54 | }, 55 | { 56 | "idiom" : "mac", 57 | "scale" : "2x", 58 | "size" : "512x512" 59 | } 60 | ], 61 | "info" : { 62 | "author" : "xcode", 63 | "version" : 1 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /rvm/Assets.xcassets/AppIcon.appiconset/icesonic-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/rvm/Assets.xcassets/AppIcon.appiconset/icesonic-1.png -------------------------------------------------------------------------------- /rvm/Assets.xcassets/AppIcon.appiconset/icesonic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/rvm/Assets.xcassets/AppIcon.appiconset/icesonic.png -------------------------------------------------------------------------------- /rvm/Assets.xcassets/AppIcon.appiconset/icesonic128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/rvm/Assets.xcassets/AppIcon.appiconset/icesonic128.png -------------------------------------------------------------------------------- /rvm/Assets.xcassets/AppIcon.appiconset/icesonic256-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/rvm/Assets.xcassets/AppIcon.appiconset/icesonic256-1.png -------------------------------------------------------------------------------- /rvm/Assets.xcassets/AppIcon.appiconset/icesonic256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/rvm/Assets.xcassets/AppIcon.appiconset/icesonic256.png -------------------------------------------------------------------------------- /rvm/Assets.xcassets/AppIcon.appiconset/icesonic32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/rvm/Assets.xcassets/AppIcon.appiconset/icesonic32.png -------------------------------------------------------------------------------- /rvm/Assets.xcassets/AppIcon.appiconset/icesonic64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sappharad/rvm_soniccd/e869455fee81bf9a485da1a552d46c721272f035/rvm/Assets.xcassets/AppIcon.appiconset/icesonic64.png -------------------------------------------------------------------------------- /rvm/Core/AnimationFileList.h: -------------------------------------------------------------------------------- 1 | // 2 | // AnimationFileList.h 3 | // rvm 4 | // 5 | 6 | #ifndef AnimationFileList_h 7 | #define AnimationFileList_h 8 | 9 | struct AnimationFileList { 10 | char fileName[32]; 11 | int numAnimations; 12 | int aniListOffset; 13 | int cbListOffset; 14 | }; 15 | 16 | #endif /* AnimationFileList_h */ 17 | -------------------------------------------------------------------------------- /rvm/Core/AnimationSystem.h: -------------------------------------------------------------------------------- 1 | // 2 | // AnimationSystem.h 3 | // 4 | 5 | #ifndef AnimationSystem_h 6 | #define AnimationSystem_h 7 | 8 | #include 9 | #include 10 | #include "AnimationFileList.h" 11 | #include "SpriteFrame.h" 12 | #include "SpriteAnimation.h" 13 | #include "CollisionBox.h" 14 | #include "ObjectEntity.h" 15 | #include "GraphicsSystem.h" 16 | #include "FileData.h" 17 | #include "FileIO.h" 18 | 19 | extern struct SpriteFrame animationFrames[4096]; 20 | extern int animationFramesNo; 21 | extern struct SpriteAnimation animationList[1024]; 22 | extern int animationListNo; 23 | extern struct AnimationFileList animationFile[256]; 24 | extern int animationFileNo; 25 | extern struct CollisionBox collisionBoxList[32]; 26 | extern int collisionBoxNo; 27 | 28 | void Init_AnimationSystem(void); 29 | void AnimationSystem_LoadAnimationFile(char* filePath); 30 | struct AnimationFileList* AnimationSystem_AddAnimationFile(char* fileName); 31 | struct AnimationFileList* AnimationSystem_GetDefaultAnimationRef(void); 32 | void AnimationSystem_ClearAnimationData(void); 33 | void AnimationSystem_ProcessObjectAnimation(struct SpriteAnimation *animationRef, struct ObjectEntity *currentObject); 34 | void AnimationSystem_DrawObjectAnimation(struct SpriteAnimation *animationRef, struct ObjectEntity *currentObject, int xPos, int yPos); 35 | 36 | #endif /* AnimationSystem_h */ 37 | -------------------------------------------------------------------------------- /rvm/Core/AudioPlayback.h: -------------------------------------------------------------------------------- 1 | // 2 | // AudioPlayback.h 3 | // rvm 4 | // 5 | 6 | #ifndef AudioPlayback_h 7 | #define AudioPlayback_h 8 | 9 | #include 10 | #include 11 | #include 12 | #include "MusicTrackInfo.h" 13 | #include "FileData.h" 14 | #include "FileIO.h" 15 | #include "SDL_mixer.h" 16 | 17 | extern int numGlobalSFX; 18 | extern int numStageSFX; 19 | extern bool sfxLoaded[256]; 20 | extern int channelSfxNum[8]; 21 | extern int nextChannelPos; 22 | extern bool musicEnabled; 23 | extern int musicVolume; 24 | extern float musicVolumeSetting; 25 | extern float sfxVolumeSetting; 26 | extern int musicStatus; 27 | extern int currentMusicTrack; 28 | extern struct MusicTrackInfo musicTracks[16]; 29 | 30 | void InitAudioPlayback(void); 31 | void AudioPlayback_ReleaseAudioPlayback(void); 32 | void AudioPlayback_ReleaseGlobalSFX(void); 33 | void AudioPlayback_ReleaseStageSFX(void); 34 | void AudioPlayback_SetGameVolumes(int bgmVolume, int sfxVolume); 35 | void AudioPlayback_StopAllSFX(void); 36 | void AudioPlayback_PauseSound(void); 37 | void AudioPlayback_ResumeSound(void); 38 | void AudioPlayback_SetMusicTrack(char* fileName, int trackNo, uint8_t loopTrack, uint32_t loopPoint); 39 | void AudioPlayback_SetMusicVolume(int volume); 40 | void AudioPlayback_PlayMusic(int trackNo); 41 | void AudioPlayback_StopMusic(void); 42 | void AudioPlayback_LoadSfx(char* fileName, int sfxNum); 43 | void AudioPlayback_PlaySfx(int sfxNum, uint8_t sLoop); 44 | void AudioPlayback_StopSfx(int sfxNum); 45 | void AudioPlayback_SetSfxAttributes(int sfxNum, int volume, int pan); 46 | 47 | #endif /* AudioPlayback_h */ 48 | -------------------------------------------------------------------------------- /rvm/Core/CollisionBox.h: -------------------------------------------------------------------------------- 1 | // 2 | // CollisionBox.h 3 | // rvm 4 | // 5 | 6 | #ifndef CollisionBox_h 7 | #define CollisionBox_h 8 | 9 | struct CollisionBox { 10 | signed char left[8]; 11 | signed char top[8]; 12 | signed char right[8]; 13 | signed char bottom[8]; 14 | }; 15 | 16 | #endif /* CollisionBox_h */ 17 | -------------------------------------------------------------------------------- /rvm/Core/CollisionMask16x16.h: -------------------------------------------------------------------------------- 1 | // 2 | // CollisionMask16x16.h 3 | // rvm 4 | // 5 | 6 | #ifndef CollisionMask16x16_h 7 | #define CollisionMask16x16_h 8 | 9 | struct CollisionMask16x16 { 10 | signed char floorMask[0x4000]; 11 | signed char leftWallMask[0x4000]; 12 | signed char rightWallMask[0x4000]; 13 | signed char roofMask[0x4000]; 14 | unsigned int angle[0x400]; 15 | unsigned char flags[0x400]; 16 | }; 17 | 18 | #endif /* CollisionMask16x16_h */ 19 | -------------------------------------------------------------------------------- /rvm/Core/CollisionSensor.h: -------------------------------------------------------------------------------- 1 | // 2 | // CollisionSensor.h 3 | // rvm 4 | // 5 | 6 | #ifndef CollisionSensor_h 7 | #define CollisionSensor_h 8 | 9 | struct CollisionSensor { 10 | int xPos; 11 | int yPos; 12 | int angle; 13 | uint8_t collided; 14 | uint8_t flags; 15 | }; 16 | 17 | #endif /* CollisionSensor_h */ 18 | -------------------------------------------------------------------------------- /rvm/Core/DrawVertex.h: -------------------------------------------------------------------------------- 1 | // 2 | // DrawVertex.h 3 | // rvm 4 | // 5 | 6 | #ifndef DrawVertex_h 7 | #define DrawVertex_h 8 | #include "SDL.h" 9 | 10 | struct Vector2 { 11 | short X; 12 | short Y; 13 | }; 14 | 15 | struct Color { 16 | uint8_t R; 17 | uint8_t G; 18 | uint8_t B; 19 | uint8_t A; 20 | }; 21 | 22 | struct DrawVertex { 23 | struct Vector2 position; 24 | struct Vector2 texCoord; 25 | struct Color color; 26 | }; 27 | 28 | #endif /* DrawVertex_h */ 29 | -------------------------------------------------------------------------------- /rvm/Core/DrawVertex3D.h: -------------------------------------------------------------------------------- 1 | // 2 | // DrawVertex3D.h 3 | // rvm 4 | // 5 | 6 | #ifndef DrawVertex3D_h 7 | #define DrawVertex3D_h 8 | 9 | #include "DrawVertex.h" 10 | 11 | struct Vector3 { 12 | float X; 13 | float Y; 14 | float Z; 15 | }; 16 | 17 | struct DrawVertex3D { 18 | struct Vector3 position; 19 | struct Vector2 texCoord; 20 | struct Color color; 21 | }; 22 | 23 | #endif /* DrawVertex3D_h */ 24 | -------------------------------------------------------------------------------- /rvm/Core/EngineCallbacks.h: -------------------------------------------------------------------------------- 1 | // 2 | // EngineCallbacks.h 3 | // rvm 4 | // 5 | 6 | #ifndef EngineCallbacks_h 7 | #define EngineCallbacks_h 8 | 9 | #include 10 | #include "FileIO.h" 11 | #include "AudioPlayback.h" 12 | #include "GlobalAppDefinitions.h" 13 | #include "GraphicsSystem.h" 14 | #include "StageSystem.h" 15 | #include "ObjectSystem.h" 16 | #include "RenderDevice.h" 17 | #ifdef ENABLE_MPV 18 | #include "MpvPlayer.h" 19 | #endif 20 | 21 | void EngineCallbacks_PlayVideoFile(char* fileName); 22 | void EngineCallbacks_OnlineSetAchievement(int achievementID, int achievementDone); 23 | void EngineCallbacks_OnlineSetLeaderboard(int leaderboardID, int result); 24 | void EngineCallbacks_OnlineLoadAchievementsMenu(void); 25 | void EngineCallbacks_OnlineLoadLeaderboardsMenu(void); 26 | void EngineCallbacks_RetroEngineCallback(int callbackID); 27 | void EngineCallbacks_UpsellScreen(void); 28 | void EngineCallbacks_ConfirmationScreen(bool yes); 29 | void EngineCallbacks_ExitConfirmation(bool yes); 30 | void EngineCallbacks_StartupRetroEngine(void); 31 | void EngineCallbacks_ProcessMainLoop(void); 32 | 33 | #endif /* EngineCallbacks_h */ 34 | -------------------------------------------------------------------------------- /rvm/Core/Face3D.h: -------------------------------------------------------------------------------- 1 | // 2 | // Face3D.h 3 | // rvm 4 | // 5 | 6 | #ifndef Face3D_h 7 | #define Face3D_h 8 | #include "SDL.h" 9 | 10 | struct Face3D { 11 | int a; 12 | int b; 13 | int c; 14 | int d; 15 | int color; 16 | uint8_t flag; 17 | }; 18 | 19 | #endif /* Face3D_h */ 20 | -------------------------------------------------------------------------------- /rvm/Core/FileData.h: -------------------------------------------------------------------------------- 1 | // 2 | // FileData.h 3 | // rvm 4 | // 5 | 6 | #ifndef FileData_h 7 | #define FileData_h 8 | #include 9 | 10 | struct FileData { 11 | char fileName[64]; 12 | unsigned int fileSize; 13 | unsigned int position; 14 | unsigned int bufferPos; 15 | unsigned int virtualFileOffset; 16 | unsigned char eStringPosA; 17 | unsigned char eStringPosB; 18 | unsigned char eStringNo; 19 | bool eNybbleSwap; 20 | bool inRsdkFile; 21 | }; 22 | 23 | #endif /* FileData_h */ 24 | -------------------------------------------------------------------------------- /rvm/Core/FileIO.h: -------------------------------------------------------------------------------- 1 | // 2 | // FileIO.h 3 | // rvm 4 | // 5 | 6 | #ifndef FileIO_h 7 | #define FileIO_h 8 | 9 | #include 10 | #include 11 | #include 12 | #ifndef WINDOWS 13 | #include 14 | #else 15 | #define uint unsigned int 16 | #endif 17 | #include "StageList.h" 18 | #include "FileData.h" 19 | #include "SDL.h" 20 | 21 | #define PRESENTATION_STAGE 0 22 | #define ZONE_STAGE 1 23 | #define BONUS_STAGE 2 24 | #define SPECIAL_STAGE 3 25 | 26 | extern unsigned char fileBuffer[8192]; 27 | extern uint32_t bufferPosition; 28 | extern uint32_t fileSize; 29 | extern uint32_t readSize; 30 | extern uint32_t readPos; 31 | extern bool useRSDKFile; 32 | extern bool useByteCode; 33 | extern bool useOldSdkLayout; 34 | extern uint32_t vFileSize; 35 | extern uint32_t virtualFileOffset; 36 | extern int saveRAM[8192]; 37 | extern uint8_t eStringPosA; 38 | extern uint8_t eStringPosB; 39 | extern uint8_t eStringNo; 40 | extern bool eNybbleSwap; 41 | extern char currentStageFolder[8]; 42 | extern struct StageList pStageList[64]; 43 | extern struct StageList zStageList[128]; 44 | extern struct StageList bStageList[64]; 45 | extern struct StageList sStageList[64]; 46 | extern uint8_t activeStageList; 47 | extern uint8_t noPresentationStages; 48 | extern uint8_t noZoneStages; 49 | extern uint8_t noBonusStages; 50 | extern uint8_t noSpecialStages; 51 | extern int actNumber; 52 | 53 | void Init_FileIO(void); 54 | void FileIO_StrCopy(char* strA, int len_strA, char* strB, int len_strB); 55 | void FileIO_StrClear(char* strA, int len_strA); 56 | void FileIO_StrCopy2D(char strA[][32], int len_strA, char* strB, int len_strB, int strPos); 57 | void FileIO_StrAdd(char* strA, int len_strA, char* strB, int len_strB); 58 | bool FileIO_StringComp(char* strA, char* strB); 59 | int FileIO_StringLength(char* strA, int len_strA); 60 | int FileIO_FindStringToken(char* strA, char* token, char instance); 61 | bool FileIO_ConvertStringToInteger(char* strA, int len_strA, int* sValue); 62 | bool FileIO_CheckRSDKFile(void); 63 | bool FileIO_LoadFile(char* filePath, struct FileData *fData); 64 | void FileIO_CloseFile(void); 65 | bool FileIO_CheckCurrentStageFolder(int sNumber); 66 | void FileIO_ResetCurrentStageFolder(void); 67 | bool FileIO_LoadStageFile(char* filePath, int sNumber, struct FileData *fData); 68 | bool FileIO_LoadActFile(char* filePath, int sNumber, struct FileData *fData); 69 | bool FileIO_ParseVirtualFileSystem(char* filePath); 70 | uint8_t FileIO_ReadByte(void); 71 | void FileIO_ReadByteArray(uint8_t* byteP, int numBytes); 72 | void FileIO_ReadCharArray(char* charP, int numBytes); 73 | void FileIO_FillFileBuffer(void); 74 | void FileIO_GetFileInfo(struct FileData *fData); 75 | void FileIO_SetFileInfo(struct FileData *fData); 76 | uint32_t FileIO_GetFilePosition(void); 77 | void FileIO_SetFilePosition(uint32_t newFilePos); 78 | bool FileIO_ReachedEndOfFile(void); 79 | uint8_t FileIO_ReadSaveRAMData(void); 80 | uint8_t FileIO_WriteSaveRAMData(void); 81 | bool FileIO_IsValidDataRsdk(const char* filePath); 82 | 83 | #endif /* FileIO_h */ 84 | -------------------------------------------------------------------------------- /rvm/Core/FontCharacter.h: -------------------------------------------------------------------------------- 1 | // 2 | // FontCharacter.h 3 | // rvm 4 | // 5 | 6 | #ifndef FontCharacter_h 7 | #define FontCharacter_h 8 | 9 | struct FontCharacter { 10 | int id; 11 | short left; 12 | short top; 13 | short xSize; 14 | short ySize; 15 | short xPivot; 16 | short yPivot; 17 | short xAdvance; 18 | }; 19 | 20 | #endif /* FontCharacter_h */ 21 | -------------------------------------------------------------------------------- /rvm/Core/FunctionScript.h: -------------------------------------------------------------------------------- 1 | // 2 | // FunctionScript.h 3 | // rvm 4 | // 5 | 6 | #ifndef FunctionScript_h 7 | #define FunctionScript_h 8 | 9 | struct FunctionScript { 10 | int mainScript; 11 | int mainJumpTable; 12 | }; 13 | 14 | #endif /* FunctionScript_h */ 15 | -------------------------------------------------------------------------------- /rvm/Core/GfxSurfaceDesc.h: -------------------------------------------------------------------------------- 1 | // 2 | // GfxSurfaceDesc.h 3 | // rvm 4 | // 5 | 6 | #ifndef GfxSurfaceDesc_h 7 | #define GfxSurfaceDesc_h 8 | 9 | struct GfxSurfaceDesc{ 10 | char fileName[64]; 11 | int width; 12 | int height; 13 | int texStartX; 14 | int texStartY; 15 | unsigned int dataStart; 16 | }; 17 | 18 | #endif /* GfxSurfaceDesc_h */ 19 | -------------------------------------------------------------------------------- /rvm/Core/GifDecoder.h: -------------------------------------------------------------------------------- 1 | // 2 | // GifDecoder.h 3 | // rvm 4 | // 5 | 6 | #ifndef GifDecoder_h 7 | #define GifDecoder_h 8 | #include "SDL.h" 9 | 10 | struct GifDecoder { 11 | int depth; 12 | int clearCode; 13 | int eofCode; 14 | int runningCode; 15 | int runningBits; 16 | int prevCode; 17 | int currentCode; 18 | int maxCodePlusOne; 19 | int stackPtr; 20 | int shiftState; 21 | int fileState; 22 | int position; 23 | int bufferSize; 24 | unsigned int shiftData; 25 | unsigned int pixelCount; 26 | uint8_t buffer[256]; 27 | uint8_t stack[4096]; 28 | uint8_t suffix[4096]; 29 | unsigned int prefix[4096]; 30 | }; 31 | 32 | #endif /* GifDecoder_h */ 33 | -------------------------------------------------------------------------------- /rvm/Core/GifLoader.h: -------------------------------------------------------------------------------- 1 | // 2 | // GifLoader.h 3 | // rvm 4 | // 5 | 6 | #ifndef GifLoader_h 7 | #define GifLoader_h 8 | 9 | #include 10 | #include 11 | #include "GifDecoder.h" 12 | #include "FileIO.h" 13 | 14 | void Init_GifDecoder(void); 15 | void GifLoader_ReadGifPictureData(int width, int height, bool interlaced, uint8_t* gfxData, int offset); 16 | void GifLoader_ReadGifLine(uint8_t* line, int length, int offset); 17 | 18 | #endif /* GifLoader_h */ 19 | -------------------------------------------------------------------------------- /rvm/Core/GlobalAppDefinitions.h: -------------------------------------------------------------------------------- 1 | // 2 | // GlobalAppDefinitions.h 3 | // rvm 4 | // 5 | 6 | #ifndef GlobalAppDefinitions_h 7 | #define GlobalAppDefinitions_h 8 | 9 | #include 10 | #include 11 | #include 12 | #include "FileIO.h" 13 | #include "ObjectSystem.h" 14 | 15 | extern const int RETRO_EN; 16 | extern const int RETRO_FR; 17 | extern const int RETRO_IT; 18 | extern const int RETRO_DE; 19 | extern const int RETRO_ES; 20 | extern const int RETRO_JP; 21 | extern const int DEFAULTSCREEN; 22 | extern const int MAINGAME; 23 | extern const int RESETGAME; 24 | extern const int EXITGAME; 25 | extern const int SCRIPTERROR; 26 | extern const int ENTER_HIRESMODE; 27 | extern const int EXIT_HIRESMODE; 28 | extern const int PAUSE_ENGINE; 29 | extern const int PAUSE_WAIT; 30 | extern const int VIDEO_WAIT; 31 | extern const int RETRO_WIN; 32 | extern const int RETRO_OSX; 33 | extern const int RETRO_XBOX_360; 34 | extern const int RETRO_PS3; 35 | extern const int RETRO_iOS; 36 | extern const int RETRO_ANDROID; 37 | extern const int RETRO_WP7; 38 | extern const int MAX_PLAYERS; 39 | extern const int FACING_LEFT; 40 | extern const int FACING_RIGHT; 41 | extern const int GAME_FULL; 42 | extern const int GAME_TRIAL; 43 | extern const int OBJECT_BORDER_Y1; 44 | extern const int OBJECT_BORDER_Y2; 45 | extern const double Pi; 46 | extern char gameWindowText[]; 47 | extern char gameVersion[]; 48 | extern char gameDescriptionText[256]; 49 | extern char gamePlatform[]; 50 | extern char gameRenderType[]; 51 | extern char gameHapticsSetting[]; 52 | extern uint8_t gameMode; 53 | extern uint8_t gameLanguage; 54 | extern int gameMessage; 55 | extern uint8_t gameOnlineActive; 56 | extern uint8_t gameHapticsEnabled; 57 | extern uint8_t frameCounter; 58 | extern int frameSkipTimer; 59 | extern int frameSkipSetting; 60 | extern int gameSFXVolume; 61 | extern int gameBGMVolume; 62 | extern uint8_t gameTrialMode; 63 | extern int gamePlatformID; 64 | extern bool HQ3DFloorEnabled; 65 | extern int SCREEN_XSIZE; 66 | extern int SCREEN_CENTER; 67 | extern int SCREEN_SCROLL_LEFT; 68 | extern int SCREEN_SCROLL_RIGHT; 69 | extern int OBJECT_BORDER_X1; 70 | extern int OBJECT_BORDER_X2; 71 | extern int SinValue256[256]; 72 | extern int CosValue256[256]; 73 | extern int SinValue512[512]; 74 | extern int CosValue512[512]; 75 | extern int SinValueM7[512]; 76 | extern int CosValueM7[512]; 77 | extern uint8_t ATanValue256[256][256]; 78 | 79 | void Init_GlobalAppDefinitions(void); 80 | void GlobalAppDefinitions_CalculateTrigAngles(void); 81 | uint8_t GlobalAppDefinitions_ArcTanLookup(int x, int y); 82 | void GlobalAppDefinitions_LoadGameConfig(char* filePath); 83 | 84 | #endif /* GlobalAppDefinitions_h */ 85 | -------------------------------------------------------------------------------- /rvm/Core/InputResult.h: -------------------------------------------------------------------------------- 1 | // 2 | // InputResult.h 3 | // rvm 4 | // 5 | 6 | #ifndef InputResult_h 7 | #define InputResult_h 8 | #include "SDL.h" 9 | 10 | struct InputResult { 11 | uint8_t up; 12 | uint8_t down; 13 | uint8_t left; 14 | uint8_t right; 15 | uint8_t buttonA; 16 | uint8_t buttonB; 17 | uint8_t buttonC; 18 | uint8_t start; 19 | uint8_t touchDown[4]; 20 | int touchX[4]; 21 | int touchY[4]; 22 | int touchID[4]; 23 | int touches; 24 | }; 25 | 26 | #endif /* InputResult_h */ 27 | -------------------------------------------------------------------------------- /rvm/Core/InputSystem.h: -------------------------------------------------------------------------------- 1 | // 2 | // InputSystem.h 3 | // rvm 4 | // 5 | 6 | #ifndef InputSystem_h 7 | #define InputSystem_h 8 | 9 | #include 10 | #include 11 | #include "InputResult.h" 12 | #include "GlobalAppDefinitions.h" 13 | #include "SDL.h" 14 | 15 | extern int touchWidth; 16 | extern int touchHeight; 17 | 18 | void Init_InputSystem(void); 19 | void InputSystem_Dispose(void); 20 | void InputSystem_AddTouch(float touchX, float touchY, int pointerID); 21 | void InputSystem_SetTouch(float touchX, float touchY, int pointerID); 22 | void InputSystem_RemoveTouch(int pointerID); 23 | void InputSystem_ClearTouchData(void); 24 | void InputSystem_CheckKeyboardInput(void); 25 | void InputSystem_CheckGamepadInput(void); 26 | void InputSystem_CheckKeyDown(struct InputResult* gameInput, uint8_t keyFlags); 27 | void InputSystem_MenuKeyDown(struct InputResult* gameInput, uint8_t keyFlags); 28 | void InputSystem_CheckKeyPress(struct InputResult* gameInput, uint8_t keyFlags); 29 | 30 | #endif /* InputSystem_h */ 31 | -------------------------------------------------------------------------------- /rvm/Core/LayoutMap.h: -------------------------------------------------------------------------------- 1 | // 2 | // LayoutMap.h 3 | // rvm 4 | // 5 | 6 | #ifndef LayoutMap_h 7 | #define LayoutMap_h 8 | #ifdef WINDOWS 9 | #define ushort unsigned short 10 | #endif 11 | 12 | struct LayoutMap { 13 | uint16_t tileMap[0x10000]; 14 | uint8_t lineScrollRef[0x8000]; 15 | int parallaxFactor; 16 | int scrollSpeed; 17 | int scrollPosition; 18 | int angle; 19 | int xPos; 20 | int yPos; 21 | int zPos; 22 | int deformationPos; 23 | int deformationPosW; 24 | uint8_t type; 25 | uint8_t xSize; 26 | uint8_t ySize; 27 | }; 28 | 29 | #endif /* LayoutMap_h */ 30 | -------------------------------------------------------------------------------- /rvm/Core/LineScrollParallax.h: -------------------------------------------------------------------------------- 1 | // 2 | // LineScrollParallax.h 3 | // rvm 4 | // 5 | 6 | #ifndef LineScrollParallax_h 7 | #define LineScrollParallax_h 8 | 9 | struct LineScrollParallax { 10 | int parallaxFactor[256]; 11 | int scrollSpeed[256]; 12 | int scrollPosition[256]; 13 | int linePos[256]; 14 | uint8_t deformationEnabled[256]; 15 | uint8_t numEntries; 16 | }; 17 | 18 | #endif /* LineScrollParallax_h */ 19 | -------------------------------------------------------------------------------- /rvm/Core/Mappings128x128.h: -------------------------------------------------------------------------------- 1 | // 2 | // Mappings128x128.h 3 | // rvm 4 | // 5 | 6 | #ifndef Mappings128x128_h 7 | #define Mappings128x128_h 8 | 9 | struct Mappings128x128 { 10 | int gfxDataPos[0x8000]; 11 | unsigned short tile16x16[0x8000]; 12 | uint8_t direction[0x8000]; 13 | uint8_t visualPlane[0x8000]; 14 | uint8_t collisionFlag[2][0x8000]; 15 | }; 16 | 17 | #endif /* Mappings128x128_h */ 18 | -------------------------------------------------------------------------------- /rvm/Core/MpvPlayer.h: -------------------------------------------------------------------------------- 1 | // 2 | // MpvPlayer.h 3 | // rvm 4 | // 5 | 6 | #ifndef MpvPlayer_h 7 | #define MpvPlayer_h 8 | 9 | #ifdef ENABLE_MPV 10 | #include 11 | #include 12 | #include 13 | #include "GlobalAppDefinitions.h" 14 | 15 | void MpvPlayer(char* fileName); 16 | 17 | #endif 18 | #endif /* MpvPlayer_h */ 19 | -------------------------------------------------------------------------------- /rvm/Core/MusicTrackInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // MusicTrackInfo.h 3 | // rvm 4 | // 5 | 6 | #ifndef MusicTrackInfo_h 7 | #define MusicTrackInfo_h 8 | 9 | #include "SDL_mixer.h" 10 | 11 | struct MusicTrackInfo { 12 | char trackName[64]; 13 | bool loop; 14 | unsigned int loopPoint; 15 | unsigned char* musicData; 16 | Mix_Music* mixerAudio; 17 | }; 18 | 19 | #endif /* MusicTrackInfo_h */ 20 | -------------------------------------------------------------------------------- /rvm/Core/ObjectDrawList.h: -------------------------------------------------------------------------------- 1 | // 2 | // ObjectDrawList.h 3 | // rvm 4 | // 5 | 6 | #ifndef ObjectDrawList_h 7 | #define ObjectDrawList_h 8 | 9 | struct ObjectDrawList { 10 | int entityRef[1184]; 11 | int listSize; 12 | }; 13 | 14 | #endif /* ObjectDrawList_h */ 15 | -------------------------------------------------------------------------------- /rvm/Core/ObjectEntity.h: -------------------------------------------------------------------------------- 1 | // 2 | // ObjectEntity.h 3 | // 4 | 5 | #ifndef ObjectEntity_h 6 | #define ObjectEntity_h 7 | 8 | struct ObjectEntity { 9 | int xPos; 10 | int yPos; 11 | int value[8]; 12 | int scale; 13 | int rotation; 14 | int animationTimer; 15 | int animationSpeed; 16 | unsigned char type; 17 | unsigned char propertyValue; 18 | unsigned char state; 19 | unsigned char priority; 20 | unsigned char drawOrder; 21 | unsigned char direction; 22 | unsigned char inkEffect; 23 | unsigned char alpha; 24 | unsigned char animation; 25 | unsigned char prevAnimation; 26 | unsigned char frame; 27 | }; 28 | 29 | #endif /* ObjectEntity_h */ 30 | -------------------------------------------------------------------------------- /rvm/Core/ObjectScript.h: -------------------------------------------------------------------------------- 1 | // 2 | // ObjectScript.h 3 | // rvm 4 | // 5 | 6 | #ifndef ObjectScript_h 7 | #define ObjectScript_h 8 | 9 | #include "SDL.h" 10 | #include "AnimationFileList.h" 11 | 12 | struct ObjectScript{ 13 | int numFrames; 14 | uint8_t surfaceNum; 15 | int mainScript; 16 | int playerScript; 17 | int drawScript; 18 | int startupScript; 19 | int mainJumpTable; 20 | int playerJumpTable; 21 | int drawJumpTable; 22 | int startupJumpTable; 23 | int frameListOffset; 24 | struct AnimationFileList* animationFile; 25 | }; 26 | 27 | #endif /* ObjectScript_h */ 28 | -------------------------------------------------------------------------------- /rvm/Core/ObjectSystem.h: -------------------------------------------------------------------------------- 1 | // 2 | // ObjectSystem.h 3 | // rvm 4 | // 5 | 6 | #ifndef ObjectSystem_h 7 | #define ObjectSystem_h 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include "SpriteFrame.h" 15 | #include "ScriptEngine.h" 16 | #include "ObjectScript.h" 17 | #include "FunctionScript.h" 18 | #include "ObjectEntity.h" 19 | #include "ObjectDrawList.h" 20 | #include "CollisionSensor.h" 21 | #include "AnimationSystem.h" 22 | #include "PlayerObject.h" 23 | #include "PlayerSystem.h" 24 | #include "FileData.h" 25 | #include "FileIO.h" 26 | #include "StageSystem.h" 27 | #include "GlobalAppDefinitions.h" 28 | #include "AudioPlayback.h" 29 | #include "Scene3D.h" 30 | #include "GraphicsSystem.h" 31 | #include "TextSystem.h" 32 | #include "EngineCallbacks.h" 33 | 34 | extern int scriptData[0x40000]; 35 | extern int scriptDataPos; 36 | extern int scriptDataOffset; 37 | extern int scriptLineNumber; 38 | extern int jumpTableData[0x4000]; 39 | extern int jumpTableDataPos; 40 | extern int jumpTableOffset; 41 | extern int jumpTableStack[0x400]; 42 | extern int jumpTableStackPos; 43 | extern int NUM_FUNCTIONS; 44 | extern int functionStack[0x400]; 45 | extern int functionStackPos; 46 | extern struct SpriteFrame scriptFrames[0x1000]; 47 | extern int scriptFramesNo; 48 | extern uint8_t NO_GLOBALVARIABLES; 49 | extern char globalVariableNames[0x100][32]; 50 | extern int globalVariables[0x100]; 51 | extern int objectLoop; 52 | extern struct ScriptEngine scriptEng; 53 | extern char scriptText[0x100]; 54 | extern struct ObjectScript objectScriptList[0x100]; 55 | extern struct FunctionScript functionScriptList[0x200]; 56 | extern struct ObjectEntity objectEntityList[0x4A0]; 57 | extern struct ObjectDrawList objectDrawOrderList[7]; 58 | extern int playerNum; 59 | 60 | void Init_ObjectSystem(void); 61 | void ObjectSystem_BasicCollision(int cLeft, int cTop, int cRight, int cBottom); 62 | void ObjectSystem_BoxCollision(int cLeft, int cTop, int cRight, int cBottom); 63 | void ObjectSystem_ClearScriptData(void); 64 | void ObjectSystem_DrawObjectList(int DrawListNo); 65 | void ObjectSystem_LoadByteCodeFile(int fileType, int scriptNum); 66 | void ObjectSystem_ObjectFloorCollision(int xOffset, int yOffset, int cPlane); 67 | void ObjectSystem_ObjectFloorGrip(int xOffset, int yOffset, int cPlane); 68 | void ObjectSystem_ObjectLWallCollision(int xOffset, int yOffset, int cPlane); 69 | void ObjectSystem_ObjectLWallGrip(int xOffset, int yOffset, int cPlane); 70 | void ObjectSystem_ObjectRoofCollision(int xOffset, int yOffset, int cPlane); 71 | void ObjectSystem_ObjectRoofGrip(int xOffset, int yOffset, int cPlane); 72 | void ObjectSystem_ObjectRWallCollision(int xOffset, int yOffset, int cPlane); 73 | void ObjectSystem_ObjectRWallGrip(int xOffset, int yOffset, int cPlane); 74 | void ObjectSystem_PlatformCollision(int cLeft, int cTop, int cRight, int cBottom); 75 | void ObjectSystem_ProcessObjects(void); 76 | void ObjectSystem_ProcessPausedObjects(void); 77 | void ObjectSystem_ProcessScript(int scriptCodePtr, int jumpTablePtr, int scriptSub); 78 | void ObjectSystem_ProcessStartupScripts(void); 79 | void ObjectSystem_SetObjectTypeName(char* typeName, int scriptNum); 80 | 81 | #endif /* ObjectSystem_h */ 82 | -------------------------------------------------------------------------------- /rvm/Core/PaletteEntry.h: -------------------------------------------------------------------------------- 1 | // 2 | // PaletteEntry.h 3 | // rvm 4 | // 5 | 6 | #ifndef PaletteEntry_h 7 | #define PaletteEntry_h 8 | 9 | struct PaletteEntry { 10 | unsigned char red; 11 | unsigned char green; 12 | unsigned char blue; 13 | unsigned char alpha; 14 | }; 15 | 16 | #endif /* PaletteEntry_h */ 17 | -------------------------------------------------------------------------------- /rvm/Core/PlayerObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // PlayerObject.h 3 | // rvm 4 | // 5 | 6 | #ifndef PlayerObject_h 7 | #define PlayerObject_h 8 | 9 | #include "SDL.h" 10 | #include "PlayerStatistics.h" 11 | #include "AnimationFileList.h" 12 | #include "ObjectEntity.h" 13 | 14 | struct PlayerObject { 15 | int objectNum; 16 | int xPos; 17 | int yPos; 18 | int xVelocity; 19 | int yVelocity; 20 | int speed; 21 | int screenXPos; 22 | int screenYPos; 23 | int angle; 24 | int timer; 25 | int lookPos; 26 | int value[8]; 27 | uint8_t collisionMode; 28 | uint8_t skidding; 29 | uint8_t pushing; 30 | uint8_t collisionPlane; 31 | signed char controlMode; 32 | uint8_t controlLock; 33 | struct PlayerStatistics movementStats; 34 | uint8_t visible; 35 | uint8_t tileCollisions; 36 | uint8_t objectInteraction; 37 | uint8_t left; 38 | uint8_t right; 39 | uint8_t up; 40 | uint8_t down; 41 | uint8_t jumpPress; 42 | uint8_t jumpHold; 43 | uint8_t followPlayer1; 44 | uint8_t trackScroll; 45 | uint8_t gravity; 46 | uint8_t water; 47 | uint8_t flailing[3]; 48 | struct AnimationFileList* animationFile; 49 | struct ObjectEntity* objectPtr; 50 | }; 51 | 52 | #endif /* PlayerObject_h */ 53 | -------------------------------------------------------------------------------- /rvm/Core/PlayerStatistics.h: -------------------------------------------------------------------------------- 1 | // 2 | // PlayerStatistics.h 3 | // rvm 4 | // 5 | 6 | #ifndef PlayerStatistics_h 7 | #define PlayerStatistics_h 8 | 9 | struct PlayerStatistics{ 10 | int topSpeed; 11 | int acceleration; 12 | int deceleration; 13 | int airAcceleration; 14 | int airDeceleration; 15 | int gravity; 16 | int jumpStrength; 17 | int jumpCap; 18 | int rollingAcceleration; 19 | int rollingDeceleration; 20 | }; 21 | 22 | #endif /* PlayerStatistics_h */ 23 | -------------------------------------------------------------------------------- /rvm/Core/PlayerSystem.h: -------------------------------------------------------------------------------- 1 | // 2 | // PlayerSystem.h 3 | // rvm 4 | // 5 | 6 | #ifndef PlayerSystem_h 7 | #define PlayerSystem_h 8 | 9 | #include 10 | #include 11 | #include "PlayerObject.h" 12 | #include "CollisionSensor.h" 13 | #include "StageSystem.h" 14 | #include "AnimationSystem.h" 15 | #include "ObjectSystem.h" 16 | #include "GlobalAppDefinitions.h" 17 | 18 | extern unsigned short delayLeft; 19 | extern unsigned short delayRight; 20 | extern unsigned short delayUp; 21 | extern unsigned short delayDown; 22 | extern unsigned short delayJumpPress; 23 | extern unsigned short delayJumpHold; 24 | extern unsigned char jumpWait; 25 | extern unsigned char numActivePlayers; 26 | extern unsigned char playerMenuNum; 27 | extern struct PlayerObject playerList[2]; 28 | extern int collisionLeft; 29 | extern int collisionTop; 30 | extern int collisionRight; 31 | extern int collisionBottom; 32 | 33 | void Init_PlayerSystem(void); 34 | void PlayerSystem_FindFloorPosition(struct PlayerObject* playerO, struct CollisionSensor* cSensorRef, int prevCollisionPos); 35 | void PlayerSystem_FindLWallPosition(struct PlayerObject* playerO, struct CollisionSensor* cSensorRef, int prevCollisionPos); 36 | void PlayerSystem_FindRoofPosition(struct PlayerObject* playerO, struct CollisionSensor* cSensorRef, int prevCollisionPos); 37 | void PlayerSystem_FindRWallPosition(struct PlayerObject* playerO, struct CollisionSensor* cSensorRef, int prevCollisionPos); 38 | void PlayerSystem_FloorCollision(struct PlayerObject* playerO, struct CollisionSensor* cSensorRef); 39 | void PlayerSystem_LWallCollision(struct PlayerObject* playerO, struct CollisionSensor* cSensorRef); 40 | void PlayerSystem_ProcessAirCollision(struct PlayerObject* playerO); 41 | void PlayerSystem_ProcessPathGrip(struct PlayerObject* playerO); 42 | void PlayerSystem_ProcessPlayerControl(struct PlayerObject* playerO); 43 | void PlayerSystem_ProcessPlayerTileCollisions(struct PlayerObject* playerO); 44 | void PlayerSystem_RoofCollision(struct PlayerObject* playerO, struct CollisionSensor* cSensorRef); 45 | void PlayerSystem_RWallCollision(struct PlayerObject* playerO, struct CollisionSensor* cSensorRef); 46 | void PlayerSystem_SetPathGripSensors(struct PlayerObject* playerO); 47 | void PlayerSystem_SetPlayerHLockedScreenPosition(struct PlayerObject* playerO); 48 | void PlayerSystem_SetPlayerLockedScreenPosition(struct PlayerObject* playerO); 49 | void PlayerSystem_SetPlayerScreenPosition(struct PlayerObject* playerO); 50 | void PlayerSystem_SetPlayerScreenPositionCDStyle(struct PlayerObject* playerO); 51 | 52 | #endif /* PlayerSystem_h */ 53 | -------------------------------------------------------------------------------- /rvm/Core/Quad2D.h: -------------------------------------------------------------------------------- 1 | // 2 | // Quad2D.h 3 | // rvm 4 | // 5 | 6 | #ifndef Quad2D_h 7 | #define Quad2D_h 8 | 9 | #include "Vertex2D.h" 10 | 11 | struct Quad2D { 12 | struct Vertex2D vertex[4]; 13 | }; 14 | 15 | #endif /* Quad2D_h */ 16 | -------------------------------------------------------------------------------- /rvm/Core/RenderDevice.h: -------------------------------------------------------------------------------- 1 | // 2 | // RenderDevice.h 3 | // rvm 4 | // 5 | 6 | #ifndef RenderDevice_h 7 | #define RenderDevice_h 8 | 9 | #include 10 | #include 11 | #include "GraphicsSystem.h" 12 | #include "InputSystem.h" 13 | 14 | extern int orthWidth; 15 | extern int viewWidth; 16 | extern int viewHeight; 17 | extern float viewAspect; 18 | extern int bufferWidth; 19 | extern int bufferHeight; 20 | extern int highResMode; 21 | extern bool useFBTexture; 22 | 23 | void InitRenderDevice(void); 24 | void RenderDevice_UpdateHardwareTextures(void); 25 | void RenderDevice_SetScreenDimensions(int width, int height); 26 | void RenderDevice_ScaleViewport(int width, int height); 27 | void RenderDevice_FlipScreen(void); 28 | void RenderDevice_FlipScreenHRes(void); 29 | void drawGLTest(void); 30 | 31 | #endif /* RenderDevice_h */ 32 | -------------------------------------------------------------------------------- /rvm/Core/Scene3D.h: -------------------------------------------------------------------------------- 1 | // 2 | // Scene3D.h 3 | // rvm 4 | // 5 | 6 | #ifndef Scene3D_h 7 | #define Scene3D_h 8 | 9 | #include 10 | #include "Vertex3D.h" 11 | #include "Face3D.h" 12 | #include "SortList.h" 13 | #include "GlobalAppDefinitions.h" 14 | #include "Quad2D.h" 15 | #include "GraphicsSystem.h" 16 | 17 | extern struct Vertex3D vertexBuffer[4096]; 18 | extern struct Vertex3D vertexBufferT[4096]; 19 | extern struct Face3D indexBuffer[1024]; 20 | extern struct SortList drawList[1024]; 21 | extern int numVertices; 22 | extern int numFaces; 23 | extern int projectionX; 24 | extern int projectionY; 25 | extern int matWorld[16]; 26 | extern int matView[16]; 27 | extern int matFinal[16]; 28 | extern int matTemp[16]; 29 | 30 | void Init_Scene3D(void); 31 | void Scene3D_SetIdentityMatrix(int* m); 32 | void Scene3D_MatrixMultiply(int* a, int* b); 33 | void Scene3D_MatrixTranslateXYZ(int* m, int xPos, int yPos, int zPos); 34 | void Scene3D_MatrixScaleXYZ(int* m, int xScale, int yScale, int zScale); 35 | void Scene3D_MatrixRotateX(int* m, int angle); 36 | void Scene3D_MatrixRotateY(int* m, int angle); 37 | void Scene3D_MatrixRotateZ(int* m, int angle); 38 | void Scene3D_MatrixRotateXYZ(int* m, int angleX, int angleY, int angleZ); 39 | void Scene3D_TransformVertexBuffer(void); 40 | void Scene3D_TransformVertices(int* m, int vStart, int vEnd); 41 | void Scene3D_Sort3DDrawList(void); 42 | void Scene3D_Draw3DScene(int surfaceNum); 43 | 44 | #endif /* Scene3D_h */ 45 | -------------------------------------------------------------------------------- /rvm/Core/ScriptEngine.h: -------------------------------------------------------------------------------- 1 | // 2 | // ScriptEngine.h 3 | // rvm 4 | // 5 | 6 | #ifndef ScriptEngine_h 7 | #define ScriptEngine_h 8 | 9 | struct ScriptEngine { 10 | int operands[10]; 11 | int tempValue[8]; 12 | int arrayPosition[3]; 13 | int checkResult; 14 | int sRegister; 15 | }; 16 | 17 | #endif /* ScriptEngine_h */ 18 | -------------------------------------------------------------------------------- /rvm/Core/SortList.h: -------------------------------------------------------------------------------- 1 | // 2 | // SortList.h 3 | // rvm 4 | // 5 | 6 | #ifndef SortList_h 7 | #define SortList_h 8 | 9 | struct SortList { 10 | int z; 11 | int index; 12 | }; 13 | 14 | #endif /* SortList_h */ 15 | -------------------------------------------------------------------------------- /rvm/Core/SpriteAnimation.h: -------------------------------------------------------------------------------- 1 | // 2 | // SpriteAnimation.h 3 | // rvm 4 | // 5 | 6 | #ifndef SpriteAnimation_h 7 | #define SpriteAnimation_h 8 | 9 | struct SpriteAnimation { 10 | char name[16]; 11 | unsigned char numFrames; 12 | unsigned char animationSpeed; 13 | unsigned char loopPosition; 14 | unsigned char rotationFlag; 15 | int frameListOffset; 16 | }; 17 | 18 | #endif /* SpriteAnimation_h */ 19 | -------------------------------------------------------------------------------- /rvm/Core/SpriteFrame.h: -------------------------------------------------------------------------------- 1 | // 2 | // SpriteFrame.h 3 | // rvm 4 | // 5 | 6 | #ifndef SpriteFrame_h 7 | #define SpriteFrame_h 8 | 9 | struct SpriteFrame { 10 | int left; 11 | int top; 12 | int xSize; 13 | int ySize; 14 | int xPivot; 15 | int yPivot; 16 | unsigned char surfaceNum; 17 | unsigned char collisionBox; 18 | }; 19 | 20 | #endif /* SpriteFrame_h */ 21 | -------------------------------------------------------------------------------- /rvm/Core/StageList.h: -------------------------------------------------------------------------------- 1 | // 2 | // StageList.h 3 | // rvm 4 | // 5 | 6 | #ifndef StageList_h 7 | #define StageList_h 8 | 9 | struct StageList { 10 | char stageFolderName[8]; 11 | char actNumber[4]; 12 | }; 13 | 14 | #endif /* StageList_h */ 15 | -------------------------------------------------------------------------------- /rvm/Core/StageSystem.h: -------------------------------------------------------------------------------- 1 | // 2 | // StageSystem.h 3 | // rvm 4 | // 5 | 6 | #ifndef StageSystem_h 7 | #define StageSystem_h 8 | 9 | #include 10 | #include "InputResult.h" 11 | #include "Mappings128x128.h" 12 | #include "LayoutMap.h" 13 | #include "CollisionMask16x16.h" 14 | #include "LineScrollParallax.h" 15 | #include "TextMenu.h" 16 | #include "GraphicsSystem.h" 17 | #include "GlobalAppDefinitions.h" 18 | #include "ObjectSystem.h" 19 | #include "PlayerSystem.h" 20 | #include "AudioPlayback.h" 21 | #include "AnimationSystem.h" 22 | #include "TextSystem.h" 23 | #include "RenderDevice.h" 24 | #include "FileIO.h" 25 | #include "Scene3D.h" 26 | #include "InputSystem.h" 27 | 28 | extern struct InputResult gKeyDown; 29 | extern struct InputResult gKeyPress; 30 | extern uint8_t stageMode; 31 | extern uint8_t pauseEnabled; 32 | extern int stageListPosition; 33 | extern struct Mappings128x128 tile128x128; 34 | extern struct LayoutMap stageLayouts[9]; 35 | extern uint8_t tLayerMidPoint; 36 | extern uint8_t activeTileLayers[4]; 37 | extern struct CollisionMask16x16 tileCollisions[2]; 38 | extern struct LineScrollParallax hParallax; 39 | extern struct LineScrollParallax vParallax; 40 | extern int lastXSize; 41 | extern int lastYSize; 42 | extern int bgDeformationData0[0x240]; 43 | extern int bgDeformationData1[0x240]; 44 | extern int bgDeformationData2[0x240]; 45 | extern int bgDeformationData3[0x240]; 46 | extern int xBoundary1; 47 | extern int xBoundary2; 48 | extern int yBoundary1; 49 | extern int yBoundary2; 50 | extern int newXBoundary1; 51 | extern int newXBoundary2; 52 | extern int newYBoundary1; 53 | extern int newYBoundary2; 54 | extern uint8_t cameraEnabled; 55 | extern signed char cameraTarget; 56 | extern uint8_t cameraShift; 57 | extern uint8_t cameraStyle; 58 | extern int cameraAdjustY; 59 | extern int xScrollOffset; 60 | extern int yScrollOffset; 61 | extern int yScrollA; 62 | extern int yScrollB; 63 | extern int xScrollA; 64 | extern int xScrollB; 65 | extern int xScrollMove; 66 | extern int yScrollMove; 67 | extern int screenShakeX; 68 | extern int screenShakeY; 69 | extern int waterLevel; 70 | extern char titleCardText[24]; 71 | extern char titleCardWord2; 72 | extern struct TextMenu gameMenu[2]; 73 | extern uint8_t timeEnabled; 74 | extern uint8_t milliSeconds; 75 | extern uint8_t seconds; 76 | extern uint8_t minutes; 77 | extern uint8_t debugMode; 78 | 79 | void Init_StageSystem(void); 80 | void StageSystem_Draw3DFloorLayer(uint8_t layerNum); 81 | void StageSystem_DrawHLineScrollLayer8(uint8_t layerNum); 82 | void StageSystem_DrawStageGfx(void); 83 | void StageSystem_InitErrorMessage(void); 84 | void StageSystem_InitFirstStage(void); 85 | void StageSystem_InitStageSelectMenu(void); 86 | void StageSystem_Load128x128Mappings(void); 87 | void StageSystem_LoadActLayout(void); 88 | void StageSystem_LoadStageBackground(void); 89 | void StageSystem_LoadStageCollisions(void); 90 | void StageSystem_LoadStageFiles(void); 91 | void StageSystem_ProcessStage(void); 92 | void StageSystem_ProcessStageSelectMenu(void); 93 | void StageSystem_ResetBackgroundSettings(void); 94 | void StageSystem_SetLayerDeformation(int selectedDef, int waveLength, int waveWidth, int wType, int yPos, int wSize); 95 | 96 | 97 | #endif /* StageSystem_h */ 98 | -------------------------------------------------------------------------------- /rvm/Core/TextMenu.h: -------------------------------------------------------------------------------- 1 | // 2 | // TextMenu.h 3 | // rvm 4 | // 5 | 6 | #ifndef TextMenu_h 7 | #define TextMenu_h 8 | 9 | struct TextMenu { 10 | char textData[10240]; 11 | int entryStart[512]; 12 | int entrySize[512]; 13 | unsigned char entryHighlight[512]; 14 | int textDataPos; 15 | int selection1; 16 | int selection2; 17 | unsigned short numRows; 18 | unsigned short numVisibleRows; 19 | unsigned short visibleRowOffset; 20 | unsigned char alignment; 21 | unsigned char numSelections; 22 | signed char timer; 23 | }; 24 | 25 | #endif /* TextMenu_h */ 26 | -------------------------------------------------------------------------------- /rvm/Core/TextSystem.h: -------------------------------------------------------------------------------- 1 | // 2 | // TextSystem.h 3 | // rvm 4 | // 5 | 6 | #ifndef TextSystem_h 7 | #define TextSystem_h 8 | 9 | #include 10 | #include 11 | #include "FontCharacter.h" 12 | #include "TextMenu.h" 13 | #include "FileData.h" 14 | #include "FileIO.h" 15 | #include "GraphicsSystem.h" 16 | 17 | extern int textMenuSurfaceNo; 18 | 19 | void TextSystem_LoadFontFile(char* fileName); 20 | void TextSystem_LoadTextFile(struct TextMenu* tMenu, char* fileName, uint8_t mapCode); 21 | void TextSystem_DrawBitmapText(struct TextMenu* tMenu, int xPos, int yPos, int scale, int spacing, int rowStart, int numRows); 22 | void TextSystem_SetupTextMenu(struct TextMenu* tMenu, int numRows); 23 | void TextSystem_AddTextMenuEntry(struct TextMenu* tMenu, char* inputTxt); 24 | void TextSystem_AddTextMenuEntryMapped(struct TextMenu* tMenu, char* inputTxt); 25 | void TextSystem_SetTextMenuEntry(struct TextMenu* tMenu, char* inputTxt, int rowNum); 26 | void TextSystem_EditTextMenuEntry(struct TextMenu* tMenu, char* inputTxt, int rowNum); 27 | void TextSystem_DrawTextMenuEntry(struct TextMenu* tMenu, int rowNum, int xPos, int yPos, int textHighL); 28 | void TextSystem_DrawStageTextEntry(struct TextMenu* tMenu, int rowNum, int xPos, int yPos, int textHighL); 29 | void TextSystem_DrawBlendedTextMenuEntry(struct TextMenu* tMenu, int rowNum, int xPos, int yPos, int textHighL); 30 | void TextSystem_DrawTextMenu(struct TextMenu* tMenu, int xPos, int yPos); 31 | void TextSystem_LoadConfigListText(struct TextMenu* tMenu, int listNo); 32 | 33 | #endif /* TextSystem_h */ 34 | -------------------------------------------------------------------------------- /rvm/Core/Vertex2D.h: -------------------------------------------------------------------------------- 1 | // 2 | // Vertex2D.h 3 | // rvm 4 | // 5 | 6 | #ifndef Vertex2D_h 7 | #define Vertex2D_h 8 | 9 | struct Vertex2D { 10 | int x; 11 | int y; 12 | int u; 13 | int v; 14 | }; 15 | 16 | #endif /* Vertex2D_h */ 17 | -------------------------------------------------------------------------------- /rvm/Core/Vertex3D.h: -------------------------------------------------------------------------------- 1 | // 2 | // Vertex3D.h 3 | // rvm 4 | // 5 | 6 | #ifndef Vertex3D_h 7 | #define Vertex3D_h 8 | 9 | struct Vertex3D { 10 | int x; 11 | int y; 12 | int z; 13 | int u; 14 | int v; 15 | }; 16 | 17 | #endif /* Vertex3D_h */ 18 | -------------------------------------------------------------------------------- /rvm/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(MARKETING_VERSION) 21 | CFBundleVersion 22 | 1 23 | LSApplicationCategoryType 24 | public.app-category.games 25 | LSMinimumSystemVersion 26 | $(MACOSX_DEPLOYMENT_TARGET) 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /rvm/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // rvm 4 | // 5 | 6 | #import 7 | 8 | int main(int argc, const char * argv[]) { 9 | @autoreleasepool { 10 | // Setup code that might create autoreleased objects goes here. 11 | } 12 | return NSApplicationMain(argc, argv); 13 | } 14 | --------------------------------------------------------------------------------