diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..9bea4330f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +.DS_Store diff --git a/engine/hexen2/MacOSX/glhexen2.plist b/engine/hexen2/MacOSX/glhexen2.plist index eeda8b479..45659ea08 100644 --- a/engine/hexen2/MacOSX/glhexen2.plist +++ b/engine/hexen2/MacOSX/glhexen2.plist @@ -1,5 +1,5 @@ - + CFBundleDevelopmentRegion @@ -11,7 +11,7 @@ CFBundleIconFile hexen2.icns CFBundleIdentifier - net.sf.uhexen2.glhexen2 + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/engine/hexen2/MacOSX/hexen2.plist b/engine/hexen2/MacOSX/hexen2.plist index 0ba6121ca..6746b13a2 100644 --- a/engine/hexen2/MacOSX/hexen2.plist +++ b/engine/hexen2/MacOSX/hexen2.plist @@ -1,5 +1,5 @@ - + CFBundleDevelopmentRegion @@ -11,7 +11,7 @@ CFBundleIconFile hexen2.icns CFBundleIdentifier - net.sf.uhexen2.hexen2 + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/engine/hexen2/MacOSX/hexen2.xcodeproj/project.pbxproj b/engine/hexen2/MacOSX/hexen2.xcodeproj/project.pbxproj index 340916528..feea48d55 100644 --- a/engine/hexen2/MacOSX/hexen2.xcodeproj/project.pbxproj +++ b/engine/hexen2/MacOSX/hexen2.xcodeproj/project.pbxproj @@ -3,10 +3,18 @@ archiveVersion = 1; classes = { }; - objectVersion = 46; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ + 2642F8782C134778002B8247 /* particle.h in Headers */ = {isa = PBXBuildFile; fileRef = 2642F8772C134778002B8247 /* particle.h */; }; + 2642F8792C134778002B8247 /* particle.h in Headers */ = {isa = PBXBuildFile; fileRef = 2642F8772C134778002B8247 /* particle.h */; }; + 2642F87B2C1348A9002B8247 /* include in Headers */ = {isa = PBXBuildFile; fileRef = 2642F87A2C1348A9002B8247 /* include */; }; + 2642F8832C13491C002B8247 /* callback.h in Headers */ = {isa = PBXBuildFile; fileRef = 2642F87E2C13491C002B8247 /* callback.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2642F8842C13491C002B8247 /* format.h in Headers */ = {isa = PBXBuildFile; fileRef = 2642F87F2C13491C002B8247 /* format.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2642F8852C13491C002B8247 /* ordinals.h in Headers */ = {isa = PBXBuildFile; fileRef = 2642F8802C13491C002B8247 /* ordinals.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2642F8862C13491C002B8247 /* stream_decoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 2642F8812C13491C002B8247 /* stream_decoder.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2642F8872C13491C002B8247 /* export.h in Headers */ = {isa = PBXBuildFile; fileRef = 2642F8822C13491C002B8247 /* export.h */; settings = {ATTRIBUTES = (Public, ); }; }; 32CA4F630368D1EE00C91783 /* snd_umx.c in Sources */ = {isa = PBXBuildFile; fileRef = 4818B0B012D5BA1A006DD66E /* snd_umx.c */; }; 4818B0B612D5BA1A006DD66E /* snd_umx.c in Sources */ = {isa = PBXBuildFile; fileRef = 4818B0B012D5BA1A006DD66E /* snd_umx.c */; }; 48281303179C401D004E1D61 /* libFLAC.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 48281302179C401D004E1D61 /* libFLAC.dylib */; }; @@ -378,6 +386,20 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 2642F8722C1341A2002B8247 /* SDL2.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SDL2.framework; path = ../../../oslibs/macosx/SDL2.framework; sourceTree = ""; }; + 2642F8772C134778002B8247 /* particle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = particle.h; path = ../particle.h; sourceTree = ""; }; + 2642F87A2C1348A9002B8247 /* include */ = {isa = PBXFileReference; lastKnownFileType = folder; name = include; path = ../../../oslibs/macosx/codecs/include; sourceTree = ""; }; + 2642F87C2C1348C7002B8247 /* include */ = {isa = PBXFileReference; lastKnownFileType = folder; name = include; path = ../../../oslibs/macosx/codecs/include; sourceTree = ""; }; + 2642F87E2C13491C002B8247 /* callback.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = callback.h; path = ../../../oslibs/macosx/codecs/include/FLAC/callback.h; sourceTree = ""; }; + 2642F87F2C13491C002B8247 /* format.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = format.h; path = ../../../oslibs/macosx/codecs/include/FLAC/format.h; sourceTree = ""; }; + 2642F8802C13491C002B8247 /* ordinals.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = ordinals.h; path = ../../../oslibs/macosx/codecs/include/FLAC/ordinals.h; sourceTree = ""; }; + 2642F8812C13491C002B8247 /* stream_decoder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = stream_decoder.h; path = ../../../oslibs/macosx/codecs/include/FLAC/stream_decoder.h; sourceTree = ""; }; + 2642F8822C13491C002B8247 /* export.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = export.h; path = ../../../oslibs/macosx/codecs/include/FLAC/export.h; sourceTree = ""; }; + 2642F8882C13492B002B8247 /* stream_decoder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = stream_decoder.h; path = ../../../oslibs/macosx/codecs/include/FLAC/stream_decoder.h; sourceTree = ""; }; + 2642F8892C13492B002B8247 /* callback.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = callback.h; path = ../../../oslibs/macosx/codecs/include/FLAC/callback.h; sourceTree = ""; }; + 2642F88A2C13492B002B8247 /* format.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = format.h; path = ../../../oslibs/macosx/codecs/include/FLAC/format.h; sourceTree = ""; }; + 2642F88B2C13492B002B8247 /* export.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = export.h; path = ../../../oslibs/macosx/codecs/include/FLAC/export.h; sourceTree = ""; }; + 2642F88C2C13492B002B8247 /* ordinals.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = ordinals.h; path = ../../../oslibs/macosx/codecs/include/FLAC/ordinals.h; sourceTree = ""; }; 4818B0B012D5BA1A006DD66E /* snd_umx.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = snd_umx.c; path = ../../h2shared/snd_umx.c; sourceTree = ""; }; 48281302179C401D004E1D61 /* libFLAC.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libFLAC.dylib; path = ../../../oslibs/macosx/codecs/lib/libFLAC.dylib; sourceTree = ""; }; 48281305179C4055004E1D61 /* snd_flac.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = snd_flac.c; path = ../../h2shared/snd_flac.c; sourceTree = ""; }; @@ -625,9 +647,29 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 2642F8712C1341A2002B8247 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 2642F8722C1341A2002B8247 /* SDL2.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; 707D57580AA9F4B100313A9F = { isa = PBXGroup; children = ( + 2642F87E2C13491C002B8247 /* callback.h */, + 2642F8822C13491C002B8247 /* export.h */, + 2642F88B2C13492B002B8247 /* export.h */, + 2642F87F2C13491C002B8247 /* format.h */, + 2642F8802C13491C002B8247 /* ordinals.h */, + 2642F8892C13492B002B8247 /* callback.h */, + 2642F88A2C13492B002B8247 /* format.h */, + 2642F88C2C13492B002B8247 /* ordinals.h */, + 2642F8812C13491C002B8247 /* stream_decoder.h */, + 2642F8882C13492B002B8247 /* stream_decoder.h */, + 2642F87A2C1348A9002B8247 /* include */, + 2642F87C2C1348C7002B8247 /* include */, 631478BE27F1B3530023B20A /* snd_modplug.c */, 6398921723A25377003C5801 /* snd_mp3tag.c */, 48281305179C4055004E1D61 /* snd_flac.c */, @@ -652,6 +694,7 @@ B0E74B2C144E80540043F808 /* snd_wave.c */, B0E74B27144E802B0043F808 /* strlcpy.c */, B0E74B22144E80170043F808 /* strlcat.c */, + 2642F8772C134778002B8247 /* particle.h */, B0E74B1D144E7FF40043F808 /* qsnprint.c */, 70310B490BFDEA0F00CA35D3 /* cfgfile.c */, 70310B4A0BFDEA0F00CA35D3 /* cfgfile.h */, @@ -822,6 +865,7 @@ 707D57E40AA9F6EE00313A9F /* zone.c */, 707D57E50AA9F6EE00313A9F /* zone.h */, 707D57720AA9F4ED00313A9F /* Products */, + 2642F8712C1341A2002B8247 /* Frameworks */, ); sourceTree = ""; }; @@ -841,6 +885,8 @@ isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( + 2642F87B2C1348A9002B8247 /* include in Headers */, + 2642F8792C134778002B8247 /* particle.h in Headers */, 70158BF40AAF3C8800F6437C /* d_iface.h in Headers */, 70158BF50AAF3C8800F6437C /* d_local.h in Headers */, 70158BF60AAF3C8800F6437C /* draw.h in Headers */, @@ -864,6 +910,11 @@ isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( + 2642F8862C13491C002B8247 /* stream_decoder.h in Headers */, + 2642F8832C13491C002B8247 /* callback.h in Headers */, + 2642F8842C13491C002B8247 /* format.h in Headers */, + 2642F8872C13491C002B8247 /* export.h in Headers */, + 2642F8852C13491C002B8247 /* ordinals.h in Headers */, 707D58730AA9FBB700313A9F /* adivtab.h in Headers */, 707D58750AA9FBB700313A9F /* anorm_dots.h in Headers */, 707D58760AA9FBB700313A9F /* anorms.h in Headers */, @@ -874,6 +925,7 @@ 707D587B0AA9FBB700313A9F /* client.h in Headers */, 707D587C0AA9FBB700313A9F /* cmd.h in Headers */, 707D587D0AA9FBB700313A9F /* common.h in Headers */, + 2642F8782C134778002B8247 /* particle.h in Headers */, 707D587E0AA9FBB700313A9F /* console.h in Headers */, 707D587F0AA9FBB700313A9F /* crc.h in Headers */, 707D58800AA9FBB700313A9F /* cvar.h in Headers */, @@ -973,15 +1025,20 @@ /* Begin PBXProject section */ 707D575A0AA9F4B100313A9F /* Project object */ = { isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastUpgradeCheck = 1500; + }; buildConfigurationList = 707D575B0AA9F4B100313A9F /* Build configuration list for PBXProject "hexen2" */; compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; + developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( - English, - Japanese, - French, - German, + en, + fr, + de, + ja, + Base, ); mainGroup = 707D57580AA9F4B100313A9F; productRefGroup = 707D57720AA9F4ED00313A9F /* Products */; @@ -1237,12 +1294,11 @@ 70158C500AAF3C8800F6437C /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = ( - x86_64, - i386, - ppc, - ); + ARCHS = "$(ARCHS_STANDARD)"; + CLANG_ENABLE_OBJC_WEAK = YES; + CODE_SIGN_IDENTITY = ""; COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; GCC_DYNAMIC_NO_PIC = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; GCC_MODEL_TUNING = G3; @@ -1269,37 +1325,18 @@ ); INFOPLIST_FILE = hexen2.plist; LIBRARY_SEARCH_PATHS = ../../../oslibs/macosx/codecs/lib; - MACOSX_DEPLOYMENT_TARGET = 10.6; - "MACOSX_DEPLOYMENT_TARGET[arch=i386]" = 10.4; - "MACOSX_DEPLOYMENT_TARGET[arch=ppc]" = 10.4; - "MACOSX_DEPLOYMENT_TARGET[arch=x86_64]" = 10.6; + MACOSX_DEPLOYMENT_TARGET = 13.0; OTHER_CFLAGS = ""; - "OTHER_CFLAGS[arch=i386]" = ( - "-arch", - i386, - ); - "OTHER_CFLAGS[arch=ppc]" = ( - "-arch", - ppc, - ); - OTHER_LDFLAGS = ""; - "OTHER_LDFLAGS[arch=i386]" = ( - "-arch", - i386, - ); - "OTHER_LDFLAGS[arch=ppc]" = ( - "-arch", - ppc, + OTHER_LDFLAGS = ( + "-rpath", + "@executable_path/../Frameworks", + "-ld_classic", ); OTHER_REZFLAGS = ""; - PREBINDING = NO; + PRODUCT_BUNDLE_IDENTIFIER = net.sf.uhexen2.hexen2; PRODUCT_NAME = Hexen_II; - SDKROOT = macosx10.6; - "SDKROOT[arch=i386]" = macosx10.5; - "SDKROOT[arch=ppc]" = macosx10.5; - "SDKROOT[arch=x86_64]" = macosx10.6; + SDKROOT = macosx; SECTORDER_FLAGS = ""; - STRIP_INSTALLED_PRODUCT = NO; WARNING_CFLAGS = ( "-Wmost", "-Wno-four-char-constants", @@ -1312,13 +1349,11 @@ 70158C510AAF3C8800F6437C /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = ( - x86_64, - i386, - ppc, - ); + ARCHS = "$(ARCHS_STANDARD)"; + CLANG_ENABLE_OBJC_WEAK = YES; + CODE_SIGN_IDENTITY = ""; COPY_PHASE_STRIP = NO; - GCC_ENABLE_FIX_AND_CONTINUE = NO; + DEAD_CODE_STRIPPING = YES; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; GCC_MODEL_TUNING = G3; GCC_OPTIMIZATION_LEVEL = 2; @@ -1344,37 +1379,18 @@ ); INFOPLIST_FILE = hexen2.plist; LIBRARY_SEARCH_PATHS = ../../../oslibs/macosx/codecs/lib; - MACOSX_DEPLOYMENT_TARGET = 10.6; - "MACOSX_DEPLOYMENT_TARGET[arch=i386]" = 10.4; - "MACOSX_DEPLOYMENT_TARGET[arch=ppc]" = 10.4; - "MACOSX_DEPLOYMENT_TARGET[arch=x86_64]" = 10.6; + MACOSX_DEPLOYMENT_TARGET = 13.0; OTHER_CFLAGS = ""; - "OTHER_CFLAGS[arch=i386]" = ( - "-arch", - i386, - ); - "OTHER_CFLAGS[arch=ppc]" = ( - "-arch", - ppc, - ); - OTHER_LDFLAGS = ""; - "OTHER_LDFLAGS[arch=i386]" = ( - "-arch", - i386, - ); - "OTHER_LDFLAGS[arch=ppc]" = ( - "-arch", - ppc, + OTHER_LDFLAGS = ( + "-rpath", + "@executable_path/../Frameworks", + "-ld_classic", ); OTHER_REZFLAGS = ""; - PREBINDING = NO; + PRODUCT_BUNDLE_IDENTIFIER = net.sf.uhexen2.hexen2; PRODUCT_NAME = Hexen_II; - SDKROOT = macosx10.6; - "SDKROOT[arch=i386]" = macosx10.5; - "SDKROOT[arch=ppc]" = macosx10.5; - "SDKROOT[arch=x86_64]" = macosx10.6; + SDKROOT = macosx; SECTORDER_FLAGS = ""; - STRIP_INSTALLED_PRODUCT = YES; WARNING_CFLAGS = ( "-Wmost", "-Wno-four-char-constants", @@ -1388,16 +1404,38 @@ 707D575C0AA9F4B100313A9F /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = ( - x86_64, - i386, - ppc, - ); + ARCHS = "$(ARCHS_STANDARD)"; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = ""; COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; FRAMEWORK_SEARCH_PATHS = ( ../../../oslibs/macosx, "$(FRAMEWORK_SEARCH_PATHS)", ); + GCC_NO_COMMON_BLOCKS = YES; GCC_PREPROCESSOR_DEFINITIONS = ( USE_CODEC_MP3, USE_CODEC_VORBIS, @@ -1413,30 +1451,58 @@ "_GNU_SOURCE=1", _THREAD_SAFE, ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = ( ../../h2shared, ../../../common, ../../../oslibs/macosx/codecs/include, ); - LIBRARY_SEARCH_PATHS = ../../../oslibs/macosx/codecs/lib; + LIBRARY_SEARCH_PATHS = ../../../oslibs/macos/codecs/lib; + ONLY_ACTIVE_ARCH = NO; OTHER_LDFLAGS = ""; - SDKROOT = macosx10.6; + SDKROOT = macosx; }; name = Debug; }; 707D575D0AA9F4B100313A9F /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = ( - x86_64, - i386, - ppc, - ); + ARCHS = "$(ARCHS_STANDARD)"; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = ""; COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; FRAMEWORK_SEARCH_PATHS = ( ../../../oslibs/macosx, "$(FRAMEWORK_SEARCH_PATHS)", ); + GCC_NO_COMMON_BLOCKS = YES; GCC_PREPROCESSOR_DEFINITIONS = ( USE_CODEC_MP3, USE_CODEC_VORBIS, @@ -1452,26 +1518,30 @@ "_GNU_SOURCE=1", _THREAD_SAFE, ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = ( ../../h2shared, ../../../common, ../../../oslibs/macosx/codecs/include, ); - LIBRARY_SEARCH_PATHS = ../../../oslibs/macosx/codecs/lib; + LIBRARY_SEARCH_PATHS = ../../../oslibs/macos/codecs/lib; OTHER_LDFLAGS = ""; - SDKROOT = macosx10.6; + SDKROOT = macosx; }; name = Release; }; 707D58E70AA9FBB700313A9F /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = ( - x86_64, - i386, - ppc, - ); + ARCHS = "$(ARCHS_STANDARD)"; + CLANG_ENABLE_OBJC_WEAK = YES; COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; FRAMEWORK_SEARCH_PATHS = ( ../../../oslibs/macosx, "$(FRAMEWORK_SEARCH_PATHS)", @@ -1504,45 +1574,18 @@ ); INFOPLIST_FILE = glhexen2.plist; LIBRARY_SEARCH_PATHS = ../../../oslibs/macosx/codecs/lib; - MACOSX_DEPLOYMENT_TARGET = 10.6; - "MACOSX_DEPLOYMENT_TARGET[arch=i386]" = 10.4; - "MACOSX_DEPLOYMENT_TARGET[arch=ppc]" = 10.4; - "MACOSX_DEPLOYMENT_TARGET[arch=x86_64]" = 10.6; + MACOSX_DEPLOYMENT_TARGET = 13.0; OTHER_CFLAGS = ""; - "OTHER_CFLAGS[arch=i386]" = ( - "-arch", - i386, - ); - "OTHER_CFLAGS[arch=ppc]" = ( - "-arch", - ppc, - ); - "OTHER_CFLAGS[arch=x86_64]" = ( - "-arch", - x86_64, - ); - OTHER_LDFLAGS = ""; - "OTHER_LDFLAGS[arch=i386]" = ( - "-arch", - i386, - ); - "OTHER_LDFLAGS[arch=ppc]" = ( - "-arch", - ppc, - ); - "OTHER_LDFLAGS[arch=x86_64]" = ( - "-arch", - x86_64, + OTHER_LDFLAGS = ( + "-rpath", + "@executable_path/../Frameworks", + "-ld_classic", ); OTHER_REZFLAGS = ""; - PREBINDING = NO; + PRODUCT_BUNDLE_IDENTIFIER = net.sf.uhexen2.glhexen2; PRODUCT_NAME = "Hexen_II-gl"; - SDKROOT = macosx10.6; - "SDKROOT[arch=i386]" = macosx10.5; - "SDKROOT[arch=ppc]" = macosx10.5; - "SDKROOT[arch=x86_64]" = macosx10.6; + SDKROOT = macosx; SECTORDER_FLAGS = ""; - STRIP_INSTALLED_PRODUCT = NO; WARNING_CFLAGS = ( "-Wmost", "-Wno-four-char-constants", @@ -1555,17 +1598,14 @@ 707D58E80AA9FBB700313A9F /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = ( - x86_64, - i386, - ppc, - ); + ARCHS = "$(ARCHS_STANDARD)"; + CLANG_ENABLE_OBJC_WEAK = YES; COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; FRAMEWORK_SEARCH_PATHS = ( ../../../oslibs/macosx, "$(FRAMEWORK_SEARCH_PATHS)", ); - GCC_ENABLE_FIX_AND_CONTINUE = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; GCC_MODEL_TUNING = G3; GCC_OPTIMIZATION_LEVEL = s; @@ -1593,45 +1633,18 @@ ); INFOPLIST_FILE = glhexen2.plist; LIBRARY_SEARCH_PATHS = ../../../oslibs/macosx/codecs/lib; - MACOSX_DEPLOYMENT_TARGET = 10.6; - "MACOSX_DEPLOYMENT_TARGET[arch=i386]" = 10.4; - "MACOSX_DEPLOYMENT_TARGET[arch=ppc]" = 10.4; - "MACOSX_DEPLOYMENT_TARGET[arch=x86_64]" = 10.6; + MACOSX_DEPLOYMENT_TARGET = 13.0; OTHER_CFLAGS = ""; - "OTHER_CFLAGS[arch=i386]" = ( - "-arch", - i386, - ); - "OTHER_CFLAGS[arch=ppc]" = ( - "-arch", - ppc, - ); - "OTHER_CFLAGS[arch=x86_64]" = ( - "-arch", - x86_64, - ); - OTHER_LDFLAGS = ""; - "OTHER_LDFLAGS[arch=i386]" = ( - "-arch", - i386, - ); - "OTHER_LDFLAGS[arch=ppc]" = ( - "-arch", - ppc, - ); - "OTHER_LDFLAGS[arch=x86_64]" = ( - "-arch", - x86_64, + OTHER_LDFLAGS = ( + "-rpath", + "@executable_path/../Frameworks", + "-ld_classic", ); OTHER_REZFLAGS = ""; - PREBINDING = NO; + PRODUCT_BUNDLE_IDENTIFIER = net.sf.uhexen2.glhexen2; PRODUCT_NAME = "Hexen_II-gl"; - SDKROOT = macosx10.6; - "SDKROOT[arch=i386]" = macosx10.5; - "SDKROOT[arch=ppc]" = macosx10.5; - "SDKROOT[arch=x86_64]" = macosx10.6; + SDKROOT = macosx; SECTORDER_FLAGS = ""; - STRIP_INSTALLED_PRODUCT = YES; WARNING_CFLAGS = ( "-Wmost", "-Wno-four-char-constants", diff --git a/engine/hexen2/MacOSX/hexen2.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/engine/hexen2/MacOSX/hexen2.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..919434a62 --- /dev/null +++ b/engine/hexen2/MacOSX/hexen2.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/engine/hexen2/MacOSX/hexen2.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/engine/hexen2/MacOSX/hexen2.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 000000000..18d981003 --- /dev/null +++ b/engine/hexen2/MacOSX/hexen2.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/engine/hexen2/MacOSX/hexen2.xcodeproj/project.xcworkspace/xcuserdata/superbart.xcuserdatad/UserInterfaceState.xcuserstate b/engine/hexen2/MacOSX/hexen2.xcodeproj/project.xcworkspace/xcuserdata/superbart.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 000000000..7249c0ecc Binary files /dev/null and b/engine/hexen2/MacOSX/hexen2.xcodeproj/project.xcworkspace/xcuserdata/superbart.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/engine/hexen2/MacOSX/hexen2.xcodeproj/xcuserdata/superbart.xcuserdatad/xcschemes/xcschememanagement.plist b/engine/hexen2/MacOSX/hexen2.xcodeproj/xcuserdata/superbart.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 000000000..aa90e1089 --- /dev/null +++ b/engine/hexen2/MacOSX/hexen2.xcodeproj/xcuserdata/superbart.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,19 @@ + + + + + SchemeUserState + + Hexen_II-gl.xcscheme_^#shared#^_ + + orderHint + 0 + + Hexen_II.xcscheme_^#shared#^_ + + orderHint + 1 + + + + diff --git a/engine/hexen2/MacOSX/xcode24compat.xcodeproj/project.pbxproj b/engine/hexen2/MacOSX/xcode24compat.xcodeproj/project.pbxproj deleted file mode 100644 index aee8e81fa..000000000 --- a/engine/hexen2/MacOSX/xcode24compat.xcodeproj/project.pbxproj +++ /dev/null @@ -1,1553 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 42; - objects = { - -/* Begin PBXBuildFile section */ - 32CA4F630368D1EE00C91783 /* snd_umx.c in Sources */ = {isa = PBXBuildFile; fileRef = 4818B0B012D5BA1A006DD66E /* snd_umx.c */; }; - 4818B0B612D5BA1A006DD66E /* snd_umx.c in Sources */ = {isa = PBXBuildFile; fileRef = 4818B0B012D5BA1A006DD66E /* snd_umx.c */; }; - 48281303179C401D004E1D61 /* libFLAC.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 48281302179C401D004E1D61 /* libFLAC.dylib */; }; - 48281304179C4034004E1D61 /* libFLAC.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 48281302179C401D004E1D61 /* libFLAC.dylib */; }; - 48281307179C4055004E1D61 /* snd_flac.c in Sources */ = {isa = PBXBuildFile; fileRef = 48281305179C4055004E1D61 /* snd_flac.c */; }; - 48281308179C4055004E1D61 /* snd_flac.c in Sources */ = {isa = PBXBuildFile; fileRef = 48281305179C4055004E1D61 /* snd_flac.c */; }; - 48281309179C4055004E1D61 /* snd_flac.h in Headers */ = {isa = PBXBuildFile; fileRef = 48281306179C4055004E1D61 /* snd_flac.h */; }; - 4828130A179C4055004E1D61 /* snd_flac.h in Headers */ = {isa = PBXBuildFile; fileRef = 48281306179C4055004E1D61 /* snd_flac.h */; }; - 48305B530D8AF8EC00A29C24 /* snd_mikmod.c in Sources */ = {isa = PBXBuildFile; fileRef = 483A78640D2EEAF000CB2E4C /* snd_mikmod.c */; }; - 483A78780D2EEAF000CB2E4C /* snd_mikmod.c in Sources */ = {isa = PBXBuildFile; fileRef = 483A78640D2EEAF000CB2E4C /* snd_mikmod.c */; }; - 483B16A5154472FE00BBDAD1 /* cl_inlude.c in Sources */ = {isa = PBXBuildFile; fileRef = 483B16A4154472FE00BBDAD1 /* cl_inlude.c */; }; - 4854B1AF1340C5FD004C9F45 /* libmad.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 48E2EC7915FB507A00B8D476 /* libmad.dylib */; }; - 4854B1E71340C964004C9F45 /* libogg.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 48E2EC7A15FB507A00B8D476 /* libogg.dylib */; }; - 4854B1E81340C964004C9F45 /* libvorbis.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 48E2EC7B15FB507A00B8D476 /* libvorbis.dylib */; }; - 4854B1E91340C964004C9F45 /* libvorbisfile.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 48E2EC7C15FB507A00B8D476 /* libvorbisfile.dylib */; }; - 4891E1CC179728BF00BED9F7 /* libopus.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 48AE54C717972447008E11FB /* libopus.dylib */; }; - 4891E1CD179728BF00BED9F7 /* libopusfile.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 48AE54C817972447008E11FB /* libopusfile.dylib */; }; - 48AE54C5179723F7008E11FB /* snd_opus.h in Headers */ = {isa = PBXBuildFile; fileRef = 48AE54C4179723F7008E11FB /* snd_opus.h */; }; - 48AE54C6179723F7008E11FB /* snd_opus.h in Headers */ = {isa = PBXBuildFile; fileRef = 48AE54C4179723F7008E11FB /* snd_opus.h */; }; - 48AE54C917972447008E11FB /* libopus.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 48AE54C717972447008E11FB /* libopus.dylib */; }; - 48AE54CA17972447008E11FB /* libopusfile.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 48AE54C817972447008E11FB /* libopusfile.dylib */; }; - 48E2EC7D15FB507A00B8D476 /* libmad.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 48E2EC7915FB507A00B8D476 /* libmad.dylib */; }; - 48E2EC7E15FB507A00B8D476 /* libogg.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 48E2EC7A15FB507A00B8D476 /* libogg.dylib */; }; - 48E2EC7F15FB507A00B8D476 /* libvorbis.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 48E2EC7B15FB507A00B8D476 /* libvorbis.dylib */; }; - 48E2EC8015FB507A00B8D476 /* libvorbisfile.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 48E2EC7C15FB507A00B8D476 /* libvorbisfile.dylib */; }; - 631478E727F1B38A0023B20A /* snd_modplug.c in Sources */ = {isa = PBXBuildFile; fileRef = 631478E627F1B38A0023B20A /* snd_modplug.c */; }; - 631478E827F1B38A0023B20A /* snd_modplug.c in Sources */ = {isa = PBXBuildFile; fileRef = 631478E627F1B38A0023B20A /* snd_modplug.c */; }; - 6366D4BB2815EE390068DD07 /* hashindex.c in Sources */ = {isa = PBXBuildFile; fileRef = 6366D4B92815EE390068DD07 /* hashindex.c */; }; - 6366D4BC2815EE390068DD07 /* hashindex.h in Headers */ = {isa = PBXBuildFile; fileRef = 6366D4BA2815EE390068DD07 /* hashindex.h */; }; - 6366D4BD2815EE390068DD07 /* hashindex.c in Sources */ = {isa = PBXBuildFile; fileRef = 6366D4B92815EE390068DD07 /* hashindex.c */; }; - 6366D4BE2815EE390068DD07 /* hashindex.h in Headers */ = {isa = PBXBuildFile; fileRef = 6366D4BA2815EE390068DD07 /* hashindex.h */; }; - 6398924923A25461003C5801 /* snd_mp3tag.c in Sources */ = {isa = PBXBuildFile; fileRef = 6398924823A25461003C5801 /* snd_mp3tag.c */; }; - 6398924A23A25461003C5801 /* snd_mp3tag.c in Sources */ = {isa = PBXBuildFile; fileRef = 6398924823A25461003C5801 /* snd_mp3tag.c */; }; - 63CA72B31963FA25005A8397 /* SDL.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 707D59200AAA071800313A9F /* SDL.framework */; }; - 63CA72B41963FA3A005A8397 /* libogg.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = 48E2EC7A15FB507A00B8D476 /* libogg.dylib */; }; - 63CA72B51963FA58005A8397 /* libFLAC.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = 48281302179C401D004E1D61 /* libFLAC.dylib */; }; - 63CA72B61963FA70005A8397 /* libmad.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = 48E2EC7915FB507A00B8D476 /* libmad.dylib */; }; - 63CA72B71963FA7F005A8397 /* libmikmod.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = F5F5DE80017CB4370103A810 /* libmikmod.dylib */; }; - 63CA72B81963FABC005A8397 /* libopus.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = 48AE54C717972447008E11FB /* libopus.dylib */; }; - 63CA72B91963FAC9005A8397 /* libopusfile.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = 48AE54C817972447008E11FB /* libopusfile.dylib */; }; - 63CA72BA1963FADC005A8397 /* libvorbis.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = 48E2EC7B15FB507A00B8D476 /* libvorbis.dylib */; }; - 63CA72BB1963FAE8005A8397 /* libvorbisfile.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = 48E2EC7C15FB507A00B8D476 /* libvorbisfile.dylib */; }; - 63CA72BE1963FBBA005A8397 /* SDL.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 707D59200AAA071800313A9F /* SDL.framework */; }; - 63CA72BF1963FBC8005A8397 /* libogg.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = 48E2EC7A15FB507A00B8D476 /* libogg.dylib */; }; - 63CA72C01963FBDD005A8397 /* libvorbis.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = 48E2EC7B15FB507A00B8D476 /* libvorbis.dylib */; }; - 63CA72C11963FC09005A8397 /* libmad.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = 48E2EC7915FB507A00B8D476 /* libmad.dylib */; }; - 63CA72C21963FC28005A8397 /* libopus.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = 48AE54C717972447008E11FB /* libopus.dylib */; }; - 63CA72C31963FC33005A8397 /* libopusfile.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = 48AE54C817972447008E11FB /* libopusfile.dylib */; }; - 63CA72C41963FC48005A8397 /* libFLAC.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = 48281302179C401D004E1D61 /* libFLAC.dylib */; }; - 63CA72C51963FC5A005A8397 /* libmikmod.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = F5F5DE80017CB4370103A810 /* libmikmod.dylib */; }; - 63CA72C61963FC75005A8397 /* libvorbisfile.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = 48E2EC7C15FB507A00B8D476 /* libvorbisfile.dylib */; }; - 70158BF40AAF3C8800F6437C /* d_iface.h in Headers */ = {isa = PBXBuildFile; fileRef = 70158B730AAF3B3600F6437C /* d_iface.h */; }; - 70158BF50AAF3C8800F6437C /* d_local.h in Headers */ = {isa = PBXBuildFile; fileRef = 70158B750AAF3B3600F6437C /* d_local.h */; }; - 70158BF60AAF3C8800F6437C /* draw.h in Headers */ = {isa = PBXBuildFile; fileRef = 70158B800AAF3B3600F6437C /* draw.h */; }; - 70158BF70AAF3C8800F6437C /* model.h in Headers */ = {isa = PBXBuildFile; fileRef = 70158B820AAF3B3600F6437C /* model.h */; }; - 70158BF80AAF3C8800F6437C /* r_local.h in Headers */ = {isa = PBXBuildFile; fileRef = 70158B8A0AAF3B3600F6437C /* r_local.h */; }; - 70158BF90AAF3C8800F6437C /* r_shared.h in Headers */ = {isa = PBXBuildFile; fileRef = 70158B8D0AAF3B3600F6437C /* r_shared.h */; }; - 70158BFA0AAF3C8800F6437C /* render.h in Headers */ = {isa = PBXBuildFile; fileRef = 70158B920AAF3B3600F6437C /* render.h */; }; - 70158BFB0AAF3C8800F6437C /* screen.h in Headers */ = {isa = PBXBuildFile; fileRef = 70158B940AAF3B3600F6437C /* screen.h */; }; - 70158BFE0AAF3C8800F6437C /* d_edge.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B710AAF3B3600F6437C /* d_edge.c */; }; - 70158BFF0AAF3C8800F6437C /* d_fill.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B720AAF3B3600F6437C /* d_fill.c */; }; - 70158C000AAF3C8800F6437C /* d_init.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B740AAF3B3600F6437C /* d_init.c */; }; - 70158C010AAF3C8800F6437C /* d_modech.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B760AAF3B3600F6437C /* d_modech.c */; }; - 70158C020AAF3C8800F6437C /* d_part.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B770AAF3B3600F6437C /* d_part.c */; }; - 70158C030AAF3C8800F6437C /* d_polyse.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B780AAF3B3600F6437C /* d_polyse.c */; }; - 70158C040AAF3C8800F6437C /* d_scan.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B790AAF3B3600F6437C /* d_scan.c */; }; - 70158C050AAF3C8800F6437C /* d_sky.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B7A0AAF3B3600F6437C /* d_sky.c */; }; - 70158C060AAF3C8800F6437C /* d_sprite.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B7B0AAF3B3600F6437C /* d_sprite.c */; }; - 70158C070AAF3C8800F6437C /* d_surf.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B7C0AAF3B3600F6437C /* d_surf.c */; }; - 70158C080AAF3C8800F6437C /* d_vars.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B7D0AAF3B3600F6437C /* d_vars.c */; }; - 70158C090AAF3C8800F6437C /* d_zpoint.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B7E0AAF3B3600F6437C /* d_zpoint.c */; }; - 70158C0A0AAF3C8800F6437C /* draw.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B7F0AAF3B3600F6437C /* draw.c */; }; - 70158C0B0AAF3C8800F6437C /* model.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B810AAF3B3600F6437C /* model.c */; }; - 70158C0C0AAF3C8800F6437C /* r_aclip.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B830AAF3B3600F6437C /* r_aclip.c */; }; - 70158C0D0AAF3C8800F6437C /* r_alias.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B840AAF3B3600F6437C /* r_alias.c */; }; - 70158C0E0AAF3C8800F6437C /* r_bsp.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B850AAF3B3600F6437C /* r_bsp.c */; }; - 70158C0F0AAF3C8800F6437C /* r_draw.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B860AAF3B3600F6437C /* r_draw.c */; }; - 70158C100AAF3C8800F6437C /* r_edge.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B870AAF3B3600F6437C /* r_edge.c */; }; - 70158C110AAF3C8800F6437C /* r_efrag.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B880AAF3B3600F6437C /* r_efrag.c */; }; - 70158C120AAF3C8800F6437C /* r_light.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B890AAF3B3600F6437C /* r_light.c */; }; - 70158C130AAF3C8800F6437C /* r_main.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B8B0AAF3B3600F6437C /* r_main.c */; }; - 70158C140AAF3C8800F6437C /* r_misc.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B8C0AAF3B3600F6437C /* r_misc.c */; }; - 70158C150AAF3C8800F6437C /* r_sky.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B8E0AAF3B3600F6437C /* r_sky.c */; }; - 70158C160AAF3C8800F6437C /* r_sprite.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B8F0AAF3B3600F6437C /* r_sprite.c */; }; - 70158C170AAF3C8800F6437C /* r_surf.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B900AAF3B3600F6437C /* r_surf.c */; }; - 70158C180AAF3C8800F6437C /* r_vars.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B910AAF3B3600F6437C /* r_vars.c */; }; - 70158C190AAF3C8800F6437C /* screen.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158B930AAF3B3600F6437C /* screen.c */; }; - 70158C1A0AAF3C8800F6437C /* cd_sdl.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D577C0AA9F6EE00313A9F /* cd_sdl.c */; }; - 70158C1B0AAF3C8800F6437C /* chase.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D577F0AA9F6EE00313A9F /* chase.c */; }; - 70158C1C0AAF3C8800F6437C /* cl_cmd.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57800AA9F6EE00313A9F /* cl_cmd.c */; }; - 70158C1D0AAF3C8800F6437C /* cl_demo.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57810AA9F6EE00313A9F /* cl_demo.c */; }; - 70158C1E0AAF3C8800F6437C /* cl_effect.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57820AA9F6EE00313A9F /* cl_effect.c */; }; - 70158C1F0AAF3C8800F6437C /* cl_input.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57840AA9F6EE00313A9F /* cl_input.c */; }; - 70158C200AAF3C8800F6437C /* cl_main.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57850AA9F6EE00313A9F /* cl_main.c */; }; - 70158C210AAF3C8800F6437C /* cl_parse.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57860AA9F6EE00313A9F /* cl_parse.c */; }; - 70158C220AAF3C8800F6437C /* cl_tent.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57870AA9F6EE00313A9F /* cl_tent.c */; }; - 70158C230AAF3C8800F6437C /* cmd.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57890AA9F6EE00313A9F /* cmd.c */; }; - 70158C240AAF3C8800F6437C /* common.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D578B0AA9F6EE00313A9F /* common.c */; }; - 70158C250AAF3C8800F6437C /* console.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D578D0AA9F6EE00313A9F /* console.c */; }; - 70158C260AAF3C8800F6437C /* crc.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D578F0AA9F6EE00313A9F /* crc.c */; }; - 70158C270AAF3C8800F6437C /* cvar.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57910AA9F6EE00313A9F /* cvar.c */; }; - 70158C280AAF3C8800F6437C /* bgmusic.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57930AA9F6EE00313A9F /* bgmusic.c */; }; - 70158C290AAF3C8800F6437C /* host.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57A70AA9F6EE00313A9F /* host.c */; }; - 70158C2A0AAF3C8800F6437C /* host_cmd.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57A60AA9F6EE00313A9F /* host_cmd.c */; }; - 70158C2B0AAF3C8800F6437C /* in_sdl.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57A80AA9F6EE00313A9F /* in_sdl.c */; }; - 70158C2C0AAF3C8800F6437C /* keys.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57AA0AA9F6EE00313A9F /* keys.c */; }; - 70158C2D0AAF3C8800F6437C /* mathlib.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57AD0AA9F6EE00313A9F /* mathlib.c */; }; - 70158C2E0AAF3C8800F6437C /* menu.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57AF0AA9F6EE00313A9F /* menu.c */; }; - 70158C2F0AAF3C8800F6437C /* midi_osx.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57B10AA9F6EE00313A9F /* midi_osx.c */; }; - 70158C300AAF3C8800F6437C /* net_bsd.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57B30AA9F6EE00313A9F /* net_bsd.c */; }; - 70158C310AAF3C8800F6437C /* net_dgrm.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57B40AA9F6EE00313A9F /* net_dgrm.c */; }; - 70158C320AAF3C8800F6437C /* net_loop.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57B60AA9F6EE00313A9F /* net_loop.c */; }; - 70158C330AAF3C8800F6437C /* net_main.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57B80AA9F6EE00313A9F /* net_main.c */; }; - 70158C340AAF3C8800F6437C /* net_udp.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57B90AA9F6EE00313A9F /* net_udp.c */; }; - 70158C360AAF3C8800F6437C /* snd_codec.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57BD0AA9F6EE00313A9F /* snd_codec.c */; }; - 70158C370AAF3C8800F6437C /* pr_cmds.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57BE0AA9F6EE00313A9F /* pr_cmds.c */; }; - 70158C380AAF3C8800F6437C /* pr_edict.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57C00AA9F6EE00313A9F /* pr_edict.c */; }; - 70158C390AAF3C8800F6437C /* pr_exec.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57C10AA9F6EE00313A9F /* pr_exec.c */; }; - 70158C3A0AAF3C8800F6437C /* cl_string.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57C20AA9F6EE00313A9F /* cl_string.c */; }; - 70158C3B0AAF3C8800F6437C /* r_part.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57C80AA9F6EE00313A9F /* r_part.c */; }; - 70158C3C0AAF3C8800F6437C /* sbar.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57C90AA9F6EE00313A9F /* sbar.c */; }; - 70158C3D0AAF3C8800F6437C /* SDLMain.m in Sources */ = {isa = PBXBuildFile; fileRef = 707D59040AAA019300313A9F /* SDLMain.m */; }; - 70158C3E0AAF3C8800F6437C /* snd_dma.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57CD0AA9F6EE00313A9F /* snd_dma.c */; }; - 70158C3F0AAF3C8800F6437C /* snd_mem.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57CE0AA9F6EE00313A9F /* snd_mem.c */; }; - 70158C400AAF3C8800F6437C /* snd_mix.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57CF0AA9F6EE00313A9F /* snd_mix.c */; }; - 70158C410AAF3C8800F6437C /* snd_sdl.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57D00AA9F6EE00313A9F /* snd_sdl.c */; }; - 70158C420AAF3C8800F6437C /* snd_sys.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57D10AA9F6EE00313A9F /* snd_sys.c */; }; - 70158C430AAF3C8800F6437C /* sv_effect.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57D50AA9F6EE00313A9F /* sv_effect.c */; }; - 70158C440AAF3C8800F6437C /* sv_main.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57D60AA9F6EE00313A9F /* sv_main.c */; }; - 70158C450AAF3C8800F6437C /* sv_move.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57D70AA9F6EE00313A9F /* sv_move.c */; }; - 70158C460AAF3C8800F6437C /* sv_phys.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57D80AA9F6EE00313A9F /* sv_phys.c */; }; - 70158C470AAF3C8800F6437C /* sv_user.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57D90AA9F6EE00313A9F /* sv_user.c */; }; - 70158C480AAF3C8800F6437C /* sys_unix.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57DA0AA9F6EE00313A9F /* sys_unix.c */; }; - 70158C490AAF3C8800F6437C /* view.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57DD0AA9F6EE00313A9F /* view.c */; }; - 70158C4A0AAF3C8800F6437C /* wad.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57DF0AA9F6EE00313A9F /* wad.c */; }; - 70158C4B0AAF3C8800F6437C /* world.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57E20AA9F6EE00313A9F /* world.c */; }; - 70158C4C0AAF3C8800F6437C /* zone.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57E40AA9F6EE00313A9F /* zone.c */; }; - 70158C870AAF421B00F6437C /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 707D59240AAA076A00313A9F /* ApplicationServices.framework */; }; - 70158C880AAF421B00F6437C /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 707D59250AAA076A00313A9F /* AudioToolbox.framework */; }; - 70158C890AAF421B00F6437C /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 707D59260AAA076A00313A9F /* AudioUnit.framework */; }; - 70158C8A0AAF421B00F6437C /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 707D59270AAA076A00313A9F /* CoreServices.framework */; }; - 70158C8B0AAF421B00F6437C /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 707D59280AAA076A00313A9F /* Cocoa.framework */; }; - 70158C8C0AAF421B00F6437C /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 707D59290AAA076A00313A9F /* IOKit.framework */; }; - 70158C8D0AAF421B00F6437C /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 707D592A0AAA076A00313A9F /* OpenGL.framework */; }; - 70158C8F0AAF421B00F6437C /* SDL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 707D59200AAA071800313A9F /* SDL.framework */; }; - 70158F0B0AAF427F00F6437C /* vid_sdl.c in Sources */ = {isa = PBXBuildFile; fileRef = 70158F0A0AAF427F00F6437C /* vid_sdl.c */; }; - 70310B260BFDE84D00CA35D3 /* msg_io.c in Sources */ = {isa = PBXBuildFile; fileRef = 70310B240BFDE84D00CA35D3 /* msg_io.c */; }; - 70310B270BFDE84D00CA35D3 /* msg_io.h in Headers */ = {isa = PBXBuildFile; fileRef = 70310B250BFDE84D00CA35D3 /* msg_io.h */; }; - 70310B280BFDE84D00CA35D3 /* msg_io.c in Sources */ = {isa = PBXBuildFile; fileRef = 70310B240BFDE84D00CA35D3 /* msg_io.c */; }; - 70310B290BFDE84D00CA35D3 /* msg_io.h in Headers */ = {isa = PBXBuildFile; fileRef = 70310B250BFDE84D00CA35D3 /* msg_io.h */; }; - 70310B2C0BFDE89200CA35D3 /* q_endian.c in Sources */ = {isa = PBXBuildFile; fileRef = 70310B2A0BFDE89200CA35D3 /* q_endian.c */; }; - 70310B2D0BFDE89200CA35D3 /* q_endian.h in Headers */ = {isa = PBXBuildFile; fileRef = 70310B2B0BFDE89200CA35D3 /* q_endian.h */; }; - 70310B2E0BFDE89200CA35D3 /* q_endian.c in Sources */ = {isa = PBXBuildFile; fileRef = 70310B2A0BFDE89200CA35D3 /* q_endian.c */; }; - 70310B2F0BFDE89200CA35D3 /* q_endian.h in Headers */ = {isa = PBXBuildFile; fileRef = 70310B2B0BFDE89200CA35D3 /* q_endian.h */; }; - 70310B340BFDE90900CA35D3 /* debuglog.c in Sources */ = {isa = PBXBuildFile; fileRef = 70310B320BFDE90900CA35D3 /* debuglog.c */; }; - 70310B350BFDE90900CA35D3 /* debuglog.h in Headers */ = {isa = PBXBuildFile; fileRef = 70310B330BFDE90900CA35D3 /* debuglog.h */; }; - 70310B390BFDE94700CA35D3 /* link_ops.c in Sources */ = {isa = PBXBuildFile; fileRef = 70310B370BFDE94700CA35D3 /* link_ops.c */; }; - 70310B3A0BFDE94700CA35D3 /* link_ops.h in Headers */ = {isa = PBXBuildFile; fileRef = 70310B380BFDE94700CA35D3 /* link_ops.h */; }; - 70310B3D0BFDE98400CA35D3 /* sizebuf.c in Sources */ = {isa = PBXBuildFile; fileRef = 70310B3B0BFDE98400CA35D3 /* sizebuf.c */; }; - 70310B3E0BFDE98400CA35D3 /* sizebuf.h in Headers */ = {isa = PBXBuildFile; fileRef = 70310B3C0BFDE98400CA35D3 /* sizebuf.h */; }; - 70310B3F0BFDE98400CA35D3 /* sizebuf.c in Sources */ = {isa = PBXBuildFile; fileRef = 70310B3B0BFDE98400CA35D3 /* sizebuf.c */; }; - 70310B400BFDE98400CA35D3 /* sizebuf.h in Headers */ = {isa = PBXBuildFile; fileRef = 70310B3C0BFDE98400CA35D3 /* sizebuf.h */; }; - 70310B440BFDE9D900CA35D3 /* quakefs.c in Sources */ = {isa = PBXBuildFile; fileRef = 70310B420BFDE9D900CA35D3 /* quakefs.c */; }; - 70310B450BFDE9D900CA35D3 /* quakefs.h in Headers */ = {isa = PBXBuildFile; fileRef = 70310B430BFDE9D900CA35D3 /* quakefs.h */; }; - 70310B460BFDE9D900CA35D3 /* quakefs.c in Sources */ = {isa = PBXBuildFile; fileRef = 70310B420BFDE9D900CA35D3 /* quakefs.c */; }; - 70310B470BFDE9D900CA35D3 /* quakefs.h in Headers */ = {isa = PBXBuildFile; fileRef = 70310B430BFDE9D900CA35D3 /* quakefs.h */; }; - 70310B4B0BFDEA0F00CA35D3 /* cfgfile.c in Sources */ = {isa = PBXBuildFile; fileRef = 70310B490BFDEA0F00CA35D3 /* cfgfile.c */; }; - 70310B4C0BFDEA0F00CA35D3 /* cfgfile.h in Headers */ = {isa = PBXBuildFile; fileRef = 70310B4A0BFDEA0F00CA35D3 /* cfgfile.h */; }; - 70310B4D0BFDEA0F00CA35D3 /* cfgfile.c in Sources */ = {isa = PBXBuildFile; fileRef = 70310B490BFDEA0F00CA35D3 /* cfgfile.c */; }; - 70310B4E0BFDEA0F00CA35D3 /* cfgfile.h in Headers */ = {isa = PBXBuildFile; fileRef = 70310B4A0BFDEA0F00CA35D3 /* cfgfile.h */; }; - 707D58730AA9FBB700313A9F /* adivtab.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57770AA9F6EE00313A9F /* adivtab.h */; }; - 707D58740AA9FBB700313A9F /* host_string.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57C30AA9F6EE00313A9F /* host_string.c */; }; - 707D58750AA9FBB700313A9F /* anorm_dots.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57790AA9F6EE00313A9F /* anorm_dots.h */; }; - 707D58760AA9FBB700313A9F /* anorms.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D577A0AA9F6EE00313A9F /* anorms.h */; }; - 707D58770AA9FBB700313A9F /* bspfile.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D577B0AA9F6EE00313A9F /* bspfile.h */; }; - 707D58780AA9FBB700313A9F /* cd_unix.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D577D0AA9F6EE00313A9F /* cd_unix.h */; }; - 707D58790AA9FBB700313A9F /* cdaudio.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D577E0AA9F6EE00313A9F /* cdaudio.h */; }; - 707D587A0AA9FBB700313A9F /* effects.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57830AA9F6EE00313A9F /* effects.h */; }; - 707D587B0AA9FBB700313A9F /* client.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57880AA9F6EE00313A9F /* client.h */; }; - 707D587C0AA9FBB700313A9F /* cmd.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D578A0AA9F6EE00313A9F /* cmd.h */; }; - 707D587D0AA9FBB700313A9F /* common.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D578C0AA9F6EE00313A9F /* common.h */; }; - 707D587E0AA9FBB700313A9F /* console.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D578E0AA9F6EE00313A9F /* console.h */; }; - 707D587F0AA9FBB700313A9F /* crc.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57900AA9F6EE00313A9F /* crc.h */; }; - 707D58800AA9FBB700313A9F /* cvar.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57920AA9F6EE00313A9F /* cvar.h */; }; - 707D58810AA9FBB700313A9F /* genmodel.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57940AA9F6EE00313A9F /* genmodel.h */; }; - 707D58820AA9FBB700313A9F /* gl_func.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57960AA9F6EE00313A9F /* gl_func.h */; }; - 707D58830AA9FBB700313A9F /* gl_model.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57990AA9F6EE00313A9F /* gl_model.h */; }; - 707D58850AA9FBB700313A9F /* gl_warp_sin.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57A30AA9F6EE00313A9F /* gl_warp_sin.h */; }; - 707D58860AA9FBB700313A9F /* glquake.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57A50AA9F6EE00313A9F /* glquake.h */; }; - 707D58870AA9FBB700313A9F /* input.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57A90AA9F6EE00313A9F /* input.h */; }; - 707D58880AA9FBB700313A9F /* keys.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57AB0AA9F6EE00313A9F /* keys.h */; }; - 707D588A0AA9FBB700313A9F /* mathlib.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57AE0AA9F6EE00313A9F /* mathlib.h */; }; - 707D588B0AA9FBB700313A9F /* menu.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57B00AA9F6EE00313A9F /* menu.h */; }; - 707D588D0AA9FBB700313A9F /* net_dgrm.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57B50AA9F6EE00313A9F /* net_dgrm.h */; }; - 707D588E0AA9FBB700313A9F /* net_loop.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57B70AA9F6EE00313A9F /* net_loop.h */; }; - 707D588F0AA9FBB700313A9F /* net_udp.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57BA0AA9F6EE00313A9F /* net_udp.h */; }; - 707D58910AA9FBB700313A9F /* pr_comp.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57BF0AA9F6EE00313A9F /* pr_comp.h */; }; - 707D58920AA9FBB700313A9F /* host_string.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57C30AA9F6EE00313A9F /* host_string.c */; }; - 707D58930AA9FBB700313A9F /* progdefs.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57C40AA9F6EE00313A9F /* progdefs.h */; }; - 707D58940AA9FBB700313A9F /* progs.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57C50AA9F6EE00313A9F /* progs.h */; }; - 707D58950AA9FBB700313A9F /* protocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57C60AA9F6EE00313A9F /* protocol.h */; }; - 707D58960AA9FBB700313A9F /* quakedef.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57C70AA9F6EE00313A9F /* quakedef.h */; }; - 707D58970AA9FBB700313A9F /* sbar.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57CA0AA9F6EE00313A9F /* sbar.h */; }; - 707D58980AA9FBB700313A9F /* sdl_inc.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57CB0AA9F6EE00313A9F /* sdl_inc.h */; }; - 707D58990AA9FBB700313A9F /* server.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57CC0AA9F6EE00313A9F /* server.h */; }; - 707D589A0AA9FBB700313A9F /* snd_sys.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57D20AA9F6EE00313A9F /* snd_sys.h */; }; - 707D589B0AA9FBB700313A9F /* q_sound.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57D30AA9F6EE00313A9F /* q_sound.h */; }; - 707D589C0AA9FBB700313A9F /* spritegn.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57D40AA9F6EE00313A9F /* spritegn.h */; }; - 707D589D0AA9FBB700313A9F /* sys.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57DB0AA9F6EE00313A9F /* sys.h */; }; - 707D589E0AA9FBB700313A9F /* vid.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57DC0AA9F6EE00313A9F /* vid.h */; }; - 707D589F0AA9FBB700313A9F /* view.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57DE0AA9F6EE00313A9F /* view.h */; }; - 707D58A00AA9FBB700313A9F /* wad.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57E00AA9F6EE00313A9F /* wad.h */; }; - 707D58A20AA9FBB700313A9F /* world.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57E30AA9F6EE00313A9F /* world.h */; }; - 707D58A30AA9FBB700313A9F /* zone.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D57E50AA9F6EE00313A9F /* zone.h */; }; - 707D58A60AA9FBB700313A9F /* cd_sdl.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D577C0AA9F6EE00313A9F /* cd_sdl.c */; }; - 707D58A70AA9FBB700313A9F /* chase.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D577F0AA9F6EE00313A9F /* chase.c */; }; - 707D58A80AA9FBB700313A9F /* cl_cmd.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57800AA9F6EE00313A9F /* cl_cmd.c */; }; - 707D58A90AA9FBB700313A9F /* cl_demo.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57810AA9F6EE00313A9F /* cl_demo.c */; }; - 707D58AA0AA9FBB700313A9F /* cl_effect.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57820AA9F6EE00313A9F /* cl_effect.c */; }; - 707D58AB0AA9FBB700313A9F /* cl_input.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57840AA9F6EE00313A9F /* cl_input.c */; }; - 707D58AC0AA9FBB700313A9F /* cl_main.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57850AA9F6EE00313A9F /* cl_main.c */; }; - 707D58AD0AA9FBB700313A9F /* cl_parse.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57860AA9F6EE00313A9F /* cl_parse.c */; }; - 707D58AE0AA9FBB700313A9F /* cl_tent.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57870AA9F6EE00313A9F /* cl_tent.c */; }; - 707D58AF0AA9FBB700313A9F /* cmd.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57890AA9F6EE00313A9F /* cmd.c */; }; - 707D58B00AA9FBB700313A9F /* common.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D578B0AA9F6EE00313A9F /* common.c */; }; - 707D58B10AA9FBB700313A9F /* console.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D578D0AA9F6EE00313A9F /* console.c */; }; - 707D58B20AA9FBB700313A9F /* crc.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D578F0AA9F6EE00313A9F /* crc.c */; }; - 707D58B30AA9FBB700313A9F /* cvar.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57910AA9F6EE00313A9F /* cvar.c */; }; - 707D58B40AA9FBB700313A9F /* bgmusic.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57930AA9F6EE00313A9F /* bgmusic.c */; }; - 707D58B50AA9FBB700313A9F /* gl_draw.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57950AA9F6EE00313A9F /* gl_draw.c */; }; - 707D58B60AA9FBB700313A9F /* gl_mesh.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57970AA9F6EE00313A9F /* gl_mesh.c */; }; - 707D58B70AA9FBB700313A9F /* gl_model.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57980AA9F6EE00313A9F /* gl_model.c */; }; - 707D58B80AA9FBB700313A9F /* gl_refrag.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D579B0AA9F6EE00313A9F /* gl_refrag.c */; }; - 707D58B90AA9FBB700313A9F /* gl_rlight.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D579C0AA9F6EE00313A9F /* gl_rlight.c */; }; - 707D58BA0AA9FBB700313A9F /* gl_rmain.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D579D0AA9F6EE00313A9F /* gl_rmain.c */; }; - 707D58BB0AA9FBB700313A9F /* gl_rmisc.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D579E0AA9F6EE00313A9F /* gl_rmisc.c */; }; - 707D58BC0AA9FBB700313A9F /* gl_rsurf.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D579F0AA9F6EE00313A9F /* gl_rsurf.c */; }; - 707D58BD0AA9FBB700313A9F /* gl_screen.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57A00AA9F6EE00313A9F /* gl_screen.c */; }; - 707D58BF0AA9FBB700313A9F /* gl_vidsdl.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57A20AA9F6EE00313A9F /* gl_vidsdl.c */; }; - 707D58C00AA9FBB700313A9F /* gl_warp.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57A40AA9F6EE00313A9F /* gl_warp.c */; }; - 707D58C10AA9FBB700313A9F /* host_cmd.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57A60AA9F6EE00313A9F /* host_cmd.c */; }; - 707D58C20AA9FBB700313A9F /* host.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57A70AA9F6EE00313A9F /* host.c */; }; - 707D58C30AA9FBB700313A9F /* in_sdl.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57A80AA9F6EE00313A9F /* in_sdl.c */; }; - 707D58C40AA9FBB700313A9F /* keys.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57AA0AA9F6EE00313A9F /* keys.c */; }; - 707D58C50AA9FBB700313A9F /* mathlib.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57AD0AA9F6EE00313A9F /* mathlib.c */; }; - 707D58C60AA9FBB700313A9F /* menu.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57AF0AA9F6EE00313A9F /* menu.c */; }; - 707D58C70AA9FBB700313A9F /* midi_osx.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57B10AA9F6EE00313A9F /* midi_osx.c */; }; - 707D58C80AA9FBB700313A9F /* net_bsd.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57B30AA9F6EE00313A9F /* net_bsd.c */; }; - 707D58C90AA9FBB700313A9F /* net_dgrm.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57B40AA9F6EE00313A9F /* net_dgrm.c */; }; - 707D58CA0AA9FBB700313A9F /* net_loop.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57B60AA9F6EE00313A9F /* net_loop.c */; }; - 707D58CB0AA9FBB700313A9F /* net_main.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57B80AA9F6EE00313A9F /* net_main.c */; }; - 707D58CC0AA9FBB700313A9F /* net_udp.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57B90AA9F6EE00313A9F /* net_udp.c */; }; - 707D58CE0AA9FBB700313A9F /* snd_codec.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57BD0AA9F6EE00313A9F /* snd_codec.c */; }; - 707D58CF0AA9FBB700313A9F /* pr_cmds.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57BE0AA9F6EE00313A9F /* pr_cmds.c */; }; - 707D58D00AA9FBB700313A9F /* pr_edict.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57C00AA9F6EE00313A9F /* pr_edict.c */; }; - 707D58D10AA9FBB700313A9F /* pr_exec.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57C10AA9F6EE00313A9F /* pr_exec.c */; }; - 707D58D20AA9FBB700313A9F /* cl_string.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57C20AA9F6EE00313A9F /* cl_string.c */; }; - 707D58D30AA9FBB700313A9F /* r_part.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57C80AA9F6EE00313A9F /* r_part.c */; }; - 707D58D40AA9FBB700313A9F /* sbar.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57C90AA9F6EE00313A9F /* sbar.c */; }; - 707D58D50AA9FBB700313A9F /* snd_dma.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57CD0AA9F6EE00313A9F /* snd_dma.c */; }; - 707D58D60AA9FBB700313A9F /* snd_mem.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57CE0AA9F6EE00313A9F /* snd_mem.c */; }; - 707D58D70AA9FBB700313A9F /* snd_mix.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57CF0AA9F6EE00313A9F /* snd_mix.c */; }; - 707D58D80AA9FBB700313A9F /* snd_sdl.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57D00AA9F6EE00313A9F /* snd_sdl.c */; }; - 707D58D90AA9FBB700313A9F /* snd_sys.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57D10AA9F6EE00313A9F /* snd_sys.c */; }; - 707D58DA0AA9FBB700313A9F /* sv_effect.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57D50AA9F6EE00313A9F /* sv_effect.c */; }; - 707D58DB0AA9FBB700313A9F /* sv_main.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57D60AA9F6EE00313A9F /* sv_main.c */; }; - 707D58DC0AA9FBB700313A9F /* sv_move.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57D70AA9F6EE00313A9F /* sv_move.c */; }; - 707D58DD0AA9FBB700313A9F /* sv_phys.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57D80AA9F6EE00313A9F /* sv_phys.c */; }; - 707D58DE0AA9FBB700313A9F /* sv_user.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57D90AA9F6EE00313A9F /* sv_user.c */; }; - 707D58DF0AA9FBB700313A9F /* sys_unix.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57DA0AA9F6EE00313A9F /* sys_unix.c */; }; - 707D58E00AA9FBB700313A9F /* view.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57DD0AA9F6EE00313A9F /* view.c */; }; - 707D58E10AA9FBB700313A9F /* wad.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57DF0AA9F6EE00313A9F /* wad.c */; }; - 707D58E20AA9FBB700313A9F /* world.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57E20AA9F6EE00313A9F /* world.c */; }; - 707D58E30AA9FBB700313A9F /* zone.c in Sources */ = {isa = PBXBuildFile; fileRef = 707D57E40AA9F6EE00313A9F /* zone.c */; }; - 707D59050AAA019300313A9F /* SDLMain.h in Headers */ = {isa = PBXBuildFile; fileRef = 707D59030AAA019300313A9F /* SDLMain.h */; }; - 707D59060AAA019300313A9F /* SDLMain.m in Sources */ = {isa = PBXBuildFile; fileRef = 707D59040AAA019300313A9F /* SDLMain.m */; }; - 707D59210AAA071800313A9F /* SDL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 707D59200AAA071800313A9F /* SDL.framework */; }; - 707D592C0AAA076A00313A9F /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 707D59240AAA076A00313A9F /* ApplicationServices.framework */; }; - 707D592D0AAA076A00313A9F /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 707D59250AAA076A00313A9F /* AudioToolbox.framework */; }; - 707D592E0AAA076A00313A9F /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 707D59260AAA076A00313A9F /* AudioUnit.framework */; }; - 707D592F0AAA076A00313A9F /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 707D59270AAA076A00313A9F /* CoreServices.framework */; }; - 707D59300AAA076A00313A9F /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 707D59280AAA076A00313A9F /* Cocoa.framework */; }; - 707D59310AAA076A00313A9F /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 707D59290AAA076A00313A9F /* IOKit.framework */; }; - 707D59320AAA076A00313A9F /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 707D592A0AAA076A00313A9F /* OpenGL.framework */; }; - 7086E4E60AC0070900E9F894 /* hexen2.icns in Resources */ = {isa = PBXBuildFile; fileRef = 7086E4E50AC0070900E9F894 /* hexen2.icns */; }; - 7086E4E70AC0070900E9F894 /* hexen2.icns in Resources */ = {isa = PBXBuildFile; fileRef = 7086E4E50AC0070900E9F894 /* hexen2.icns */; }; - 708C407D0C1E8A4F00B4A314 /* debuglog.c in Sources */ = {isa = PBXBuildFile; fileRef = 70310B320BFDE90900CA35D3 /* debuglog.c */; }; - 708C408F0C1E8B8200B4A314 /* link_ops.c in Sources */ = {isa = PBXBuildFile; fileRef = 70310B370BFDE94700CA35D3 /* link_ops.c */; }; - A4E3AF2A05D43FCC000F1B47 /* libmikmod.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = F5F5DE80017CB4370103A810 /* libmikmod.dylib */; }; - A4E3AF6205D43FCC000F1B47 /* libmikmod.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = F5F5DE80017CB4370103A810 /* libmikmod.dylib */; }; - B0E546A615564FC10033037D /* sys_osx.m in Sources */ = {isa = PBXBuildFile; fileRef = B0E546A515564FC10033037D /* sys_osx.m */; }; - B0E546A715564FC10033037D /* sys_osx.m in Sources */ = {isa = PBXBuildFile; fileRef = B0E546A515564FC10033037D /* sys_osx.m */; }; - B0E74B1E144E7FF40043F808 /* qsnprint.c in Sources */ = {isa = PBXBuildFile; fileRef = B0E74B1D144E7FF40043F808 /* qsnprint.c */; }; - B0E74B1F144E7FF40043F808 /* qsnprint.c in Sources */ = {isa = PBXBuildFile; fileRef = B0E74B1D144E7FF40043F808 /* qsnprint.c */; }; - B0E74B23144E80170043F808 /* strlcat.c in Sources */ = {isa = PBXBuildFile; fileRef = B0E74B22144E80170043F808 /* strlcat.c */; }; - B0E74B24144E80170043F808 /* strlcat.c in Sources */ = {isa = PBXBuildFile; fileRef = B0E74B22144E80170043F808 /* strlcat.c */; }; - B0E74B28144E802B0043F808 /* strlcpy.c in Sources */ = {isa = PBXBuildFile; fileRef = B0E74B27144E802B0043F808 /* strlcpy.c */; }; - B0E74B29144E802B0043F808 /* strlcpy.c in Sources */ = {isa = PBXBuildFile; fileRef = B0E74B27144E802B0043F808 /* strlcpy.c */; }; - B0E74B2D144E80540043F808 /* snd_wave.c in Sources */ = {isa = PBXBuildFile; fileRef = B0E74B2C144E80540043F808 /* snd_wave.c */; }; - B0E74B2E144E80540043F808 /* snd_wave.c in Sources */ = {isa = PBXBuildFile; fileRef = B0E74B2C144E80540043F808 /* snd_wave.c */; }; - B0E74B32144E806D0043F808 /* snd_vorbis.c in Sources */ = {isa = PBXBuildFile; fileRef = B0E74B31144E806D0043F808 /* snd_vorbis.c */; }; - B0E74B33144E806D0043F808 /* snd_vorbis.c in Sources */ = {isa = PBXBuildFile; fileRef = B0E74B31144E806D0043F808 /* snd_vorbis.c */; }; - B0E74B37144E807F0043F808 /* snd_mp3.c in Sources */ = {isa = PBXBuildFile; fileRef = B0E74B36144E807F0043F808 /* snd_mp3.c */; }; - B0E74B38144E807F0043F808 /* snd_mp3.c in Sources */ = {isa = PBXBuildFile; fileRef = B0E74B36144E807F0043F808 /* snd_mp3.c */; }; - B0E74B3C144E80960043F808 /* snd_opus.c in Sources */ = {isa = PBXBuildFile; fileRef = B0E74B3B144E80960043F808 /* snd_opus.c */; }; - B0E74B3D144E80960043F808 /* snd_opus.c in Sources */ = {isa = PBXBuildFile; fileRef = B0E74B3B144E80960043F808 /* snd_opus.c */; }; - CEA6789F155B7E0E008B9770 /* cl_inlude.c in Sources */ = {isa = PBXBuildFile; fileRef = 483B16A4154472FE00BBDAD1 /* cl_inlude.c */; }; -/* End PBXBuildFile section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 63CA728B1963F98C005A8397 /* Copy Libraries */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 6; - files = ( - 63CA72B41963FA3A005A8397 /* libogg.dylib in Copy Libraries */, - 63CA72BA1963FADC005A8397 /* libvorbis.dylib in Copy Libraries */, - 63CA72BB1963FAE8005A8397 /* libvorbisfile.dylib in Copy Libraries */, - 63CA72B61963FA70005A8397 /* libmad.dylib in Copy Libraries */, - 63CA72B81963FABC005A8397 /* libopus.dylib in Copy Libraries */, - 63CA72B91963FAC9005A8397 /* libopusfile.dylib in Copy Libraries */, - 63CA72B51963FA58005A8397 /* libFLAC.dylib in Copy Libraries */, - 63CA72B71963FA7F005A8397 /* libmikmod.dylib in Copy Libraries */, - ); - name = "Copy Libraries"; - runOnlyForDeploymentPostprocessing = 0; - }; - 63CA72BD1963FBA2005A8397 /* Copy Libraries */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 6; - files = ( - 63CA72BF1963FBC8005A8397 /* libogg.dylib in Copy Libraries */, - 63CA72C01963FBDD005A8397 /* libvorbis.dylib in Copy Libraries */, - 63CA72C61963FC75005A8397 /* libvorbisfile.dylib in Copy Libraries */, - 63CA72C11963FC09005A8397 /* libmad.dylib in Copy Libraries */, - 63CA72C21963FC28005A8397 /* libopus.dylib in Copy Libraries */, - 63CA72C31963FC33005A8397 /* libopusfile.dylib in Copy Libraries */, - 63CA72C41963FC48005A8397 /* libFLAC.dylib in Copy Libraries */, - 63CA72C51963FC5A005A8397 /* libmikmod.dylib in Copy Libraries */, - ); - name = "Copy Libraries"; - runOnlyForDeploymentPostprocessing = 0; - }; - 63CA72E11963FE0B005A8397 /* Copy Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 63CA72B31963FA25005A8397 /* SDL.framework in Copy Frameworks */, - ); - name = "Copy Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; - 63CA72E21963FE0B005A8397 /* Copy Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 63CA72BE1963FBBA005A8397 /* SDL.framework in Copy Frameworks */, - ); - name = "Copy Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 4818B0B012D5BA1A006DD66E /* snd_umx.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = snd_umx.c; path = ../../h2shared/snd_umx.c; sourceTree = ""; }; - 48281302179C401D004E1D61 /* libFLAC.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libFLAC.dylib; path = ../../../oslibs/macosx/codecs/lib/libFLAC.dylib; sourceTree = ""; }; - 48281305179C4055004E1D61 /* snd_flac.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = snd_flac.c; path = ../../h2shared/snd_flac.c; sourceTree = ""; }; - 48281306179C4055004E1D61 /* snd_flac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = snd_flac.h; path = ../../h2shared/snd_flac.h; sourceTree = ""; }; - 483A78640D2EEAF000CB2E4C /* snd_mikmod.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = snd_mikmod.c; path = ../../h2shared/snd_mikmod.c; sourceTree = ""; }; - 483B16A4154472FE00BBDAD1 /* cl_inlude.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = cl_inlude.c; path = ../cl_inlude.c; sourceTree = SOURCE_ROOT; }; - 48AE54C4179723F7008E11FB /* snd_opus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = snd_opus.h; path = ../../h2shared/snd_opus.h; sourceTree = ""; }; - 48AE54C717972447008E11FB /* libopus.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libopus.dylib; path = ../../../oslibs/macosx/codecs/lib/libopus.dylib; sourceTree = ""; }; - 48AE54C817972447008E11FB /* libopusfile.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libopusfile.dylib; path = ../../../oslibs/macosx/codecs/lib/libopusfile.dylib; sourceTree = ""; }; - 48E2EC7915FB507A00B8D476 /* libmad.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libmad.dylib; path = ../../../oslibs/macosx/codecs/lib/libmad.dylib; sourceTree = ""; }; - 48E2EC7A15FB507A00B8D476 /* libogg.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libogg.dylib; path = ../../../oslibs/macosx/codecs/lib/libogg.dylib; sourceTree = ""; }; - 48E2EC7B15FB507A00B8D476 /* libvorbis.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libvorbis.dylib; path = ../../../oslibs/macosx/codecs/lib/libvorbis.dylib; sourceTree = ""; }; - 48E2EC7C15FB507A00B8D476 /* libvorbisfile.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libvorbisfile.dylib; path = ../../../oslibs/macosx/codecs/lib/libvorbisfile.dylib; sourceTree = ""; }; - 631478E327F1B36F0023B20A /* snd_mpg123.c */ = {isa = PBXFileReference; comments = "NOTE: snd_mp3.c and snd_mpg123.c are mutually exclusive - build only one."; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = snd_mpg123.c; path = ../../h2shared/snd_mpg123.c; sourceTree = SOURCE_ROOT; }; - 631478E627F1B38A0023B20A /* snd_modplug.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = snd_modplug.c; path = ../../h2shared/snd_modplug.c; sourceTree = SOURCE_ROOT; }; - 6366D4B92815EE390068DD07 /* hashindex.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = hashindex.c; path = ../../h2shared/hashindex.c; sourceTree = SOURCE_ROOT; }; - 6366D4BA2815EE390068DD07 /* hashindex.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = hashindex.h; path = ../../h2shared/hashindex.h; sourceTree = SOURCE_ROOT; }; - 6398924823A25461003C5801 /* snd_mp3tag.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = snd_mp3tag.c; path = ../../h2shared/snd_mp3tag.c; sourceTree = SOURCE_ROOT; }; - 70158B710AAF3B3600F6437C /* d_edge.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = d_edge.c; path = ../../h2shared/d_edge.c; sourceTree = SOURCE_ROOT; }; - 70158B720AAF3B3600F6437C /* d_fill.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = d_fill.c; path = ../../h2shared/d_fill.c; sourceTree = SOURCE_ROOT; }; - 70158B730AAF3B3600F6437C /* d_iface.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = d_iface.h; path = ../../h2shared/d_iface.h; sourceTree = SOURCE_ROOT; }; - 70158B740AAF3B3600F6437C /* d_init.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = d_init.c; path = ../../h2shared/d_init.c; sourceTree = SOURCE_ROOT; }; - 70158B750AAF3B3600F6437C /* d_local.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = d_local.h; path = ../../h2shared/d_local.h; sourceTree = SOURCE_ROOT; }; - 70158B760AAF3B3600F6437C /* d_modech.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = d_modech.c; path = ../../h2shared/d_modech.c; sourceTree = SOURCE_ROOT; }; - 70158B770AAF3B3600F6437C /* d_part.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = d_part.c; path = ../../h2shared/d_part.c; sourceTree = SOURCE_ROOT; }; - 70158B780AAF3B3600F6437C /* d_polyse.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = d_polyse.c; path = ../../h2shared/d_polyse.c; sourceTree = SOURCE_ROOT; }; - 70158B790AAF3B3600F6437C /* d_scan.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = d_scan.c; path = ../../h2shared/d_scan.c; sourceTree = SOURCE_ROOT; }; - 70158B7A0AAF3B3600F6437C /* d_sky.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = d_sky.c; path = ../../h2shared/d_sky.c; sourceTree = SOURCE_ROOT; }; - 70158B7B0AAF3B3600F6437C /* d_sprite.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = d_sprite.c; path = ../../h2shared/d_sprite.c; sourceTree = SOURCE_ROOT; }; - 70158B7C0AAF3B3600F6437C /* d_surf.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = d_surf.c; path = ../../h2shared/d_surf.c; sourceTree = SOURCE_ROOT; }; - 70158B7D0AAF3B3600F6437C /* d_vars.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = d_vars.c; path = ../../h2shared/d_vars.c; sourceTree = SOURCE_ROOT; }; - 70158B7E0AAF3B3600F6437C /* d_zpoint.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = d_zpoint.c; path = ../../h2shared/d_zpoint.c; sourceTree = SOURCE_ROOT; }; - 70158B7F0AAF3B3600F6437C /* draw.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = draw.c; path = ../../h2shared/draw.c; sourceTree = SOURCE_ROOT; }; - 70158B800AAF3B3600F6437C /* draw.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = draw.h; path = ../../h2shared/draw.h; sourceTree = SOURCE_ROOT; }; - 70158B810AAF3B3600F6437C /* model.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = model.c; path = ../../h2shared/model.c; sourceTree = SOURCE_ROOT; }; - 70158B820AAF3B3600F6437C /* model.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = model.h; path = ../../h2shared/model.h; sourceTree = SOURCE_ROOT; }; - 70158B830AAF3B3600F6437C /* r_aclip.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = r_aclip.c; path = ../../h2shared/r_aclip.c; sourceTree = SOURCE_ROOT; }; - 70158B840AAF3B3600F6437C /* r_alias.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = r_alias.c; path = ../r_alias.c; sourceTree = SOURCE_ROOT; }; - 70158B850AAF3B3600F6437C /* r_bsp.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = r_bsp.c; path = ../../h2shared/r_bsp.c; sourceTree = SOURCE_ROOT; }; - 70158B860AAF3B3600F6437C /* r_draw.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = r_draw.c; path = ../../h2shared/r_draw.c; sourceTree = SOURCE_ROOT; }; - 70158B870AAF3B3600F6437C /* r_edge.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = r_edge.c; path = ../../h2shared/r_edge.c; sourceTree = SOURCE_ROOT; }; - 70158B880AAF3B3600F6437C /* r_efrag.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = r_efrag.c; path = ../../h2shared/r_efrag.c; sourceTree = SOURCE_ROOT; }; - 70158B890AAF3B3600F6437C /* r_light.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = r_light.c; path = ../../h2shared/r_light.c; sourceTree = SOURCE_ROOT; }; - 70158B8A0AAF3B3600F6437C /* r_local.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = r_local.h; path = ../../h2shared/r_local.h; sourceTree = SOURCE_ROOT; }; - 70158B8B0AAF3B3600F6437C /* r_main.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = r_main.c; path = ../r_main.c; sourceTree = SOURCE_ROOT; }; - 70158B8C0AAF3B3600F6437C /* r_misc.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = r_misc.c; path = ../r_misc.c; sourceTree = SOURCE_ROOT; }; - 70158B8D0AAF3B3600F6437C /* r_shared.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = r_shared.h; path = ../../h2shared/r_shared.h; sourceTree = SOURCE_ROOT; }; - 70158B8E0AAF3B3600F6437C /* r_sky.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = r_sky.c; path = ../../h2shared/r_sky.c; sourceTree = SOURCE_ROOT; }; - 70158B8F0AAF3B3600F6437C /* r_sprite.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = r_sprite.c; path = ../../h2shared/r_sprite.c; sourceTree = SOURCE_ROOT; }; - 70158B900AAF3B3600F6437C /* r_surf.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = r_surf.c; path = ../../h2shared/r_surf.c; sourceTree = SOURCE_ROOT; }; - 70158B910AAF3B3600F6437C /* r_vars.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = r_vars.c; path = ../../h2shared/r_vars.c; sourceTree = SOURCE_ROOT; }; - 70158B920AAF3B3600F6437C /* render.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = render.h; path = ../render.h; sourceTree = SOURCE_ROOT; }; - 70158B930AAF3B3600F6437C /* screen.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = screen.c; path = ../../h2shared/screen.c; sourceTree = SOURCE_ROOT; }; - 70158B940AAF3B3600F6437C /* screen.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = screen.h; path = ../../h2shared/screen.h; sourceTree = SOURCE_ROOT; }; - 70158C530AAF3C8800F6437C /* Hexen_II.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Hexen_II.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 70158F0A0AAF427F00F6437C /* vid_sdl.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = vid_sdl.c; path = ../../h2shared/vid_sdl.c; sourceTree = SOURCE_ROOT; }; - 70310B240BFDE84D00CA35D3 /* msg_io.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = msg_io.c; path = ../../h2shared/msg_io.c; sourceTree = SOURCE_ROOT; }; - 70310B250BFDE84D00CA35D3 /* msg_io.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = msg_io.h; path = ../../h2shared/msg_io.h; sourceTree = SOURCE_ROOT; }; - 70310B2A0BFDE89200CA35D3 /* q_endian.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = q_endian.c; path = ../../../common/q_endian.c; sourceTree = SOURCE_ROOT; }; - 70310B2B0BFDE89200CA35D3 /* q_endian.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = q_endian.h; path = ../../../common/q_endian.h; sourceTree = SOURCE_ROOT; }; - 70310B320BFDE90900CA35D3 /* debuglog.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = debuglog.c; path = ../../h2shared/debuglog.c; sourceTree = SOURCE_ROOT; }; - 70310B330BFDE90900CA35D3 /* debuglog.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = debuglog.h; path = ../../h2shared/debuglog.h; sourceTree = SOURCE_ROOT; }; - 70310B370BFDE94700CA35D3 /* link_ops.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = link_ops.c; path = ../../h2shared/link_ops.c; sourceTree = SOURCE_ROOT; }; - 70310B380BFDE94700CA35D3 /* link_ops.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = link_ops.h; path = ../../h2shared/link_ops.h; sourceTree = SOURCE_ROOT; }; - 70310B3B0BFDE98400CA35D3 /* sizebuf.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = sizebuf.c; path = ../../h2shared/sizebuf.c; sourceTree = SOURCE_ROOT; }; - 70310B3C0BFDE98400CA35D3 /* sizebuf.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = sizebuf.h; path = ../../h2shared/sizebuf.h; sourceTree = SOURCE_ROOT; }; - 70310B420BFDE9D900CA35D3 /* quakefs.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = quakefs.c; path = ../../h2shared/quakefs.c; sourceTree = SOURCE_ROOT; }; - 70310B430BFDE9D900CA35D3 /* quakefs.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = quakefs.h; path = ../../h2shared/quakefs.h; sourceTree = SOURCE_ROOT; }; - 70310B490BFDEA0F00CA35D3 /* cfgfile.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = cfgfile.c; path = ../../h2shared/cfgfile.c; sourceTree = SOURCE_ROOT; }; - 70310B4A0BFDEA0F00CA35D3 /* cfgfile.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = cfgfile.h; path = ../../h2shared/cfgfile.h; sourceTree = SOURCE_ROOT; }; - 707D57770AA9F6EE00313A9F /* adivtab.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = adivtab.h; path = ../../../common/adivtab.h; sourceTree = SOURCE_ROOT; }; - 707D57790AA9F6EE00313A9F /* anorm_dots.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = anorm_dots.h; path = ../../h2shared/anorm_dots.h; sourceTree = SOURCE_ROOT; }; - 707D577A0AA9F6EE00313A9F /* anorms.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = anorms.h; path = ../../../common/anorms.h; sourceTree = SOURCE_ROOT; }; - 707D577B0AA9F6EE00313A9F /* bspfile.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = bspfile.h; path = ../../../common/bspfile.h; sourceTree = SOURCE_ROOT; }; - 707D577C0AA9F6EE00313A9F /* cd_sdl.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = cd_sdl.c; path = ../../h2shared/cd_sdl.c; sourceTree = SOURCE_ROOT; }; - 707D577D0AA9F6EE00313A9F /* cd_unix.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = cd_unix.h; path = ../../h2shared/cd_unix.h; sourceTree = SOURCE_ROOT; }; - 707D577E0AA9F6EE00313A9F /* cdaudio.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = cdaudio.h; path = ../../h2shared/cdaudio.h; sourceTree = SOURCE_ROOT; }; - 707D577F0AA9F6EE00313A9F /* chase.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = chase.c; path = ../chase.c; sourceTree = SOURCE_ROOT; }; - 707D57800AA9F6EE00313A9F /* cl_cmd.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = cl_cmd.c; path = ../cl_cmd.c; sourceTree = SOURCE_ROOT; }; - 707D57810AA9F6EE00313A9F /* cl_demo.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = cl_demo.c; path = ../cl_demo.c; sourceTree = SOURCE_ROOT; }; - 707D57820AA9F6EE00313A9F /* cl_effect.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = cl_effect.c; path = ../cl_effect.c; sourceTree = SOURCE_ROOT; }; - 707D57830AA9F6EE00313A9F /* effects.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = effects.h; path = ../effects.h; sourceTree = SOURCE_ROOT; }; - 707D57840AA9F6EE00313A9F /* cl_input.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = cl_input.c; path = ../cl_input.c; sourceTree = SOURCE_ROOT; }; - 707D57850AA9F6EE00313A9F /* cl_main.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = cl_main.c; path = ../cl_main.c; sourceTree = SOURCE_ROOT; }; - 707D57860AA9F6EE00313A9F /* cl_parse.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = cl_parse.c; path = ../cl_parse.c; sourceTree = SOURCE_ROOT; }; - 707D57870AA9F6EE00313A9F /* cl_tent.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = cl_tent.c; path = ../cl_tent.c; sourceTree = SOURCE_ROOT; }; - 707D57880AA9F6EE00313A9F /* client.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = client.h; path = ../client.h; sourceTree = SOURCE_ROOT; }; - 707D57890AA9F6EE00313A9F /* cmd.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = cmd.c; path = ../../h2shared/cmd.c; sourceTree = SOURCE_ROOT; }; - 707D578A0AA9F6EE00313A9F /* cmd.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = cmd.h; path = ../../h2shared/cmd.h; sourceTree = SOURCE_ROOT; }; - 707D578B0AA9F6EE00313A9F /* common.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = common.c; path = ../../h2shared/common.c; sourceTree = SOURCE_ROOT; }; - 707D578C0AA9F6EE00313A9F /* common.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = common.h; path = ../../h2shared/common.h; sourceTree = SOURCE_ROOT; }; - 707D578D0AA9F6EE00313A9F /* console.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = console.c; path = ../console.c; sourceTree = SOURCE_ROOT; }; - 707D578E0AA9F6EE00313A9F /* console.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = console.h; path = ../../h2shared/console.h; sourceTree = SOURCE_ROOT; }; - 707D578F0AA9F6EE00313A9F /* crc.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = crc.c; path = ../../../common/crc.c; sourceTree = SOURCE_ROOT; }; - 707D57900AA9F6EE00313A9F /* crc.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = crc.h; path = ../../../common/crc.h; sourceTree = SOURCE_ROOT; }; - 707D57910AA9F6EE00313A9F /* cvar.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = cvar.c; path = ../../h2shared/cvar.c; sourceTree = SOURCE_ROOT; }; - 707D57920AA9F6EE00313A9F /* cvar.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = cvar.h; path = ../../h2shared/cvar.h; sourceTree = SOURCE_ROOT; }; - 707D57930AA9F6EE00313A9F /* bgmusic.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = bgmusic.c; path = ../../h2shared/bgmusic.c; sourceTree = SOURCE_ROOT; }; - 707D57940AA9F6EE00313A9F /* genmodel.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = genmodel.h; path = ../../../common/genmodel.h; sourceTree = SOURCE_ROOT; }; - 707D57950AA9F6EE00313A9F /* gl_draw.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = gl_draw.c; path = ../../h2shared/gl_draw.c; sourceTree = SOURCE_ROOT; }; - 707D57960AA9F6EE00313A9F /* gl_func.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = gl_func.h; path = ../../h2shared/gl_func.h; sourceTree = SOURCE_ROOT; }; - 707D57970AA9F6EE00313A9F /* gl_mesh.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = gl_mesh.c; path = ../../h2shared/gl_mesh.c; sourceTree = SOURCE_ROOT; }; - 707D57980AA9F6EE00313A9F /* gl_model.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = gl_model.c; path = ../../h2shared/gl_model.c; sourceTree = SOURCE_ROOT; }; - 707D57990AA9F6EE00313A9F /* gl_model.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = gl_model.h; path = ../../h2shared/gl_model.h; sourceTree = SOURCE_ROOT; }; - 707D579A0AA9F6EE00313A9F /* h2config.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = h2config.h; path = ../../h2shared/h2config.h; sourceTree = SOURCE_ROOT; }; - 707D579B0AA9F6EE00313A9F /* gl_refrag.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = gl_refrag.c; path = ../../h2shared/gl_refrag.c; sourceTree = SOURCE_ROOT; }; - 707D579C0AA9F6EE00313A9F /* gl_rlight.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = gl_rlight.c; path = ../../h2shared/gl_rlight.c; sourceTree = SOURCE_ROOT; }; - 707D579D0AA9F6EE00313A9F /* gl_rmain.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = gl_rmain.c; path = ../gl_rmain.c; sourceTree = SOURCE_ROOT; }; - 707D579E0AA9F6EE00313A9F /* gl_rmisc.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = gl_rmisc.c; path = ../gl_rmisc.c; sourceTree = SOURCE_ROOT; }; - 707D579F0AA9F6EE00313A9F /* gl_rsurf.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = gl_rsurf.c; path = ../gl_rsurf.c; sourceTree = SOURCE_ROOT; }; - 707D57A00AA9F6EE00313A9F /* gl_screen.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = gl_screen.c; path = ../../h2shared/gl_screen.c; sourceTree = SOURCE_ROOT; }; - 707D57A20AA9F6EE00313A9F /* gl_vidsdl.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = gl_vidsdl.c; path = ../../h2shared/gl_vidsdl.c; sourceTree = SOURCE_ROOT; }; - 707D57A30AA9F6EE00313A9F /* gl_warp_sin.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = gl_warp_sin.h; path = ../../h2shared/gl_warp_sin.h; sourceTree = SOURCE_ROOT; }; - 707D57A40AA9F6EE00313A9F /* gl_warp.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = gl_warp.c; path = ../../h2shared/gl_warp.c; sourceTree = SOURCE_ROOT; }; - 707D57A50AA9F6EE00313A9F /* glquake.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = glquake.h; path = ../../h2shared/glquake.h; sourceTree = SOURCE_ROOT; }; - 707D57A60AA9F6EE00313A9F /* host_cmd.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = host_cmd.c; path = ../host_cmd.c; sourceTree = SOURCE_ROOT; }; - 707D57A70AA9F6EE00313A9F /* host.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = host.c; path = ../host.c; sourceTree = SOURCE_ROOT; }; - 707D57A80AA9F6EE00313A9F /* in_sdl.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = in_sdl.c; path = ../../h2shared/in_sdl.c; sourceTree = SOURCE_ROOT; }; - 707D57A90AA9F6EE00313A9F /* input.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = input.h; path = ../../h2shared/input.h; sourceTree = SOURCE_ROOT; }; - 707D57AA0AA9F6EE00313A9F /* keys.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = keys.c; path = ../keys.c; sourceTree = SOURCE_ROOT; }; - 707D57AB0AA9F6EE00313A9F /* keys.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = keys.h; path = ../../h2shared/keys.h; sourceTree = SOURCE_ROOT; }; - 707D57AD0AA9F6EE00313A9F /* mathlib.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = mathlib.c; path = ../../h2shared/mathlib.c; sourceTree = SOURCE_ROOT; }; - 707D57AE0AA9F6EE00313A9F /* mathlib.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = mathlib.h; path = ../../h2shared/mathlib.h; sourceTree = SOURCE_ROOT; }; - 707D57AF0AA9F6EE00313A9F /* menu.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = menu.c; path = ../menu.c; sourceTree = SOURCE_ROOT; }; - 707D57B00AA9F6EE00313A9F /* menu.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = menu.h; path = ../menu.h; sourceTree = SOURCE_ROOT; }; - 707D57B10AA9F6EE00313A9F /* midi_osx.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = midi_osx.c; path = ../../h2shared/midi_osx.c; sourceTree = SOURCE_ROOT; }; - 707D57B30AA9F6EE00313A9F /* net_bsd.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = net_bsd.c; path = ../net_bsd.c; sourceTree = SOURCE_ROOT; }; - 707D57B40AA9F6EE00313A9F /* net_dgrm.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = net_dgrm.c; path = ../net_dgrm.c; sourceTree = SOURCE_ROOT; }; - 707D57B50AA9F6EE00313A9F /* net_dgrm.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = net_dgrm.h; path = ../net_dgrm.h; sourceTree = SOURCE_ROOT; }; - 707D57B60AA9F6EE00313A9F /* net_loop.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = net_loop.c; path = ../net_loop.c; sourceTree = SOURCE_ROOT; }; - 707D57B70AA9F6EE00313A9F /* net_loop.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = net_loop.h; path = ../net_loop.h; sourceTree = SOURCE_ROOT; }; - 707D57B80AA9F6EE00313A9F /* net_main.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = net_main.c; path = ../net_main.c; sourceTree = SOURCE_ROOT; }; - 707D57B90AA9F6EE00313A9F /* net_udp.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = net_udp.c; path = ../net_udp.c; sourceTree = SOURCE_ROOT; }; - 707D57BA0AA9F6EE00313A9F /* net_udp.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = net_udp.h; path = ../net_udp.h; sourceTree = SOURCE_ROOT; }; - 707D57BD0AA9F6EE00313A9F /* snd_codec.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = snd_codec.c; path = ../../h2shared/snd_codec.c; sourceTree = SOURCE_ROOT; }; - 707D57BE0AA9F6EE00313A9F /* pr_cmds.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = pr_cmds.c; path = ../../h2shared/pr_cmds.c; sourceTree = SOURCE_ROOT; }; - 707D57BF0AA9F6EE00313A9F /* pr_comp.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = pr_comp.h; path = ../../../common/pr_comp.h; sourceTree = SOURCE_ROOT; }; - 707D57C00AA9F6EE00313A9F /* pr_edict.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = pr_edict.c; path = ../../h2shared/pr_edict.c; sourceTree = SOURCE_ROOT; }; - 707D57C10AA9F6EE00313A9F /* pr_exec.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = pr_exec.c; path = ../../h2shared/pr_exec.c; sourceTree = SOURCE_ROOT; }; - 707D57C20AA9F6EE00313A9F /* cl_string.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = cl_string.c; path = ../cl_string.c; sourceTree = SOURCE_ROOT; }; - 707D57C30AA9F6EE00313A9F /* host_string.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = host_string.c; path = ../../h2shared/host_string.c; sourceTree = SOURCE_ROOT; }; - 707D57C40AA9F6EE00313A9F /* progdefs.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = progdefs.h; path = ../progdefs.h; sourceTree = SOURCE_ROOT; }; - 707D57C50AA9F6EE00313A9F /* progs.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = progs.h; path = ../../h2shared/progs.h; sourceTree = SOURCE_ROOT; }; - 707D57C60AA9F6EE00313A9F /* protocol.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = protocol.h; path = ../protocol.h; sourceTree = SOURCE_ROOT; }; - 707D57C70AA9F6EE00313A9F /* quakedef.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = quakedef.h; path = ../quakedef.h; sourceTree = SOURCE_ROOT; }; - 707D57C80AA9F6EE00313A9F /* r_part.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = r_part.c; path = ../r_part.c; sourceTree = SOURCE_ROOT; }; - 707D57C90AA9F6EE00313A9F /* sbar.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = sbar.c; path = ../sbar.c; sourceTree = SOURCE_ROOT; }; - 707D57CA0AA9F6EE00313A9F /* sbar.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = sbar.h; path = ../../h2shared/sbar.h; sourceTree = SOURCE_ROOT; }; - 707D57CB0AA9F6EE00313A9F /* sdl_inc.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = sdl_inc.h; path = ../../h2shared/sdl_inc.h; sourceTree = SOURCE_ROOT; }; - 707D57CC0AA9F6EE00313A9F /* server.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = server.h; path = ../server.h; sourceTree = SOURCE_ROOT; }; - 707D57CD0AA9F6EE00313A9F /* snd_dma.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = snd_dma.c; path = ../../h2shared/snd_dma.c; sourceTree = SOURCE_ROOT; }; - 707D57CE0AA9F6EE00313A9F /* snd_mem.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = snd_mem.c; path = ../../h2shared/snd_mem.c; sourceTree = SOURCE_ROOT; }; - 707D57CF0AA9F6EE00313A9F /* snd_mix.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = snd_mix.c; path = ../../h2shared/snd_mix.c; sourceTree = SOURCE_ROOT; }; - 707D57D00AA9F6EE00313A9F /* snd_sdl.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = snd_sdl.c; path = ../../h2shared/snd_sdl.c; sourceTree = SOURCE_ROOT; }; - 707D57D10AA9F6EE00313A9F /* snd_sys.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = snd_sys.c; path = ../../h2shared/snd_sys.c; sourceTree = SOURCE_ROOT; }; - 707D57D20AA9F6EE00313A9F /* snd_sys.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = snd_sys.h; path = ../../h2shared/snd_sys.h; sourceTree = SOURCE_ROOT; }; - 707D57D30AA9F6EE00313A9F /* q_sound.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = q_sound.h; path = ../../h2shared/q_sound.h; sourceTree = SOURCE_ROOT; }; - 707D57D40AA9F6EE00313A9F /* spritegn.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = spritegn.h; path = ../../../common/spritegn.h; sourceTree = SOURCE_ROOT; }; - 707D57D50AA9F6EE00313A9F /* sv_effect.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = sv_effect.c; path = ../sv_effect.c; sourceTree = SOURCE_ROOT; }; - 707D57D60AA9F6EE00313A9F /* sv_main.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = sv_main.c; path = ../sv_main.c; sourceTree = SOURCE_ROOT; }; - 707D57D70AA9F6EE00313A9F /* sv_move.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = sv_move.c; path = ../sv_move.c; sourceTree = SOURCE_ROOT; }; - 707D57D80AA9F6EE00313A9F /* sv_phys.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = sv_phys.c; path = ../sv_phys.c; sourceTree = SOURCE_ROOT; }; - 707D57D90AA9F6EE00313A9F /* sv_user.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = sv_user.c; path = ../sv_user.c; sourceTree = SOURCE_ROOT; }; - 707D57DA0AA9F6EE00313A9F /* sys_unix.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = sys_unix.c; path = ../sys_unix.c; sourceTree = SOURCE_ROOT; }; - 707D57DB0AA9F6EE00313A9F /* sys.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = sys.h; path = ../../h2shared/sys.h; sourceTree = SOURCE_ROOT; }; - 707D57DC0AA9F6EE00313A9F /* vid.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = vid.h; path = ../../h2shared/vid.h; sourceTree = SOURCE_ROOT; }; - 707D57DD0AA9F6EE00313A9F /* view.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = view.c; path = ../view.c; sourceTree = SOURCE_ROOT; }; - 707D57DE0AA9F6EE00313A9F /* view.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = view.h; path = ../../h2shared/view.h; sourceTree = SOURCE_ROOT; }; - 707D57DF0AA9F6EE00313A9F /* wad.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = wad.c; path = ../../h2shared/wad.c; sourceTree = SOURCE_ROOT; }; - 707D57E00AA9F6EE00313A9F /* wad.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = wad.h; path = ../../h2shared/wad.h; sourceTree = SOURCE_ROOT; }; - 707D57E20AA9F6EE00313A9F /* world.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = world.c; path = ../world.c; sourceTree = SOURCE_ROOT; }; - 707D57E30AA9F6EE00313A9F /* world.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = world.h; path = ../world.h; sourceTree = SOURCE_ROOT; }; - 707D57E40AA9F6EE00313A9F /* zone.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = zone.c; path = ../../h2shared/zone.c; sourceTree = SOURCE_ROOT; }; - 707D57E50AA9F6EE00313A9F /* zone.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = zone.h; path = ../../h2shared/zone.h; sourceTree = SOURCE_ROOT; }; - 707D58EA0AA9FBB700313A9F /* Hexen_II-gl.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Hexen_II-gl.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 707D59030AAA019300313A9F /* SDLMain.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = SDLMain.h; path = ../../h2shared/SDLMain.h; sourceTree = ""; }; - 707D59040AAA019300313A9F /* SDLMain.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = SDLMain.m; path = ../../h2shared/SDLMain.m; sourceTree = ""; }; - 707D59200AAA071800313A9F /* SDL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SDL.framework; path = ../../../oslibs/macosx/SDL.framework; sourceTree = ""; }; - 707D59240AAA076A00313A9F /* ApplicationServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ApplicationServices.framework; path = /System/Library/Frameworks/ApplicationServices.framework; sourceTree = ""; }; - 707D59250AAA076A00313A9F /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = /System/Library/Frameworks/AudioToolbox.framework; sourceTree = ""; }; - 707D59260AAA076A00313A9F /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioUnit.framework; path = /System/Library/Frameworks/AudioUnit.framework; sourceTree = ""; }; - 707D59270AAA076A00313A9F /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = /System/Library/Frameworks/CoreServices.framework; sourceTree = ""; }; - 707D59280AAA076A00313A9F /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; - 707D59290AAA076A00313A9F /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = ""; }; - 707D592A0AAA076A00313A9F /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = /System/Library/Frameworks/OpenGL.framework; sourceTree = ""; }; - 7086E4E50AC0070900E9F894 /* hexen2.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = hexen2.icns; path = ../../resource/hexen2.icns; sourceTree = ""; }; - B0E546A515564FC10033037D /* sys_osx.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = sys_osx.m; path = ../../h2shared/sys_osx.m; sourceTree = SOURCE_ROOT; }; - B0E74B1D144E7FF40043F808 /* qsnprint.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = qsnprint.c; path = ../../../common/qsnprint.c; sourceTree = SOURCE_ROOT; }; - B0E74B22144E80170043F808 /* strlcat.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = strlcat.c; path = ../../../common/strlcat.c; sourceTree = SOURCE_ROOT; }; - B0E74B27144E802B0043F808 /* strlcpy.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = strlcpy.c; path = ../../../common/strlcpy.c; sourceTree = SOURCE_ROOT; }; - B0E74B2C144E80540043F808 /* snd_wave.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = snd_wave.c; path = ../../h2shared/snd_wave.c; sourceTree = SOURCE_ROOT; }; - B0E74B31144E806D0043F808 /* snd_vorbis.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = snd_vorbis.c; path = ../../h2shared/snd_vorbis.c; sourceTree = SOURCE_ROOT; }; - B0E74B36144E807F0043F808 /* snd_mp3.c */ = {isa = PBXFileReference; comments = "NOTE: snd_mp3.c and snd_mpg123.c are mutually exclusive - build only one."; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = snd_mp3.c; path = ../../h2shared/snd_mp3.c; sourceTree = SOURCE_ROOT; }; - B0E74B3B144E80960043F808 /* snd_opus.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = snd_opus.c; path = ../../h2shared/snd_opus.c; sourceTree = SOURCE_ROOT; }; - F5F5DE80017CB4370103A810 /* libmikmod.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libmikmod.dylib; path = ../../../oslibs/macosx/codecs/lib/libmikmod.dylib; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 70158C4D0AAF3C8800F6437C /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 48281304179C4034004E1D61 /* libFLAC.dylib in Frameworks */, - 4854B1AF1340C5FD004C9F45 /* libmad.dylib in Frameworks */, - 4854B1E71340C964004C9F45 /* libogg.dylib in Frameworks */, - 4854B1E81340C964004C9F45 /* libvorbis.dylib in Frameworks */, - 4854B1E91340C964004C9F45 /* libvorbisfile.dylib in Frameworks */, - 4891E1CC179728BF00BED9F7 /* libopus.dylib in Frameworks */, - 4891E1CD179728BF00BED9F7 /* libopusfile.dylib in Frameworks */, - A4E3AF2A05D43FCC000F1B47 /* libmikmod.dylib in Frameworks */, - 70158C870AAF421B00F6437C /* ApplicationServices.framework in Frameworks */, - 70158C880AAF421B00F6437C /* AudioToolbox.framework in Frameworks */, - 70158C890AAF421B00F6437C /* AudioUnit.framework in Frameworks */, - 70158C8A0AAF421B00F6437C /* CoreServices.framework in Frameworks */, - 70158C8B0AAF421B00F6437C /* Cocoa.framework in Frameworks */, - 70158C8C0AAF421B00F6437C /* IOKit.framework in Frameworks */, - 70158C8D0AAF421B00F6437C /* OpenGL.framework in Frameworks */, - 70158C8F0AAF421B00F6437C /* SDL.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 707D58E40AA9FBB700313A9F /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 48281303179C401D004E1D61 /* libFLAC.dylib in Frameworks */, - 48E2EC7D15FB507A00B8D476 /* libmad.dylib in Frameworks */, - 48E2EC7E15FB507A00B8D476 /* libogg.dylib in Frameworks */, - 48E2EC7F15FB507A00B8D476 /* libvorbis.dylib in Frameworks */, - 48E2EC8015FB507A00B8D476 /* libvorbisfile.dylib in Frameworks */, - 48AE54C917972447008E11FB /* libopus.dylib in Frameworks */, - 48AE54CA17972447008E11FB /* libopusfile.dylib in Frameworks */, - A4E3AF6205D43FCC000F1B47 /* libmikmod.dylib in Frameworks */, - 707D59210AAA071800313A9F /* SDL.framework in Frameworks */, - 707D592C0AAA076A00313A9F /* ApplicationServices.framework in Frameworks */, - 707D592D0AAA076A00313A9F /* AudioToolbox.framework in Frameworks */, - 707D592E0AAA076A00313A9F /* AudioUnit.framework in Frameworks */, - 707D592F0AAA076A00313A9F /* CoreServices.framework in Frameworks */, - 707D59300AAA076A00313A9F /* Cocoa.framework in Frameworks */, - 707D59310AAA076A00313A9F /* IOKit.framework in Frameworks */, - 707D59320AAA076A00313A9F /* OpenGL.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 707D57580AA9F4B100313A9F = { - isa = PBXGroup; - children = ( - 631478E627F1B38A0023B20A /* snd_modplug.c */, - 6398924823A25461003C5801 /* snd_mp3tag.c */, - 48281305179C4055004E1D61 /* snd_flac.c */, - 48281306179C4055004E1D61 /* snd_flac.h */, - 48281302179C401D004E1D61 /* libFLAC.dylib */, - 48E2EC7915FB507A00B8D476 /* libmad.dylib */, - 48E2EC7A15FB507A00B8D476 /* libogg.dylib */, - 48E2EC7B15FB507A00B8D476 /* libvorbis.dylib */, - 48E2EC7C15FB507A00B8D476 /* libvorbisfile.dylib */, - 48AE54C717972447008E11FB /* libopus.dylib */, - 48AE54C817972447008E11FB /* libopusfile.dylib */, - F5F5DE80017CB4370103A810 /* libmikmod.dylib */, - B0E546A515564FC10033037D /* sys_osx.m */, - 483B16A4154472FE00BBDAD1 /* cl_inlude.c */, - B0E74B3B144E80960043F808 /* snd_opus.c */, - 48AE54C4179723F7008E11FB /* snd_opus.h */, - 483A78640D2EEAF000CB2E4C /* snd_mikmod.c */, - 4818B0B012D5BA1A006DD66E /* snd_umx.c */, - B0E74B36144E807F0043F808 /* snd_mp3.c */, - 631478E327F1B36F0023B20A /* snd_mpg123.c */, - B0E74B31144E806D0043F808 /* snd_vorbis.c */, - B0E74B2C144E80540043F808 /* snd_wave.c */, - B0E74B27144E802B0043F808 /* strlcpy.c */, - B0E74B22144E80170043F808 /* strlcat.c */, - B0E74B1D144E7FF40043F808 /* qsnprint.c */, - 70310B490BFDEA0F00CA35D3 /* cfgfile.c */, - 70310B4A0BFDEA0F00CA35D3 /* cfgfile.h */, - 70310B420BFDE9D900CA35D3 /* quakefs.c */, - 70310B430BFDE9D900CA35D3 /* quakefs.h */, - 70310B3B0BFDE98400CA35D3 /* sizebuf.c */, - 70310B3C0BFDE98400CA35D3 /* sizebuf.h */, - 70310B370BFDE94700CA35D3 /* link_ops.c */, - 70310B380BFDE94700CA35D3 /* link_ops.h */, - 70310B320BFDE90900CA35D3 /* debuglog.c */, - 70310B330BFDE90900CA35D3 /* debuglog.h */, - 70310B2A0BFDE89200CA35D3 /* q_endian.c */, - 70310B2B0BFDE89200CA35D3 /* q_endian.h */, - 70310B240BFDE84D00CA35D3 /* msg_io.c */, - 70310B250BFDE84D00CA35D3 /* msg_io.h */, - 7086E4E50AC0070900E9F894 /* hexen2.icns */, - 70158F0A0AAF427F00F6437C /* vid_sdl.c */, - 70158B710AAF3B3600F6437C /* d_edge.c */, - 70158B720AAF3B3600F6437C /* d_fill.c */, - 70158B730AAF3B3600F6437C /* d_iface.h */, - 70158B740AAF3B3600F6437C /* d_init.c */, - 70158B750AAF3B3600F6437C /* d_local.h */, - 70158B760AAF3B3600F6437C /* d_modech.c */, - 70158B770AAF3B3600F6437C /* d_part.c */, - 70158B780AAF3B3600F6437C /* d_polyse.c */, - 70158B790AAF3B3600F6437C /* d_scan.c */, - 70158B7A0AAF3B3600F6437C /* d_sky.c */, - 70158B7B0AAF3B3600F6437C /* d_sprite.c */, - 70158B7C0AAF3B3600F6437C /* d_surf.c */, - 70158B7D0AAF3B3600F6437C /* d_vars.c */, - 70158B7E0AAF3B3600F6437C /* d_zpoint.c */, - 70158B7F0AAF3B3600F6437C /* draw.c */, - 70158B800AAF3B3600F6437C /* draw.h */, - 70158B810AAF3B3600F6437C /* model.c */, - 70158B820AAF3B3600F6437C /* model.h */, - 70158B830AAF3B3600F6437C /* r_aclip.c */, - 70158B840AAF3B3600F6437C /* r_alias.c */, - 70158B850AAF3B3600F6437C /* r_bsp.c */, - 70158B860AAF3B3600F6437C /* r_draw.c */, - 70158B870AAF3B3600F6437C /* r_edge.c */, - 70158B880AAF3B3600F6437C /* r_efrag.c */, - 70158B890AAF3B3600F6437C /* r_light.c */, - 70158B8A0AAF3B3600F6437C /* r_local.h */, - 70158B8B0AAF3B3600F6437C /* r_main.c */, - 70158B8C0AAF3B3600F6437C /* r_misc.c */, - 70158B8D0AAF3B3600F6437C /* r_shared.h */, - 70158B8E0AAF3B3600F6437C /* r_sky.c */, - 70158B8F0AAF3B3600F6437C /* r_sprite.c */, - 70158B900AAF3B3600F6437C /* r_surf.c */, - 70158B910AAF3B3600F6437C /* r_vars.c */, - 70158B920AAF3B3600F6437C /* render.h */, - 70158B930AAF3B3600F6437C /* screen.c */, - 70158B940AAF3B3600F6437C /* screen.h */, - 707D59240AAA076A00313A9F /* ApplicationServices.framework */, - 707D59250AAA076A00313A9F /* AudioToolbox.framework */, - 707D59260AAA076A00313A9F /* AudioUnit.framework */, - 707D59270AAA076A00313A9F /* CoreServices.framework */, - 707D59280AAA076A00313A9F /* Cocoa.framework */, - 707D59290AAA076A00313A9F /* IOKit.framework */, - 707D592A0AAA076A00313A9F /* OpenGL.framework */, - 707D59200AAA071800313A9F /* SDL.framework */, - 707D59030AAA019300313A9F /* SDLMain.h */, - 707D59040AAA019300313A9F /* SDLMain.m */, - 707D57770AA9F6EE00313A9F /* adivtab.h */, - 707D57790AA9F6EE00313A9F /* anorm_dots.h */, - 707D577A0AA9F6EE00313A9F /* anorms.h */, - 707D577B0AA9F6EE00313A9F /* bspfile.h */, - 707D57930AA9F6EE00313A9F /* bgmusic.c */, - 707D577C0AA9F6EE00313A9F /* cd_sdl.c */, - 707D577D0AA9F6EE00313A9F /* cd_unix.h */, - 707D577E0AA9F6EE00313A9F /* cdaudio.h */, - 707D577F0AA9F6EE00313A9F /* chase.c */, - 707D57800AA9F6EE00313A9F /* cl_cmd.c */, - 707D57810AA9F6EE00313A9F /* cl_demo.c */, - 707D57820AA9F6EE00313A9F /* cl_effect.c */, - 707D57830AA9F6EE00313A9F /* effects.h */, - 707D57840AA9F6EE00313A9F /* cl_input.c */, - 707D57850AA9F6EE00313A9F /* cl_main.c */, - 707D57860AA9F6EE00313A9F /* cl_parse.c */, - 707D57C20AA9F6EE00313A9F /* cl_string.c */, - 707D57870AA9F6EE00313A9F /* cl_tent.c */, - 707D57880AA9F6EE00313A9F /* client.h */, - 707D57890AA9F6EE00313A9F /* cmd.c */, - 707D578A0AA9F6EE00313A9F /* cmd.h */, - 707D578B0AA9F6EE00313A9F /* common.c */, - 707D578C0AA9F6EE00313A9F /* common.h */, - 707D578D0AA9F6EE00313A9F /* console.c */, - 707D578E0AA9F6EE00313A9F /* console.h */, - 707D578F0AA9F6EE00313A9F /* crc.c */, - 707D57900AA9F6EE00313A9F /* crc.h */, - 707D57910AA9F6EE00313A9F /* cvar.c */, - 707D57920AA9F6EE00313A9F /* cvar.h */, - 707D57940AA9F6EE00313A9F /* genmodel.h */, - 707D57950AA9F6EE00313A9F /* gl_draw.c */, - 707D57960AA9F6EE00313A9F /* gl_func.h */, - 707D57970AA9F6EE00313A9F /* gl_mesh.c */, - 707D57980AA9F6EE00313A9F /* gl_model.c */, - 707D57990AA9F6EE00313A9F /* gl_model.h */, - 707D579A0AA9F6EE00313A9F /* h2config.h */, - 707D579B0AA9F6EE00313A9F /* gl_refrag.c */, - 707D579C0AA9F6EE00313A9F /* gl_rlight.c */, - 707D579D0AA9F6EE00313A9F /* gl_rmain.c */, - 707D579E0AA9F6EE00313A9F /* gl_rmisc.c */, - 707D579F0AA9F6EE00313A9F /* gl_rsurf.c */, - 707D57A00AA9F6EE00313A9F /* gl_screen.c */, - 707D57A20AA9F6EE00313A9F /* gl_vidsdl.c */, - 707D57A30AA9F6EE00313A9F /* gl_warp_sin.h */, - 707D57A40AA9F6EE00313A9F /* gl_warp.c */, - 707D57A50AA9F6EE00313A9F /* glquake.h */, - 707D57A60AA9F6EE00313A9F /* host_cmd.c */, - 707D57C30AA9F6EE00313A9F /* host_string.c */, - 707D57A70AA9F6EE00313A9F /* host.c */, - 6366D4B92815EE390068DD07 /* hashindex.c */, - 6366D4BA2815EE390068DD07 /* hashindex.h */, - 707D57A80AA9F6EE00313A9F /* in_sdl.c */, - 707D57A90AA9F6EE00313A9F /* input.h */, - 707D57AA0AA9F6EE00313A9F /* keys.c */, - 707D57AB0AA9F6EE00313A9F /* keys.h */, - 707D57AD0AA9F6EE00313A9F /* mathlib.c */, - 707D57AE0AA9F6EE00313A9F /* mathlib.h */, - 707D57AF0AA9F6EE00313A9F /* menu.c */, - 707D57B00AA9F6EE00313A9F /* menu.h */, - 707D57B10AA9F6EE00313A9F /* midi_osx.c */, - 707D57B30AA9F6EE00313A9F /* net_bsd.c */, - 707D57B40AA9F6EE00313A9F /* net_dgrm.c */, - 707D57B50AA9F6EE00313A9F /* net_dgrm.h */, - 707D57B60AA9F6EE00313A9F /* net_loop.c */, - 707D57B70AA9F6EE00313A9F /* net_loop.h */, - 707D57B80AA9F6EE00313A9F /* net_main.c */, - 707D57B90AA9F6EE00313A9F /* net_udp.c */, - 707D57BA0AA9F6EE00313A9F /* net_udp.h */, - 707D57BE0AA9F6EE00313A9F /* pr_cmds.c */, - 707D57BF0AA9F6EE00313A9F /* pr_comp.h */, - 707D57C00AA9F6EE00313A9F /* pr_edict.c */, - 707D57C10AA9F6EE00313A9F /* pr_exec.c */, - 707D57C40AA9F6EE00313A9F /* progdefs.h */, - 707D57C50AA9F6EE00313A9F /* progs.h */, - 707D57C60AA9F6EE00313A9F /* protocol.h */, - 707D57C70AA9F6EE00313A9F /* quakedef.h */, - 707D57C80AA9F6EE00313A9F /* r_part.c */, - 707D57C90AA9F6EE00313A9F /* sbar.c */, - 707D57CA0AA9F6EE00313A9F /* sbar.h */, - 707D57CB0AA9F6EE00313A9F /* sdl_inc.h */, - 707D57CC0AA9F6EE00313A9F /* server.h */, - 707D57BD0AA9F6EE00313A9F /* snd_codec.c */, - 707D57CD0AA9F6EE00313A9F /* snd_dma.c */, - 707D57CE0AA9F6EE00313A9F /* snd_mem.c */, - 707D57CF0AA9F6EE00313A9F /* snd_mix.c */, - 707D57D00AA9F6EE00313A9F /* snd_sdl.c */, - 707D57D10AA9F6EE00313A9F /* snd_sys.c */, - 707D57D20AA9F6EE00313A9F /* snd_sys.h */, - 707D57D30AA9F6EE00313A9F /* q_sound.h */, - 707D57D40AA9F6EE00313A9F /* spritegn.h */, - 707D57D50AA9F6EE00313A9F /* sv_effect.c */, - 707D57D60AA9F6EE00313A9F /* sv_main.c */, - 707D57D70AA9F6EE00313A9F /* sv_move.c */, - 707D57D80AA9F6EE00313A9F /* sv_phys.c */, - 707D57D90AA9F6EE00313A9F /* sv_user.c */, - 707D57DA0AA9F6EE00313A9F /* sys_unix.c */, - 707D57DB0AA9F6EE00313A9F /* sys.h */, - 707D57DC0AA9F6EE00313A9F /* vid.h */, - 707D57DD0AA9F6EE00313A9F /* view.c */, - 707D57DE0AA9F6EE00313A9F /* view.h */, - 707D57DF0AA9F6EE00313A9F /* wad.c */, - 707D57E00AA9F6EE00313A9F /* wad.h */, - 707D57E20AA9F6EE00313A9F /* world.c */, - 707D57E30AA9F6EE00313A9F /* world.h */, - 707D57E40AA9F6EE00313A9F /* zone.c */, - 707D57E50AA9F6EE00313A9F /* zone.h */, - 707D57720AA9F4ED00313A9F /* Products */, - ); - sourceTree = ""; - }; - 707D57720AA9F4ED00313A9F /* Products */ = { - isa = PBXGroup; - children = ( - 707D58EA0AA9FBB700313A9F /* Hexen_II-gl.app */, - 70158C530AAF3C8800F6437C /* Hexen_II.app */, - ); - name = Products; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 70158BF30AAF3C8800F6437C /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 70158BF40AAF3C8800F6437C /* d_iface.h in Headers */, - 70158BF50AAF3C8800F6437C /* d_local.h in Headers */, - 70158BF60AAF3C8800F6437C /* draw.h in Headers */, - 70158BF70AAF3C8800F6437C /* model.h in Headers */, - 70158BF80AAF3C8800F6437C /* r_local.h in Headers */, - 70158BF90AAF3C8800F6437C /* r_shared.h in Headers */, - 70158BFA0AAF3C8800F6437C /* render.h in Headers */, - 70158BFB0AAF3C8800F6437C /* screen.h in Headers */, - 70310B290BFDE84D00CA35D3 /* msg_io.h in Headers */, - 70310B2F0BFDE89200CA35D3 /* q_endian.h in Headers */, - 70310B400BFDE98400CA35D3 /* sizebuf.h in Headers */, - 70310B470BFDE9D900CA35D3 /* quakefs.h in Headers */, - 70310B4E0BFDEA0F00CA35D3 /* cfgfile.h in Headers */, - 48AE54C6179723F7008E11FB /* snd_opus.h in Headers */, - 4828130A179C4055004E1D61 /* snd_flac.h in Headers */, - 6366D4BE2815EE390068DD07 /* hashindex.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 707D58720AA9FBB700313A9F /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 707D58730AA9FBB700313A9F /* adivtab.h in Headers */, - 707D58750AA9FBB700313A9F /* anorm_dots.h in Headers */, - 707D58760AA9FBB700313A9F /* anorms.h in Headers */, - 707D58770AA9FBB700313A9F /* bspfile.h in Headers */, - 707D58780AA9FBB700313A9F /* cd_unix.h in Headers */, - 707D58790AA9FBB700313A9F /* cdaudio.h in Headers */, - 707D587A0AA9FBB700313A9F /* effects.h in Headers */, - 707D587B0AA9FBB700313A9F /* client.h in Headers */, - 707D587C0AA9FBB700313A9F /* cmd.h in Headers */, - 707D587D0AA9FBB700313A9F /* common.h in Headers */, - 707D587E0AA9FBB700313A9F /* console.h in Headers */, - 707D587F0AA9FBB700313A9F /* crc.h in Headers */, - 707D58800AA9FBB700313A9F /* cvar.h in Headers */, - 707D58810AA9FBB700313A9F /* genmodel.h in Headers */, - 707D58820AA9FBB700313A9F /* gl_func.h in Headers */, - 707D58830AA9FBB700313A9F /* gl_model.h in Headers */, - 707D58850AA9FBB700313A9F /* gl_warp_sin.h in Headers */, - 707D58860AA9FBB700313A9F /* glquake.h in Headers */, - 707D58870AA9FBB700313A9F /* input.h in Headers */, - 707D58880AA9FBB700313A9F /* keys.h in Headers */, - 707D588A0AA9FBB700313A9F /* mathlib.h in Headers */, - 707D588B0AA9FBB700313A9F /* menu.h in Headers */, - 707D588D0AA9FBB700313A9F /* net_dgrm.h in Headers */, - 707D588E0AA9FBB700313A9F /* net_loop.h in Headers */, - 707D588F0AA9FBB700313A9F /* net_udp.h in Headers */, - 707D58910AA9FBB700313A9F /* pr_comp.h in Headers */, - 707D58930AA9FBB700313A9F /* progdefs.h in Headers */, - 707D58940AA9FBB700313A9F /* progs.h in Headers */, - 707D58950AA9FBB700313A9F /* protocol.h in Headers */, - 707D58960AA9FBB700313A9F /* quakedef.h in Headers */, - 707D58970AA9FBB700313A9F /* sbar.h in Headers */, - 707D58980AA9FBB700313A9F /* sdl_inc.h in Headers */, - 707D58990AA9FBB700313A9F /* server.h in Headers */, - 707D589A0AA9FBB700313A9F /* snd_sys.h in Headers */, - 707D589B0AA9FBB700313A9F /* q_sound.h in Headers */, - 707D589C0AA9FBB700313A9F /* spritegn.h in Headers */, - 707D589D0AA9FBB700313A9F /* sys.h in Headers */, - 707D589E0AA9FBB700313A9F /* vid.h in Headers */, - 707D589F0AA9FBB700313A9F /* view.h in Headers */, - 707D58A00AA9FBB700313A9F /* wad.h in Headers */, - 707D58A20AA9FBB700313A9F /* world.h in Headers */, - 707D58A30AA9FBB700313A9F /* zone.h in Headers */, - 707D59050AAA019300313A9F /* SDLMain.h in Headers */, - 70310B270BFDE84D00CA35D3 /* msg_io.h in Headers */, - 70310B2D0BFDE89200CA35D3 /* q_endian.h in Headers */, - 70310B350BFDE90900CA35D3 /* debuglog.h in Headers */, - 70310B3A0BFDE94700CA35D3 /* link_ops.h in Headers */, - 70310B3E0BFDE98400CA35D3 /* sizebuf.h in Headers */, - 70310B450BFDE9D900CA35D3 /* quakefs.h in Headers */, - 70310B4C0BFDEA0F00CA35D3 /* cfgfile.h in Headers */, - 48AE54C5179723F7008E11FB /* snd_opus.h in Headers */, - 48281309179C4055004E1D61 /* snd_flac.h in Headers */, - 6366D4BC2815EE390068DD07 /* hashindex.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 70158BF20AAF3C8800F6437C /* Hexen_II */ = { - isa = PBXNativeTarget; - buildConfigurationList = 70158C4F0AAF3C8800F6437C /* Build configuration list for PBXNativeTarget "Hexen_II" */; - buildPhases = ( - 70158BF30AAF3C8800F6437C /* Headers */, - 70158BFC0AAF3C8800F6437C /* Resources */, - 70158BFD0AAF3C8800F6437C /* Sources */, - 70158C4D0AAF3C8800F6437C /* Frameworks */, - 70158C4E0AAF3C8800F6437C /* Rez */, - 63CA72BD1963FBA2005A8397 /* Copy Libraries */, - 63CA72E21963FE0B005A8397 /* Copy Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Hexen_II; - productInstallPath = "$(USER_APPS_DIR)"; - productName = Hexen_II; - productReference = 70158C530AAF3C8800F6437C /* Hexen_II.app */; - productType = "com.apple.product-type.application"; - }; - 707D58710AA9FBB700313A9F /* Hexen_II-gl */ = { - isa = PBXNativeTarget; - buildConfigurationList = 707D58E60AA9FBB700313A9F /* Build configuration list for PBXNativeTarget "Hexen_II-gl" */; - buildPhases = ( - 707D58720AA9FBB700313A9F /* Headers */, - 707D58A40AA9FBB700313A9F /* Resources */, - 707D58A50AA9FBB700313A9F /* Sources */, - 707D58E40AA9FBB700313A9F /* Frameworks */, - 707D58E50AA9FBB700313A9F /* Rez */, - 63CA728B1963F98C005A8397 /* Copy Libraries */, - 63CA72E11963FE0B005A8397 /* Copy Frameworks */, - ); - buildRules = ( - ); - comments = "http://uhexen2.sf.net\n"; - dependencies = ( - ); - name = "Hexen_II-gl"; - productInstallPath = "$(USER_APPS_DIR)"; - productName = "Hexen_II-gl"; - productReference = 707D58EA0AA9FBB700313A9F /* Hexen_II-gl.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 707D575A0AA9F4B100313A9F /* Project object */ = { - isa = PBXProject; - buildConfigurationList = 707D575B0AA9F4B100313A9F /* Build configuration list for PBXProject "hexen2" */; - compatibilityVersion = "Xcode 2.4"; - hasScannedForEncodings = 0; - mainGroup = 707D57580AA9F4B100313A9F; - productRefGroup = 707D57720AA9F4ED00313A9F /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 707D58710AA9FBB700313A9F /* Hexen_II-gl */, - 70158BF20AAF3C8800F6437C /* Hexen_II */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 70158BFC0AAF3C8800F6437C /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7086E4E70AC0070900E9F894 /* hexen2.icns in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 707D58A40AA9FBB700313A9F /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7086E4E60AC0070900E9F894 /* hexen2.icns in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXRezBuildPhase section */ - 70158C4E0AAF3C8800F6437C /* Rez */ = { - isa = PBXRezBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 707D58E50AA9FBB700313A9F /* Rez */ = { - isa = PBXRezBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXRezBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 70158BFD0AAF3C8800F6437C /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 70158BFE0AAF3C8800F6437C /* d_edge.c in Sources */, - 70158BFF0AAF3C8800F6437C /* d_fill.c in Sources */, - 70158C000AAF3C8800F6437C /* d_init.c in Sources */, - 70158C010AAF3C8800F6437C /* d_modech.c in Sources */, - 70158C020AAF3C8800F6437C /* d_part.c in Sources */, - 70158C030AAF3C8800F6437C /* d_polyse.c in Sources */, - 70158C040AAF3C8800F6437C /* d_scan.c in Sources */, - 70158C050AAF3C8800F6437C /* d_sky.c in Sources */, - 70158C060AAF3C8800F6437C /* d_sprite.c in Sources */, - 70158C070AAF3C8800F6437C /* d_surf.c in Sources */, - 70158C080AAF3C8800F6437C /* d_vars.c in Sources */, - 70158C090AAF3C8800F6437C /* d_zpoint.c in Sources */, - 70158C0A0AAF3C8800F6437C /* draw.c in Sources */, - 70158C0B0AAF3C8800F6437C /* model.c in Sources */, - 70158C0C0AAF3C8800F6437C /* r_aclip.c in Sources */, - 70158C0D0AAF3C8800F6437C /* r_alias.c in Sources */, - 70158C0E0AAF3C8800F6437C /* r_bsp.c in Sources */, - 70158C0F0AAF3C8800F6437C /* r_draw.c in Sources */, - 70158C100AAF3C8800F6437C /* r_edge.c in Sources */, - 70158C110AAF3C8800F6437C /* r_efrag.c in Sources */, - 70158C120AAF3C8800F6437C /* r_light.c in Sources */, - 70158C130AAF3C8800F6437C /* r_main.c in Sources */, - 70158C140AAF3C8800F6437C /* r_misc.c in Sources */, - 70158C150AAF3C8800F6437C /* r_sky.c in Sources */, - 70158C160AAF3C8800F6437C /* r_sprite.c in Sources */, - 70158C170AAF3C8800F6437C /* r_surf.c in Sources */, - 70158C180AAF3C8800F6437C /* r_vars.c in Sources */, - 70158C190AAF3C8800F6437C /* screen.c in Sources */, - 70158C280AAF3C8800F6437C /* bgmusic.c in Sources */, - 70158C1A0AAF3C8800F6437C /* cd_sdl.c in Sources */, - 70158C1B0AAF3C8800F6437C /* chase.c in Sources */, - 70158C1C0AAF3C8800F6437C /* cl_cmd.c in Sources */, - 70158C1D0AAF3C8800F6437C /* cl_demo.c in Sources */, - 70158C1E0AAF3C8800F6437C /* cl_effect.c in Sources */, - CEA6789F155B7E0E008B9770 /* cl_inlude.c in Sources */, - 70158C1F0AAF3C8800F6437C /* cl_input.c in Sources */, - 70158C200AAF3C8800F6437C /* cl_main.c in Sources */, - 70158C210AAF3C8800F6437C /* cl_parse.c in Sources */, - 70158C3A0AAF3C8800F6437C /* cl_string.c in Sources */, - 70158C220AAF3C8800F6437C /* cl_tent.c in Sources */, - 70158C230AAF3C8800F6437C /* cmd.c in Sources */, - 70158C240AAF3C8800F6437C /* common.c in Sources */, - 70158C250AAF3C8800F6437C /* console.c in Sources */, - 70158C260AAF3C8800F6437C /* crc.c in Sources */, - 70158C270AAF3C8800F6437C /* cvar.c in Sources */, - 70158C290AAF3C8800F6437C /* host.c in Sources */, - 70158C2A0AAF3C8800F6437C /* host_cmd.c in Sources */, - 707D58920AA9FBB700313A9F /* host_string.c in Sources */, - 70158C2B0AAF3C8800F6437C /* in_sdl.c in Sources */, - 70158C2C0AAF3C8800F6437C /* keys.c in Sources */, - 70158C2D0AAF3C8800F6437C /* mathlib.c in Sources */, - 70158C2E0AAF3C8800F6437C /* menu.c in Sources */, - 70158C2F0AAF3C8800F6437C /* midi_osx.c in Sources */, - 70158C300AAF3C8800F6437C /* net_bsd.c in Sources */, - 70158C310AAF3C8800F6437C /* net_dgrm.c in Sources */, - 70158C320AAF3C8800F6437C /* net_loop.c in Sources */, - 70158C330AAF3C8800F6437C /* net_main.c in Sources */, - 70158C340AAF3C8800F6437C /* net_udp.c in Sources */, - 70158C370AAF3C8800F6437C /* pr_cmds.c in Sources */, - 70158C380AAF3C8800F6437C /* pr_edict.c in Sources */, - 70158C390AAF3C8800F6437C /* pr_exec.c in Sources */, - 70158C3B0AAF3C8800F6437C /* r_part.c in Sources */, - 70158C3C0AAF3C8800F6437C /* sbar.c in Sources */, - 70158C3D0AAF3C8800F6437C /* SDLMain.m in Sources */, - 70158C360AAF3C8800F6437C /* snd_codec.c in Sources */, - 70158C3E0AAF3C8800F6437C /* snd_dma.c in Sources */, - 70158C3F0AAF3C8800F6437C /* snd_mem.c in Sources */, - 70158C400AAF3C8800F6437C /* snd_mix.c in Sources */, - 70158C410AAF3C8800F6437C /* snd_sdl.c in Sources */, - 70158C420AAF3C8800F6437C /* snd_sys.c in Sources */, - 70158C430AAF3C8800F6437C /* sv_effect.c in Sources */, - 70158C440AAF3C8800F6437C /* sv_main.c in Sources */, - 70158C450AAF3C8800F6437C /* sv_move.c in Sources */, - 70158C460AAF3C8800F6437C /* sv_phys.c in Sources */, - 70158C470AAF3C8800F6437C /* sv_user.c in Sources */, - 70158C480AAF3C8800F6437C /* sys_unix.c in Sources */, - 70158C490AAF3C8800F6437C /* view.c in Sources */, - 70158C4A0AAF3C8800F6437C /* wad.c in Sources */, - 70158C4B0AAF3C8800F6437C /* world.c in Sources */, - 70158C4C0AAF3C8800F6437C /* zone.c in Sources */, - 70158F0B0AAF427F00F6437C /* vid_sdl.c in Sources */, - 70310B280BFDE84D00CA35D3 /* msg_io.c in Sources */, - 70310B2E0BFDE89200CA35D3 /* q_endian.c in Sources */, - 70310B3F0BFDE98400CA35D3 /* sizebuf.c in Sources */, - 70310B460BFDE9D900CA35D3 /* quakefs.c in Sources */, - 70310B4D0BFDEA0F00CA35D3 /* cfgfile.c in Sources */, - 708C407D0C1E8A4F00B4A314 /* debuglog.c in Sources */, - 708C408F0C1E8B8200B4A314 /* link_ops.c in Sources */, - B0E74B1F144E7FF40043F808 /* qsnprint.c in Sources */, - B0E74B24144E80170043F808 /* strlcat.c in Sources */, - B0E74B29144E802B0043F808 /* strlcpy.c in Sources */, - B0E74B2E144E80540043F808 /* snd_wave.c in Sources */, - B0E74B33144E806D0043F808 /* snd_vorbis.c in Sources */, - B0E74B38144E807F0043F808 /* snd_mp3.c in Sources */, - B0E74B3D144E80960043F808 /* snd_opus.c in Sources */, - B0E546A715564FC10033037D /* sys_osx.m in Sources */, - 48281308179C4055004E1D61 /* snd_flac.c in Sources */, - 32CA4F630368D1EE00C91783 /* snd_umx.c in Sources */, - 483A78780D2EEAF000CB2E4C /* snd_mikmod.c in Sources */, - 6398924A23A25461003C5801 /* snd_mp3tag.c in Sources */, - 631478E827F1B38A0023B20A /* snd_modplug.c in Sources */, - 6366D4BD2815EE390068DD07 /* hashindex.c in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 707D58A50AA9FBB700313A9F /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 707D58B40AA9FBB700313A9F /* bgmusic.c in Sources */, - 707D58A60AA9FBB700313A9F /* cd_sdl.c in Sources */, - 707D58A70AA9FBB700313A9F /* chase.c in Sources */, - 707D58A80AA9FBB700313A9F /* cl_cmd.c in Sources */, - 707D58A90AA9FBB700313A9F /* cl_demo.c in Sources */, - 707D58AA0AA9FBB700313A9F /* cl_effect.c in Sources */, - 707D58AB0AA9FBB700313A9F /* cl_input.c in Sources */, - 707D58AC0AA9FBB700313A9F /* cl_main.c in Sources */, - 707D58AD0AA9FBB700313A9F /* cl_parse.c in Sources */, - 707D58D20AA9FBB700313A9F /* cl_string.c in Sources */, - 707D58AE0AA9FBB700313A9F /* cl_tent.c in Sources */, - 707D58AF0AA9FBB700313A9F /* cmd.c in Sources */, - 707D58B00AA9FBB700313A9F /* common.c in Sources */, - 707D58B10AA9FBB700313A9F /* console.c in Sources */, - 707D58B20AA9FBB700313A9F /* crc.c in Sources */, - 707D58B30AA9FBB700313A9F /* cvar.c in Sources */, - 707D58B50AA9FBB700313A9F /* gl_draw.c in Sources */, - 707D58B60AA9FBB700313A9F /* gl_mesh.c in Sources */, - 707D58B70AA9FBB700313A9F /* gl_model.c in Sources */, - 707D58B80AA9FBB700313A9F /* gl_refrag.c in Sources */, - 707D58B90AA9FBB700313A9F /* gl_rlight.c in Sources */, - 707D58BA0AA9FBB700313A9F /* gl_rmain.c in Sources */, - 707D58BB0AA9FBB700313A9F /* gl_rmisc.c in Sources */, - 707D58BC0AA9FBB700313A9F /* gl_rsurf.c in Sources */, - 707D58BD0AA9FBB700313A9F /* gl_screen.c in Sources */, - 707D58BF0AA9FBB700313A9F /* gl_vidsdl.c in Sources */, - 707D58C00AA9FBB700313A9F /* gl_warp.c in Sources */, - 707D58C10AA9FBB700313A9F /* host_cmd.c in Sources */, - 707D58740AA9FBB700313A9F /* host_string.c in Sources */, - 707D58C20AA9FBB700313A9F /* host.c in Sources */, - 707D58C30AA9FBB700313A9F /* in_sdl.c in Sources */, - 707D58C40AA9FBB700313A9F /* keys.c in Sources */, - 707D58C50AA9FBB700313A9F /* mathlib.c in Sources */, - 707D58C60AA9FBB700313A9F /* menu.c in Sources */, - 707D58C70AA9FBB700313A9F /* midi_osx.c in Sources */, - 707D58C80AA9FBB700313A9F /* net_bsd.c in Sources */, - 707D58C90AA9FBB700313A9F /* net_dgrm.c in Sources */, - 707D58CA0AA9FBB700313A9F /* net_loop.c in Sources */, - 707D58CB0AA9FBB700313A9F /* net_main.c in Sources */, - 707D58CC0AA9FBB700313A9F /* net_udp.c in Sources */, - 707D58CF0AA9FBB700313A9F /* pr_cmds.c in Sources */, - 707D58D00AA9FBB700313A9F /* pr_edict.c in Sources */, - 707D58D10AA9FBB700313A9F /* pr_exec.c in Sources */, - 707D58D30AA9FBB700313A9F /* r_part.c in Sources */, - 707D58D40AA9FBB700313A9F /* sbar.c in Sources */, - 707D58CE0AA9FBB700313A9F /* snd_codec.c in Sources */, - 707D58D50AA9FBB700313A9F /* snd_dma.c in Sources */, - 707D58D60AA9FBB700313A9F /* snd_mem.c in Sources */, - 707D58D70AA9FBB700313A9F /* snd_mix.c in Sources */, - 707D58D80AA9FBB700313A9F /* snd_sdl.c in Sources */, - 707D58D90AA9FBB700313A9F /* snd_sys.c in Sources */, - 707D58DA0AA9FBB700313A9F /* sv_effect.c in Sources */, - 707D58DB0AA9FBB700313A9F /* sv_main.c in Sources */, - 707D58DC0AA9FBB700313A9F /* sv_move.c in Sources */, - 707D58DD0AA9FBB700313A9F /* sv_phys.c in Sources */, - 707D58DE0AA9FBB700313A9F /* sv_user.c in Sources */, - 707D58DF0AA9FBB700313A9F /* sys_unix.c in Sources */, - 707D58E00AA9FBB700313A9F /* view.c in Sources */, - 707D58E10AA9FBB700313A9F /* wad.c in Sources */, - 707D58E20AA9FBB700313A9F /* world.c in Sources */, - 707D58E30AA9FBB700313A9F /* zone.c in Sources */, - 707D59060AAA019300313A9F /* SDLMain.m in Sources */, - 70310B260BFDE84D00CA35D3 /* msg_io.c in Sources */, - 70310B2C0BFDE89200CA35D3 /* q_endian.c in Sources */, - 70310B340BFDE90900CA35D3 /* debuglog.c in Sources */, - 70310B390BFDE94700CA35D3 /* link_ops.c in Sources */, - 70310B3D0BFDE98400CA35D3 /* sizebuf.c in Sources */, - 70310B440BFDE9D900CA35D3 /* quakefs.c in Sources */, - 70310B4B0BFDEA0F00CA35D3 /* cfgfile.c in Sources */, - B0E74B1E144E7FF40043F808 /* qsnprint.c in Sources */, - B0E74B23144E80170043F808 /* strlcat.c in Sources */, - B0E74B28144E802B0043F808 /* strlcpy.c in Sources */, - B0E74B2D144E80540043F808 /* snd_wave.c in Sources */, - B0E74B32144E806D0043F808 /* snd_vorbis.c in Sources */, - B0E74B37144E807F0043F808 /* snd_mp3.c in Sources */, - B0E74B3C144E80960043F808 /* snd_opus.c in Sources */, - 483B16A5154472FE00BBDAD1 /* cl_inlude.c in Sources */, - B0E546A615564FC10033037D /* sys_osx.m in Sources */, - 48281307179C4055004E1D61 /* snd_flac.c in Sources */, - 4818B0B612D5BA1A006DD66E /* snd_umx.c in Sources */, - 48305B530D8AF8EC00A29C24 /* snd_mikmod.c in Sources */, - 6398924923A25461003C5801 /* snd_mp3tag.c in Sources */, - 631478E727F1B38A0023B20A /* snd_modplug.c in Sources */, - 6366D4BB2815EE390068DD07 /* hashindex.c in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 70158C500AAF3C8800F6437C /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = ( - ppc, - i386, - ); - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_GENERATE_DEBUGGING_SYMBOLS = YES; - GCC_MODEL_TUNING = G3; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_CODEC_MP3, - USE_CODEC_VORBIS, - USE_CODEC_WAVE, - USE_CODEC_FLAC, - USE_CODEC_OPUS, - USE_CODEC_MIKMOD, - USE_CODEC_UMX, - SDLQUAKE, - SDL_FRAMEWORK, - "_GNU_SOURCE=1", - _THREAD_SAFE, - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_VERSION = 4.0; - HEADER_SEARCH_PATHS = ( - ../../h2shared, - ../../../common, - ../../../oslibs/macosx/codecs/include, - ); - INFOPLIST_FILE = hexen2.plist; - LIBRARY_SEARCH_PATHS = ../../../oslibs/macosx/codecs/lib; - MACOSX_DEPLOYMENT_TARGET = 10.4; - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = ""; - OTHER_REZFLAGS = ""; - PREBINDING = NO; - PRODUCT_NAME = Hexen_II; - SECTORDER_FLAGS = ""; - STRIP_INSTALLED_PRODUCT = NO; - WARNING_CFLAGS = ( - "-Wmost", - "-Wno-four-char-constants", - "-Wno-unknown-pragmas", - ); - WRAPPER_EXTENSION = app; - }; - name = Debug; - }; - 70158C510AAF3C8800F6437C /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = ( - ppc, - i386, - ); - COPY_PHASE_STRIP = NO; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - GCC_GENERATE_DEBUGGING_SYMBOLS = NO; - GCC_MODEL_TUNING = G3; - GCC_OPTIMIZATION_LEVEL = 2; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_CODEC_MP3, - USE_CODEC_VORBIS, - USE_CODEC_WAVE, - USE_CODEC_FLAC, - USE_CODEC_OPUS, - USE_CODEC_MIKMOD, - USE_CODEC_UMX, - SDLQUAKE, - SDL_FRAMEWORK, - "_GNU_SOURCE=1", - _THREAD_SAFE, - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_VERSION = 4.0; - HEADER_SEARCH_PATHS = ( - ../../h2shared, - ../../../common, - ../../../oslibs/macosx/codecs/include, - ); - INFOPLIST_FILE = hexen2.plist; - LIBRARY_SEARCH_PATHS = ../../../oslibs/macosx/codecs/lib; - MACOSX_DEPLOYMENT_TARGET = 10.4; - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = ""; - OTHER_REZFLAGS = ""; - PREBINDING = NO; - PRODUCT_NAME = Hexen_II; - SECTORDER_FLAGS = ""; - STRIP_INSTALLED_PRODUCT = YES; - WARNING_CFLAGS = ( - "-Wmost", - "-Wno-four-char-constants", - "-Wno-unknown-pragmas", - ); - WRAPPER_EXTENSION = app; - ZERO_LINK = NO; - }; - name = Release; - }; - 707D575C0AA9F4B100313A9F /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = ppc; - COPY_PHASE_STRIP = NO; - FRAMEWORK_SEARCH_PATHS = ( - ../../../oslibs/macosx, - "$(FRAMEWORK_SEARCH_PATHS)", - ); - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_CODEC_MP3, - USE_CODEC_VORBIS, - USE_CODEC_WAVE, - USE_CODEC_FLAC, - USE_CODEC_OPUS, - USE_CODEC_MIKMOD, - USE_CODEC_UMX, - SDLQUAKE, - SDL_FRAMEWORK, - GLQUAKE, - GL_DLSYM, - "_GNU_SOURCE=1", - _THREAD_SAFE, - ); - HEADER_SEARCH_PATHS = ( - ../../h2shared, - ../../../common, - ../../../oslibs/macosx/codecs/include, - ); - LIBRARY_SEARCH_PATHS = ../../../oslibs/macosx/codecs/lib; - OTHER_LDFLAGS = ""; - SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; - }; - name = Debug; - }; - 707D575D0AA9F4B100313A9F /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = ppc; - COPY_PHASE_STRIP = NO; - FRAMEWORK_SEARCH_PATHS = ( - ../../../oslibs/macosx, - "$(FRAMEWORK_SEARCH_PATHS)", - ); - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_CODEC_MP3, - USE_CODEC_VORBIS, - USE_CODEC_WAVE, - USE_CODEC_FLAC, - USE_CODEC_OPUS, - USE_CODEC_MIKMOD, - USE_CODEC_UMX, - SDLQUAKE, - SDL_FRAMEWORK, - GLQUAKE, - GL_DLSYM, - "_GNU_SOURCE=1", - _THREAD_SAFE, - ); - HEADER_SEARCH_PATHS = ( - ../../h2shared, - ../../../common, - ../../../oslibs/macosx/codecs/include, - ); - LIBRARY_SEARCH_PATHS = ../../../oslibs/macosx/codecs/lib; - OTHER_LDFLAGS = ""; - SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; - }; - name = Release; - }; - 707D58E70AA9FBB700313A9F /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = ( - ppc, - i386, - ); - COPY_PHASE_STRIP = NO; - FRAMEWORK_SEARCH_PATHS = ( - ../../../oslibs/macosx, - "$(FRAMEWORK_SEARCH_PATHS)", - ); - GCC_DYNAMIC_NO_PIC = NO; - GCC_GENERATE_DEBUGGING_SYMBOLS = YES; - GCC_MODEL_TUNING = G3; - GCC_OPTIMIZATION_LEVEL = s; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_CODEC_MP3, - USE_CODEC_VORBIS, - USE_CODEC_WAVE, - USE_CODEC_FLAC, - USE_CODEC_OPUS, - USE_CODEC_MIKMOD, - USE_CODEC_UMX, - SDLQUAKE, - SDL_FRAMEWORK, - GLQUAKE, - GL_DLSYM, - "_GNU_SOURCE=1", - _THREAD_SAFE, - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_VERSION = 4.0; - HEADER_SEARCH_PATHS = ( - ../../h2shared, - ../../../common, - ../../../oslibs/macosx/codecs/include, - ); - INFOPLIST_FILE = glhexen2.plist; - LIBRARY_SEARCH_PATHS = ../../../oslibs/macosx/codecs/lib; - MACOSX_DEPLOYMENT_TARGET = 10.4; - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = ""; - OTHER_REZFLAGS = ""; - PREBINDING = NO; - PRODUCT_NAME = "Hexen_II-gl"; - SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; - SECTORDER_FLAGS = ""; - STRIP_INSTALLED_PRODUCT = NO; - WARNING_CFLAGS = ( - "-Wmost", - "-Wno-four-char-constants", - "-Wno-unknown-pragmas", - ); - WRAPPER_EXTENSION = app; - }; - name = Debug; - }; - 707D58E80AA9FBB700313A9F /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = ( - ppc, - i386, - ); - COPY_PHASE_STRIP = NO; - FRAMEWORK_SEARCH_PATHS = ( - ../../../oslibs/macosx, - "$(FRAMEWORK_SEARCH_PATHS)", - ); - GCC_ENABLE_FIX_AND_CONTINUE = NO; - GCC_GENERATE_DEBUGGING_SYMBOLS = NO; - GCC_MODEL_TUNING = G3; - GCC_OPTIMIZATION_LEVEL = s; - GCC_PREPROCESSOR_DEFINITIONS = ( - USE_CODEC_MP3, - USE_CODEC_VORBIS, - USE_CODEC_WAVE, - USE_CODEC_FLAC, - USE_CODEC_OPUS, - USE_CODEC_MIKMOD, - USE_CODEC_UMX, - SDLQUAKE, - SDL_FRAMEWORK, - GLQUAKE, - GL_DLSYM, - "_GNU_SOURCE=1", - _THREAD_SAFE, - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_VERSION = 4.0; - HEADER_SEARCH_PATHS = ( - ../../h2shared, - ../../../common, - ../../../oslibs/macosx/codecs/include, - ); - INFOPLIST_FILE = glhexen2.plist; - LIBRARY_SEARCH_PATHS = ../../../oslibs/macosx/codecs/lib; - MACOSX_DEPLOYMENT_TARGET = 10.4; - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = ""; - OTHER_REZFLAGS = ""; - PREBINDING = NO; - PRODUCT_NAME = "Hexen_II-gl"; - SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; - SECTORDER_FLAGS = ""; - STRIP_INSTALLED_PRODUCT = YES; - WARNING_CFLAGS = ( - "-Wmost", - "-Wno-four-char-constants", - "-Wno-unknown-pragmas", - ); - WRAPPER_EXTENSION = app; - ZERO_LINK = NO; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 70158C4F0AAF3C8800F6437C /* Build configuration list for PBXNativeTarget "Hexen_II" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 70158C500AAF3C8800F6437C /* Debug */, - 70158C510AAF3C8800F6437C /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 707D575B0AA9F4B100313A9F /* Build configuration list for PBXProject "hexen2" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 707D575C0AA9F4B100313A9F /* Debug */, - 707D575D0AA9F4B100313A9F /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 707D58E60AA9FBB700313A9F /* Build configuration list for PBXNativeTarget "Hexen_II-gl" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 707D58E70AA9FBB700313A9F /* Debug */, - 707D58E80AA9FBB700313A9F /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 707D575A0AA9F4B100313A9F /* Project object */; -} diff --git a/oslibs/macosx/SDL.framework/License.rtf b/oslibs/macosx/SDL.framework/License.rtf deleted file mode 100644 index 706980dbb..000000000 --- a/oslibs/macosx/SDL.framework/License.rtf +++ /dev/null @@ -1,283 +0,0 @@ -{\rtf1\mac\ansicpg10000\cocoartf102 -{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;\f2\fswiss\fcharset77 Helvetica-Oblique; -} -{\colortbl;\red255\green255\blue255;\red64\green64\blue64;} -\paperw11900\paperh16840\margl1440\margr1440\vieww9080\viewh13160\viewkind0 -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\qc - -\f0\b\fs36 \cf0 GNU LESSER GENERAL PUBLIC LICENSE -\fs24 \ -Version 2.1, February 1999 -\f1\b0 \ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural -\cf0 \ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\qc - -\f2\i \cf0 Copyright (C) 1991, 1999 Free Software Foundation, Inc.\ - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\ - Everyone is permitted to copy and distribute verbatim copies\ - of this license document, but changing it is not allowed.\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural - -\f1\i0 \cf0 \ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural -\cf2 [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.]\cf0 \ -\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\qc - -\f0\b \cf0 Preamble -\f1\b0 \ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural -\cf0 \ -The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users.\ -\ -This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below.\ -\ -When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things.\ -\ -To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it.\ -\ -For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights.\ -\ -We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library.\ -\ -To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others.\ -\ -Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license.\ -\ -Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We this license for certain libraries in order to permit linking those libraries into non-free programs.\ -\ -When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library.\ -\ -We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances.\ -\ -For example, on rare occasions, there may be a special need to encourage widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License.\ -\ -Another cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system.\ -\ -Although the Lesser General Public License is Less protective of the users' freedom, it does insure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library.\ -\ -The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run.\ -\ -\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\qc - -\f0\b \cf0 GNU LESSER GENERAL PUBLIC LICENSE\ -TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural - -\f1\b0 \cf0 \ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural - -\f0\b \cf0 0. -\f1\b0 This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you".\ -\ -A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables.\ -\ -The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".)\ -\ -"Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library.\ -\ -Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does.\ - \ - -\f0\b 1. -\f1\b0 You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library.\ -\ -You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.\ -\ - -\f0\b 2. -\f1\b0 You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:\ -\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\li240\ql\qnatural - -\f0\b \cf0 a) -\f1\b0 The modified work must itself be a software library.\ -\ - -\f0\b b) -\f1\b0 You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change.\ -\ - -\f0\b c) -\f1\b0 You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License.\ -\ - -\f0\b d) -\f1\b0 If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful.\ -\ -(For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.)\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural -\cf0 \ -These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.\ -\ -Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library.\ -\ -In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.\ -\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural - -\f0\b \cf0 3. -\f1\b0 You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices.\ -\ -Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy.\ -\ -This option is useful when you wish to copy part of the code of the Library into a program that is not a library.\ -\ - -\f0\b 4. -\f1\b0 You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange.\ -\ -If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code.\ -\ - -\f0\b 5. -\f1\b0 A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License.\ -\ -However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables.\ -\ -When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law.\ -\ -If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.)\ -\ -Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself.\ -\ - -\f0\b 6. -\f1\b0 As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications.\ -\ -You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things:\ -\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\li240\ql\qnatural - -\f0\b \cf0 a) -\f1\b0 Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.)\ -\ - -\f0\b b) -\f1\b0 Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with.\ -\ - -\f0\b c) -\f1\b0 Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution.\ -\ - -\f0\b d) -\f1\b0 If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place.\ -\ - -\f0\b e) -\f1\b0 Verify that the user has already received a copy of these materials or that you have already sent this user a copy.\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural -\cf0 \ -For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.\ -\ -It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute.\ -\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural - -\f0\b \cf0 7. -\f1\b0 You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things:\ -\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\li240\ql\qnatural - -\f0\b \cf0 a) -\f1\b0 Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above.\ -\ - -\f0\b b) -\f1\b0 Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural -\cf0 \ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural - -\f0\b \cf0 8. -\f1\b0 You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.\ -\ - -\f0\b 9. -\f1\b0 You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it.\ -\ - -\f0\b 10. -\f1\b0 Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License.\ -\ - -\f0\b 11. -\f1\b0 If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library.\ -\ -If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances.\ -\ -It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.\ -\ -This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.\ -\ - -\f0\b 12. -\f1\b0 If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.\ -\ - -\f0\b 13. -\f1\b0 The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\ -\ -Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation.\ -\ - -\f0\b 14. -\f1\b0 If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.\ -\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\qc - -\f0\b \cf0 NO WARRANTY -\f1\b0 \ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural -\cf0 \ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural - -\f0\b \cf0 15. -\f1\b0 BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\ -\ - -\f0\b 16. -\f1\b0 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\ -\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\qc - -\f0\b \cf0 END OF TERMS AND CONDITIONS -\f1\b0 \ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural -\cf0 \ -\ -How to Apply These Terms to Your New Libraries\ -\ -If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License).\ -\ -To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.\ -\ -\pard\tx220\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\li240\ql\qnatural -\cf0 \ -Copyright (C) \ -\ -This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\ -\ -This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.\ -\ -You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural -\cf0 \ -Also add information on how to contact you by electronic and paper mail.\ -\ -You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names:\ -\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\li240\ql\qnatural -\cf0 Yoyodyne, Inc., hereby disclaims all copyright interest in the library\ -`Frob' (a library for tweaking knobs) written by James Random Hacker.\ -\ -, 1 April 1990\ -Ty Coon, President of Vice\ -\pard\tx565\tx1133\tx1700\tx2266\tx2832\tx3401\tx3967\tx4535\tx5102\tx5669\tx6235\tx6802\ql\qnatural -\cf0 \ -That's all there is to it!\ -\ -} \ No newline at end of file diff --git a/oslibs/macosx/SDL.framework/Modules b/oslibs/macosx/SDL.framework/Modules new file mode 120000 index 000000000..5736f3186 --- /dev/null +++ b/oslibs/macosx/SDL.framework/Modules @@ -0,0 +1 @@ +Versions/Current/Modules \ No newline at end of file diff --git a/oslibs/macosx/SDL.framework/ReadMe.txt b/oslibs/macosx/SDL.framework/ReadMe.txt deleted file mode 100644 index 073115031..000000000 --- a/oslibs/macosx/SDL.framework/ReadMe.txt +++ /dev/null @@ -1,171 +0,0 @@ -The Simple DirectMedia Layer (SDL for short) is a cross-platform -library designed to make it easy to write multi-media software, -such as games and emulators. - -The Simple DirectMedia Layer library source code is available from: -http://www.libsdl.org/ - -This library is distributed under the terms of the GNU LGPL license: -http://www.gnu.org/copyleft/lesser.html - - -This packages contains the SDL.framework for OS X. -Conforming with Apple guidelines, this framework -contains both the SDL runtime component and development header files. - - -To Install: -Copy the SDL.framework to /Library/Frameworks - -You may alternatively install it in /Library/Frameworks -if your access privileges are not high enough. -(Be aware that the Xcode templates we provide in the SDL Developer Extras -package may require some adjustment for your system if you do this.) - - -Known Issues: -??? - - -Additional References: - - - Screencast tutorials for getting started with OpenSceneGraph/Mac OS X are - available at: - http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/MacOSXTips - Though these are OpenSceneGraph centric, the same exact concepts apply to - SDL, thus the videos are recommended for everybody getting started with - developing on Mac OS X. (You can skim over the PlugIns stuff since SDL - doesn't have any PlugIns to worry about.) - - - -(Partial) History of PB/Xcode projects: -2009-09-21 - Added 64-bit for Snow Leopard. 10.4 is the new minimum requirement. - Removed 'no X11' targets as - new codebase will assume you have them. Also removed specific #defines - for X11, but needed to add search path to /usr/X11R6/include - -2007-12-31 - Enabled strip -x in the Xcode settings and removed it - from the Build DMG script. - Added a per-arch setting for the Deployment targets for OTHER_LDFLAGS_ppc - to re-enable prebinding. - Need to remember to copy these changes to the SDL satellite projects. - -2007-12-30 - Updated documentation to reflect new installation paths for - Xcode project templates under Leopard (Xcode 2.5/3.0). - -????-??-?? - Added extra targets for building formal releases against the - 10.2 SDK so we don't have to keep modifying the settings. - -????-??-?? - Added fancy DMG (background logo) support with automation. - -2006-05-09 - Added shell script phase to deal with new SDL_config.h - behavior. Encountered what seems to be an Xcode bug with - multiple files of the same name, even when conditional compiling - is controlled by custom #defines (SDL_sysloadso.c). Multiple or - undefined symbols are the result of this. - Recommended that macosx/SDL_sysloadso.c be modified to directly - include the dlopen version of the file via #ifdef's so only - one version needs to exist. Filed a formal bug report with Apple - about this (4542369). - -2006-03-22 - gcc 4 visibility features have been added to the code base so I - enabled the switch in Xcode to take advantage of it. Be aware that only - our x86 builds will be exposed to this feature as we still build ppc - with gcc 3.3. - - Christian Walther has sent me some great feedback on things that are - broken, so I have made some of these fixes. Among the issues are - compatibility and current library versions are not set to 1 (breaks - backwards compatibility), documentation errors, resource copying - location problems for the SDLTest apps, missing HAVE_OPENGL and - OpenGL.framework linking in testgl. - (Eric Wing) - -2006-03-17 - Because the X11 headers are not installed by default with Xcode, - we decided to offer two variants of the same targets (one with X11 stuff - and one without). By default, since the X11 stuff does not necessarily - conflict with the native stuff, we build the libraries with the X11 stuff - so advanced developers can access it by default. However, in the case - that a developer did not install X11 (or just doesn't want the extra bloat), - the user may directly select those targets and build those instead. - - Once again, we are attempting to remove the exported symbols file. If - I recall correctly, the clashing symbol problems we got were related - to the CD-ROM code which was formerly in C++. Now that the C++ code - has been purged, we are speculating that we might be able to remove - the exports file safely. The long term solution is to utilize gcc 4's - visibility features. - - For the developer extras package, I changed the package format - from a .pkg based installer to a .dmg to avoid requiring - administrator/root to access contents, for better - transparency, and to allow users to more easily control which components - they actually want to install. - I also made changes and updates to the PB/Xcode project templates (see Developer ReadMe). - (Eric Wing) - -2006-03-07 - The entire code base has been reorganized and platform specific - defines have been pushed into header files (SDL_config_*.h). This means - that defines that previously had to be defined in the Xcode projects can - be removed (which I have started doing). Furthermore, it appears that the - MMX/SSE code has been rewritten and refactored so it now compiles without - nasm and without making us do strange things to support OS X. However, this - Xcode project still employs architecture specific build options in order to - achieve the mandated 10.2 compatibility. As a result of the code base changes, - there are new public headers. But also as a result of these changes, there are - also new headers that qualify as "PrivateHeaders". Private Headers are headers - that must be exported because a public header includes them, but users shouldn't - directly invoke these. SDL_config_macosx.h and SDL_config_dreamcast.h are - examples of this. We have considered marking these headers as Private, but it - requires that the public headers invoke them via framework conventions, i.e. - #include - e.g. - #include - and not - #include "SDL_config_macosx.h" - However this imposes the restriction that non-framework distributions must - place their headers in a directory called SDL/ (and not SDL11/ like FreeBSD). - Currently, I do not believe this would pose a problem for any of the current - distributions (Fink, DarwinPorts). Or alternatively, users could be - expected/forced to also include the header path: - -I/Library/Frameworks/SDL.framework/PrivateHeaders, - but most people would probably not read the documentation on this. - But currently, we have decided to be conservative and have opted not to - use the PrivateHeaders feature. - (Eric Wing) - -2006-01-31 - Updates to build Universal Binaries while retaining 10.2 compatibility. - We were unable to get MMX/SSE support enabled. It is believed that a rewrite of - the assembly code will be necessary to make it position independent and not - require nasm. Altivec has finally been enabled for PPC. (Eric Wing) - -2005-09-?? - Had to add back the exports file because it was causing build problems - for some cases. (Eric Wing) - -2005-08-21 - First entry in history. Updated for SDL 1.2.9 and Xcode 2.1. Getting - ready for Universal Binaries. Removed the .pkg system for .dmg for due to problems - with broken packages in the past several SDL point releases. Removed usage of SDL - exports file because it has become another point of failure. Introduced new documentation - about SDLMain and how to compile in an devel-lite section of the SDL.dmg. (Eric Wing) - -Before history: -SDL 1.2.6? to 1.2.8 -Started updating Project Builder projects to Xcode for Panther and Tiger. Also removed -the system that split the single framework into separate runtime and headers frameworks. -This is against Apple conventions and causes problems on multiuser systems. -We now distribute a single framework. -The .pkg system has repeatedly been broken with every new release of OS X. -With 1.2.8, started migrating stuff to .dmg based system to simplify distribution process. -Tried updating the exports file and Perl script generation system for changing syntax. (Eric Wing) - -Pre-SDL 1.2.6 -Created Project Builder projects for SDL and .pkg based distribution system. (Darrell Walisser) - - - - - - - - diff --git a/oslibs/macosx/SDL.framework/UniversalBinaryNotes.rtf b/oslibs/macosx/SDL.framework/UniversalBinaryNotes.rtf deleted file mode 100644 index 5585ecb5a..000000000 --- a/oslibs/macosx/SDL.framework/UniversalBinaryNotes.rtf +++ /dev/null @@ -1,150 +0,0 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf110 -{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset0 LucidaGrande;\f2\fmodern\fcharset0 Courier-Oblique; -} -{\colortbl;\red255\green255\blue255;} -{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}} -{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}} -\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural - -\f0\b\fs24 \cf0 64-bit Universal Binary Notes:\ - -\b0 \ -SDL 1.2.14 is our first release with Snow Leopard on the market. In order to make SDL compile and run in 64-bit, we had to remove code that depended on deprecated Mac APIs and move over to more modern Mac APIs.\ -\ -In addition, Apple has stopped shipping gcc 3.3 and the 10.3 SDK.\ -\ -Because of all these combined factors, we have made the decision to make Mac OS X 10.4 the new minimum requirement for SDL.\ -\ -Our official SDL.framework is compiled as a 3-way Universal Binary (64-bit Intel, 32-bit Intel, 32-bit PowerPC.)\ -\ -Certain APIs that SDL relies on were not made 64-bit ready by Apple until 10.6. This means even though 10.5 had preliminary 64-bit support, SDL will not compile or run correctly in 64-bit mode on 10.5. So there are two fallout items from this.\ -\ -First, you can only compile 64-bit code on Snow Leopard or greater (which removes the possibility of 64-bit PowerPC). \ -\ -Second, this presents a corner-case where if you have a 64-bit Intel executable in your Universal binary and try to run on 10.5 on an 64-bit Intel Mac, it will launch and crash. To force 10.5 to use the 32-bit version instead of the 64-bit, you should set the LaunchServices key, LSMinimumSystemVersionByArchitecture, in your application's Info.plist. Our SDL/Xcode templates for Snow Leopard already set this up for you.\ -\ -\ -One additional fallout item is we had to remove the SDL Custom Cocoa Xcode template project. It depended on NSQuickTimeView which was deprecated and removed from the SDL codebase. It may still be possible to recreate the behavior that this template demonstrated, but we would need a volunteer to investigate this.\ -\ -\ -\ -In addition, the SDL satellite projects were affected by the 64-bit transition.\ -\ -- SDL_mixer depended on legacy Quicktime for midi playback support. We had to disable midi. (Recall that we also disabled MP3 support awhile back because we never got SMPEG working during the Tiger/Intel transition.) To fix this, we would need a native Core Audio backend for SDL_mixer.\ -\ -- Since we have changed the baseline to 10.4, we took this opportunity to switch SDL_image over to a new native ImageIO based backend. This makes the binary about 10x smaller, greatly simplifies our maintenance requirements and build process as we no longer have to maintain build systems for 3rd party dependencies, and gives us access to more image formats.\ -\ -- The static library target for SDL_ttf no longer works because we no longer have access to a libfreetype.a. We have been relying on Apple's supplied libfreetype.a, but they stopped shipping a static version starting in 10.5 which means we have no static 64-bit version. But since 10.4 is our new baseline, all these systems should have libfreetype.dylib installed, so it shouldn't be much of a problem to use SDL_ttf as a dynamic library which dynamically links to libfreetype.\ -\ -\ --Eric Wing 2009-09-23\ - -\b \ -\ -\ -\ -Universal Binary Notes: (historical, somewhat obsolete)\ - -\b0 \ -Below is an overview of what we had to do to build Universal Binaries for SDL (and satellites). The document is provided to help others understand what the heck we had to do to get this to work so they know (and don't break) any settings we have set to accomplish this. It also describes areas of problems for those who might attempt to fix them after us.\ -\ -\ -It turns out that developing a Universal Binary for SDL was a painful process, but not for the typical reasons affecting most other developers. SDL is already platform clean and has an Xcode project which are usually the two biggest obstacles. (The only real code bug we had to fix was in SDL_mixer, but that was due to a Quicktime issue so we can blame the Quicktime authors.)\ -\ -But developing a Universal Binary was painful to us for several reasons:\ -\ -\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720\ql\qnatural\pardirnatural -\ls1\ilvl0\cf0 {\listtext \'95 }SDL must retain compatibility with 10.2 (Jaguar)\ -\ -{\listtext \'95 }SDL has processor specific optimizations (Altivec, MMX/SSE)\ -\ -{\listtext \'95 }The SDL satellites (SDL_mixer, SDL_image, SDL_ttf) have 3rd party dependencies which we currently statically link against. All of these dependencies needed to be updated/recompiled with the same above constraints.\ -\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural -\cf0 \ -For retaining compatibility with 10.2, we have experimentally determined that there is no reliable way to use gcc 4.0.x to compile a binary that works under Jaguar. With the gcc 4.0 that shipped in Xcode 2.1, libgcc_s was automatically linked against. This library does not exist on systems prior to 10.3.9. After filing a bug report, Apple removed this automatic linking in gcc 4.0.1 which shipped with Xcode 2.2, but we discovered that we suffered from undefined symbols to things in the printf family library. (They seem to be new symbols related to printing long doubles, etc.)\ -\ -So to accomplish our compatibility goals, we had to find and exploit some lesser known features of Xcode that allow us to specify architecture specific build flags found here:\ -\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural -{\field{\*\fldinst{HYPERLINK "http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/05_07_bs_building_product/chapter_33_section_6.html#//apple_ref/doc/uid/TP40002693-SW3"}}{\fldrslt \cf0 http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/05_07_bs_building_product/chapter_33_section_6.html#//apple_ref/doc/uid/TP40002693-SW3}}\ -\ -The first and most important of these is the -\f1 GCC_VERSION flag which lets us set gcc 3.3 for PowerPC and gcc 4.0 for Intel.\ -\ -But we also needed to verify other options such as the deployment target and SDK. Experimentally, we found that the Deployment target did very little for us except retain prebinding. Setting it to anything less than 10.4 allows for prebinding to remain active.\ -\ -For the SDK's, we found that Apple does link against different versions of system components. But experimentally, we discovered we could still link to the 10.4u SDK and things would still work on Jaguar. Ideally we should probably link to the 10.2.8 SDK for PowerPC. But in reality, most people don't install the 10.2.8 SDK on their system (it is not a default component) so we didn't want to confuse people as setting this would likely cause people's compile to fail the first time they try and they would have to understand the reason for this. We did leave the architecture specific SDKROOT option set explicitly to make it easy to change in case we need to.\ -\ -For the Altivec and MMX/SSE options, we had to use architecture specific build flags. Furthermore, to use SSE, we also had to include the assembly code. This caused us problems because there is no easy way to tell Xcode to use files only for a specific architecture. So the PowerPC side got confused on the .asm files and would fail to compile. \ -\ -Pushing forward, we ignored PPC for the moment to see if we could at least build an optimized x86 build and then use lipo manually to merge the results. We encountered additional problems. First the alignment needed to be changed for reasons outside my knowledge base. We changed all instances of .align 16 to .align 8. This seemed to fix the compile problems. But at the linking stage, we got errors such as:\ -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\li640\fi-640\ql\qnatural\pardirnatural - -\f2\i\fs22 \cf0 ld: /Users/ewing/DEVELOPMENT/CODETEST/UniversalBinarySDL/SDL12/Xcode/SDL/build/SDL.build/Deployment/Framework.build/Objects-normal/i386/SDL_yuv_mmx.o has local relocation entries in non-writable section (__TEXT,__text)\ -/usr/bin/libtool: internal link edit command failed\ -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural - -\f1\i0\fs24 \cf0 \ -Our belief is that the assembly code is not position independent and thus will not work for us. We double checked for any OS X gcc flags that control position independence, but everything seemed to be in order. As such, we cannot compile MMX/SSE optimizations until they are rewritten, preferably without the nasm requirement to accommodate the dual PPC/x86 Xcode limitations.\ -\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural -\cf0 \ -So for now, we have unchecked (checkbox) the assembly specific files in the Xcode project and have removed the -DUSE_ASMBLIT flag from OTHER_CFLAGS_i386. To reactivate this stuff, you will need to recheck the boxes and re-add the flag.\ -\ -The files are\ -SDL_mixer_MMX.c/h\ -The files under hermes\ -and SDL_yuv_mmx.c\ -\ -\ -\ -For the SDL satellites, it was more of the same. The painful part was that the 3rd library dependencies needed to be rebuilt. (Some of our libraries were out of date, so this was an opportunity to update them.) But this meant changing those build systems as well. \ -\ -These are the versions I used:\ -libpng-1.2.8\ -libjpeg-6b\ -libogg-1.1.3\ -libvorbis-1.1.2\ -smpeg cvs\ -\ -We found that Apple already had a libfreetype in the 10.4u SDK so we just used that one which seemed to work. (For the record, the question did come up of why we statically link against this when it seems to be a standard component on Panther and Tiger. We double checked, and it did not seem to be in Jaguar. So that's why.)\ -\ -The old libpng turned out to be from the 1.0.x branch so we needed to replace all the headers we had as well. Updating to the 1.2.x branch didn't seem to cause any problems we could detect.\ -\ -libpng and libjpeg lack an Xcode project so we mucked with their build system to produce Universal Binaries. But since we needed PPC to be compiled with 3.3 and Intel to be compiled with 4.0, it ended up that we built multiple times changing the compiler, and then using lipo to strip and combine the binaries.\ -\ -libogg/libvorbis did contain Xcode projects, but didn't build static libraries so we had to add that. We also discovered that not building with gcc 3.3 caused us addition missing symbol runtime problems with float versions of math functions (sinf, sqrtf, etc).\ -\ -It seems that once upon a time, the SDL_mixer framework supported MP3's via SMPEG, but this disappeared at some point. I don't know why or how this happened. But I also don't know how SMPEG was ever used with the framework as there was no preexisting infrastructure as with the other libraries. So I have attempted to correct this oversight, however, the SMPEG framework itself has MMX code which has also turned out to be problematic. I am getting compiler errors of " -\f2\i\fs22 Unknown pseudo-op:" -\f1\i0\fs24 for -\f2\i\fs22 .type -\f1\i0\fs24 and -\f2\i\fs22 .size. -\f1\i0\fs24 \ -So SMPEG is currently compiled without MMX optimizations.\ -\ -\ -\ -\ -Addendum: \ -2006-03-06:\ -The main SDL code base (not the satellites) have undergone an overhaul. The required platform specific defines have been moved out of the build system into platform specific header files (SDL_config_*.h). This allows us to simplify the Xcode projects somewhat, but we still must maintain the architecture specific build options to invoke gcc 3.3 to maintain our mandated 10.2 compatibilty requirement.\ -\ -Also it appears that the MMX/SSE code has been rewritten as well so that the obstacles we faced in compiling in these optimizations are no longer problems. The binaries we produce should now contain the processor specific optimizations. (Remember this note only applies to SDL and not the satellites, such as SMPEG.)\ -\ -\ -\ -Contributers:\ -Eric Wing (Xcode projects, 3rd party dependencies, documentation)\ -Christian Walther (10.2.8 and 10.3.9 testing/verification)\ -Ryan Gordon (converted C++ code in SDL/OSX code base to pure C)\ -Martin Storsj\'f6 (libgcc_s testing/verification)\ -Stephane Marchesin (MMX/SSE code expert)\ -\ -\ -\ -\ -\ -\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural - -\f0 \cf0 \ -} \ No newline at end of file diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL.h index 6087b7cdd..f7b979719 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL.h @@ -1,101 +1,65 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** @file SDL.h - * Main include header for the SDL library - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_H #define _SDL_H -#include "SDL_main.h" -#include "SDL_stdinc.h" -#include "SDL_audio.h" -#include "SDL_cdrom.h" -#include "SDL_cpuinfo.h" -#include "SDL_endian.h" -#include "SDL_error.h" -#include "SDL_events.h" -#include "SDL_loadso.h" -#include "SDL_mutex.h" -#include "SDL_rwops.h" -#include "SDL_thread.h" -#include "SDL_timer.h" -#include "SDL_video.h" -#include "SDL_version.h" - -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** @file SDL.h - * @note As of version 0.5, SDL is loaded dynamically into the application - */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#define SDL_INIT_TIMER 0x00000001 +#define SDL_INIT_AUDIO 0x00000010 +#define SDL_INIT_VIDEO 0x00000020 +#define SDL_INIT_CDROM 0x00000100 +#define SDL_INIT_JOYSTICK 0x00000200 +#define SDL_INIT_NOPARACHUTE 0x00100000 +#define SDL_INIT_EVENTTHREAD 0x01000000 +#define SDL_INIT_EVERYTHING 0x0000FFFF -/** @name SDL_INIT Flags - * These are the flags which may be passed to SDL_Init() -- you should - * specify the subsystems which you will be using in your application. - */ -/*@{*/ -#define SDL_INIT_TIMER 0x00000001 -#define SDL_INIT_AUDIO 0x00000010 -#define SDL_INIT_VIDEO 0x00000020 -#define SDL_INIT_CDROM 0x00000100 -#define SDL_INIT_JOYSTICK 0x00000200 -#define SDL_INIT_NOPARACHUTE 0x00100000 /**< Don't catch fatal signals */ -#define SDL_INIT_EVENTTHREAD 0x01000000 /**< Not supported on all OS's */ -#define SDL_INIT_EVERYTHING 0x0000FFFF -/*@}*/ - -/** This function loads the SDL dynamically linked library and initializes - * the subsystems specified by 'flags' (and those satisfying dependencies) - * Unless the SDL_INIT_NOPARACHUTE flag is set, it will install cleanup - * signal handlers for some commonly ignored fatal signals (like SIGSEGV) - */ extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags); - -/** This function initializes specific SDL subsystems */ extern DECLSPEC int SDLCALL SDL_InitSubSystem(Uint32 flags); - -/** This function cleans up specific SDL subsystems */ extern DECLSPEC void SDLCALL SDL_QuitSubSystem(Uint32 flags); - -/** This function returns mask of the specified subsystems which have - * been initialized. - * If 'flags' is 0, it returns a mask of all initialized subsystems. - */ extern DECLSPEC Uint32 SDLCALL SDL_WasInit(Uint32 flags); - -/** This function cleans up all initialized subsystems and unloads the - * dynamically linked library. You should call it upon all exit conditions. - */ extern DECLSPEC void SDLCALL SDL_Quit(void); -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} +#include + #endif -#include "close_code.h" -#endif /* _SDL_H */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_active.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_active.h index cd854e892..168b02c38 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_active.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_active.h @@ -1,63 +1,43 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** - * @file SDL_active.h - * Include file for SDL application focus event handling - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_active_h #define _SDL_active_h -#include "SDL_stdinc.h" -#include "SDL_error.h" +#include +#include -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif +#include + +#define SDL_APPMOUSEFOCUS 0x01 +#define SDL_APPINPUTFOCUS 0x02 +#define SDL_APPACTIVE 0x04 -/** @name The available application states */ -/*@{*/ -#define SDL_APPMOUSEFOCUS 0x01 /**< The app has mouse coverage */ -#define SDL_APPINPUTFOCUS 0x02 /**< The app has input focus */ -#define SDL_APPACTIVE 0x04 /**< The application is active */ -/*@}*/ - -/* Function prototypes */ -/** - * This function returns the current state of the application, which is a - * bitwise combination of SDL_APPMOUSEFOCUS, SDL_APPINPUTFOCUS, and - * SDL_APPACTIVE. If SDL_APPACTIVE is set, then the user is able to - * see your application, otherwise it has been iconified or disabled. - */ extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void); +#include -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} #endif -#include "close_code.h" -#endif /* _SDL_active_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_audio.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_audio.h index e879c9896..db9826ccc 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_audio.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_audio.h @@ -1,284 +1,110 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** - * @file SDL_audio.h - * Access to the raw audio mixing buffer for the SDL library - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_audio_h #define _SDL_audio_h -#include "SDL_stdinc.h" -#include "SDL_error.h" -#include "SDL_endian.h" -#include "SDL_mutex.h" -#include "SDL_thread.h" -#include "SDL_rwops.h" +#include +#include +#include +#include +#include +#include -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif +#include -/** - * When filling in the desired audio spec structure, - * - 'desired->freq' should be the desired audio frequency in samples-per-second. - * - 'desired->format' should be the desired audio format. - * - 'desired->samples' is the desired size of the audio buffer, in samples. - * This number should be a power of two, and may be adjusted by the audio - * driver to a value more suitable for the hardware. Good values seem to - * range between 512 and 8096 inclusive, depending on the application and - * CPU speed. Smaller values yield faster response time, but can lead - * to underflow if the application is doing heavy processing and cannot - * fill the audio buffer in time. A stereo sample consists of both right - * and left channels in LR ordering. - * Note that the number of samples is directly related to time by the - * following formula: ms = (samples*1000)/freq - * - 'desired->size' is the size in bytes of the audio buffer, and is - * calculated by SDL_OpenAudio(). - * - 'desired->silence' is the value used to set the buffer to silence, - * and is calculated by SDL_OpenAudio(). - * - 'desired->callback' should be set to a function that will be called - * when the audio device is ready for more data. It is passed a pointer - * to the audio buffer, and the length in bytes of the audio buffer. - * This function usually runs in a separate thread, and so you should - * protect data structures that it accesses by calling SDL_LockAudio() - * and SDL_UnlockAudio() in your code. - * - 'desired->userdata' is passed as the first parameter to your callback - * function. - * - * @note The calculated values in this structure are calculated by SDL_OpenAudio() - * - */ typedef struct SDL_AudioSpec { - int freq; /**< DSP frequency -- samples per second */ - Uint16 format; /**< Audio data format */ - Uint8 channels; /**< Number of channels: 1 mono, 2 stereo */ - Uint8 silence; /**< Audio buffer silence value (calculated) */ - Uint16 samples; /**< Audio buffer size in samples (power of 2) */ - Uint16 padding; /**< Necessary for some compile environments */ - Uint32 size; /**< Audio buffer size in bytes (calculated) */ - /** - * This function is called when the audio device needs more data. - * - * @param[out] stream A pointer to the audio data buffer - * @param[in] len The length of the audio buffer in bytes. - * - * Once the callback returns, the buffer will no longer be valid. - * Stereo samples are stored in a LRLRLR ordering. - */ - void (SDLCALL *callback)(void *userdata, Uint8 *stream, int len); - void *userdata; + int freq; + Uint16 format; + Uint8 channels; + Uint8 silence; + Uint16 samples; + Uint16 padding; + Uint32 size; + void (SDLCALL *callback)(void *userdata, Uint8 *stream, int len); + void *userdata; } SDL_AudioSpec; -/** - * @name Audio format flags - * defaults to LSB byte order - */ -/*@{*/ -#define AUDIO_U8 0x0008 /**< Unsigned 8-bit samples */ -#define AUDIO_S8 0x8008 /**< Signed 8-bit samples */ -#define AUDIO_U16LSB 0x0010 /**< Unsigned 16-bit samples */ -#define AUDIO_S16LSB 0x8010 /**< Signed 16-bit samples */ -#define AUDIO_U16MSB 0x1010 /**< As above, but big-endian byte order */ -#define AUDIO_S16MSB 0x9010 /**< As above, but big-endian byte order */ -#define AUDIO_U16 AUDIO_U16LSB -#define AUDIO_S16 AUDIO_S16LSB +#define AUDIO_U8 0x0008 +#define AUDIO_S8 0x8008 +#define AUDIO_U16LSB 0x0010 +#define AUDIO_S16LSB 0x8010 +#define AUDIO_U16MSB 0x1010 +#define AUDIO_S16MSB 0x9010 +#define AUDIO_U16 AUDIO_U16LSB +#define AUDIO_S16 AUDIO_S16LSB -/** - * @name Native audio byte ordering - */ -/*@{*/ #if SDL_BYTEORDER == SDL_LIL_ENDIAN -#define AUDIO_U16SYS AUDIO_U16LSB -#define AUDIO_S16SYS AUDIO_S16LSB +#define AUDIO_U16SYS AUDIO_U16LSB +#define AUDIO_S16SYS AUDIO_S16LSB #else -#define AUDIO_U16SYS AUDIO_U16MSB -#define AUDIO_S16SYS AUDIO_S16MSB +#define AUDIO_U16SYS AUDIO_U16MSB +#define AUDIO_S16SYS AUDIO_S16MSB #endif -/*@}*/ -/*@}*/ - - -/** A structure to hold a set of audio conversion filters and buffers */ -typedef struct SDL_AudioCVT { - int needed; /**< Set to 1 if conversion possible */ - Uint16 src_format; /**< Source audio format */ - Uint16 dst_format; /**< Target audio format */ - double rate_incr; /**< Rate conversion increment */ - Uint8 *buf; /**< Buffer to hold entire audio data */ - int len; /**< Length of original audio buffer */ - int len_cvt; /**< Length of converted audio buffer */ - int len_mult; /**< buffer must be len*len_mult big */ - double len_ratio; /**< Given len, final size is len*len_ratio */ - void (SDLCALL *filters[10])(struct SDL_AudioCVT *cvt, Uint16 format); - int filter_index; /**< Current audio conversion function */ +typedef struct SDL_AudioCVT +{ + int needed; + Uint16 src_format; + Uint16 dst_format; + double rate_incr; + Uint8 *buf; + int len; + int len_cvt; + int len_mult; + double len_ratio; + void (SDLCALL *filters[10])(struct SDL_AudioCVT *cvt, Uint16 format); + int filter_index; } SDL_AudioCVT; +typedef enum SDL_audiostatus +{ + SDL_AUDIO_STOPPED, + SDL_AUDIO_PLAYING, + SDL_AUDIO_PAUSED +} SDL_audiostatus; -/* Function prototypes */ +#define SDL_MIX_MAXVOLUME 128 -/** - * @name Audio Init and Quit - * These functions are used internally, and should not be used unless you - * have a specific need to specify the audio driver you want to use. - * You should normally use SDL_Init() or SDL_InitSubSystem(). - */ -/*@{*/ extern DECLSPEC int SDLCALL SDL_AudioInit(const char *driver_name); extern DECLSPEC void SDLCALL SDL_AudioQuit(void); -/*@}*/ - -/** - * This function fills the given character buffer with the name of the - * current audio driver, and returns a pointer to it if the audio driver has - * been initialized. It returns NULL if no driver has been initialized. - */ extern DECLSPEC char * SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen); - -/** - * This function opens the audio device with the desired parameters, and - * returns 0 if successful, placing the actual hardware parameters in the - * structure pointed to by 'obtained'. If 'obtained' is NULL, the audio - * data passed to the callback function will be guaranteed to be in the - * requested format, and will be automatically converted to the hardware - * audio format if necessary. This function returns -1 if it failed - * to open the audio device, or couldn't set up the audio thread. - * - * The audio device starts out playing silence when it's opened, and should - * be enabled for playing by calling SDL_PauseAudio(0) when you are ready - * for your audio callback function to be called. Since the audio driver - * may modify the requested size of the audio buffer, you should allocate - * any local mixing buffers after you open the audio device. - * - * @sa SDL_AudioSpec - */ extern DECLSPEC int SDLCALL SDL_OpenAudio(SDL_AudioSpec *desired, SDL_AudioSpec *obtained); - -typedef enum { - SDL_AUDIO_STOPPED = 0, - SDL_AUDIO_PLAYING, - SDL_AUDIO_PAUSED -} SDL_audiostatus; - -/** Get the current audio state */ -extern DECLSPEC SDL_audiostatus SDLCALL SDL_GetAudioStatus(void); - -/** - * This function pauses and unpauses the audio callback processing. - * It should be called with a parameter of 0 after opening the audio - * device to start playing sound. This is so you can safely initialize - * data for your callback function after opening the audio device. - * Silence will be written to the audio device during the pause. - */ extern DECLSPEC void SDLCALL SDL_PauseAudio(int pause_on); - -/** - * This function loads a WAVE from the data source, automatically freeing - * that source if 'freesrc' is non-zero. For example, to load a WAVE file, - * you could do: - * @code SDL_LoadWAV_RW(SDL_RWFromFile("sample.wav", "rb"), 1, ...); @endcode - * - * If this function succeeds, it returns the given SDL_AudioSpec, - * filled with the audio data format of the wave data, and sets - * 'audio_buf' to a malloc()'d buffer containing the audio data, - * and sets 'audio_len' to the length of that audio buffer, in bytes. - * You need to free the audio buffer with SDL_FreeWAV() when you are - * done with it. - * - * This function returns NULL and sets the SDL error message if the - * wave file cannot be opened, uses an unknown data format, or is - * corrupt. Currently raw and MS-ADPCM WAVE files are supported. - */ +extern DECLSPEC void SDLCALL SDL_CloseAudio(void); +extern DECLSPEC SDL_audiostatus SDLCALL SDL_GetAudioStatus(void); +extern DECLSPEC void SDLCALL SDL_LockAudio(void); +extern DECLSPEC void SDLCALL SDL_UnlockAudio(void); extern DECLSPEC SDL_AudioSpec * SDLCALL SDL_LoadWAV_RW(SDL_RWops *src, int freesrc, SDL_AudioSpec *spec, Uint8 **audio_buf, Uint32 *audio_len); - -/** Compatibility convenience function -- loads a WAV from a file */ -#define SDL_LoadWAV(file, spec, audio_buf, audio_len) \ - SDL_LoadWAV_RW(SDL_RWFromFile(file, "rb"),1, spec,audio_buf,audio_len) - -/** - * This function frees data previously allocated with SDL_LoadWAV_RW() - */ extern DECLSPEC void SDLCALL SDL_FreeWAV(Uint8 *audio_buf); - -/** - * This function takes a source format and rate and a destination format - * and rate, and initializes the 'cvt' structure with information needed - * by SDL_ConvertAudio() to convert a buffer of audio data from one format - * to the other. - * - * @return This function returns 0, or -1 if there was an error. - */ -extern DECLSPEC int SDLCALL SDL_BuildAudioCVT(SDL_AudioCVT *cvt, - Uint16 src_format, Uint8 src_channels, int src_rate, - Uint16 dst_format, Uint8 dst_channels, int dst_rate); - -/** - * Once you have initialized the 'cvt' structure using SDL_BuildAudioCVT(), - * created an audio buffer cvt->buf, and filled it with cvt->len bytes of - * audio data in the source format, this function will convert it in-place - * to the desired format. - * The data conversion may expand the size of the audio data, so the buffer - * cvt->buf should be allocated after the cvt structure is initialized by - * SDL_BuildAudioCVT(), and should be cvt->len*cvt->len_mult bytes long. - */ +extern DECLSPEC int SDLCALL SDL_BuildAudioCVT(SDL_AudioCVT *cvt, Uint16 src_format, Uint8 src_channels, int src_rate, Uint16 dst_format, Uint8 dst_channels, int dst_rate); extern DECLSPEC int SDLCALL SDL_ConvertAudio(SDL_AudioCVT *cvt); - - -#define SDL_MIX_MAXVOLUME 128 -/** - * This takes two audio buffers of the playing audio format and mixes - * them, performing addition, volume adjustment, and overflow clipping. - * The volume ranges from 0 - 128, and should be set to SDL_MIX_MAXVOLUME - * for full audio volume. Note this does not change hardware volume. - * This is provided for convenience -- you can mix your own audio data. - */ extern DECLSPEC void SDLCALL SDL_MixAudio(Uint8 *dst, const Uint8 *src, Uint32 len, int volume); -/** - * @name Audio Locks - * The lock manipulated by these functions protects the callback function. - * During a LockAudio/UnlockAudio pair, you can be guaranteed that the - * callback function is not running. Do not call these from the callback - * function or you will cause deadlock. - */ -/*@{*/ -extern DECLSPEC void SDLCALL SDL_LockAudio(void); -extern DECLSPEC void SDLCALL SDL_UnlockAudio(void); -/*@}*/ - -/** - * This function shuts down audio processing and closes the audio device. - */ -extern DECLSPEC void SDLCALL SDL_CloseAudio(void); +#define SDL_LoadWAV(file, spec, audio_buf, audio_len) SDL_LoadWAV_RW(SDL_RWFromFile(file, "rb"),1, spec,audio_buf,audio_len) +#include -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} #endif -#include "close_code.h" - -#endif /* _SDL_audio_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_byteorder.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_byteorder.h index 47332c3df..ef6ff664e 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_byteorder.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_byteorder.h @@ -1,29 +1,28 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** - * @file SDL_byteorder.h - * @deprecated Use SDL_endian.h instead - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ + +/* This is just a compatibility header in real 1.2, too. */ +#include -/* DEPRECATED */ -#include "SDL_endian.h" diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_cdrom.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_cdrom.h index febb19dcc..2aefc4df1 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_cdrom.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_cdrom.h @@ -1,202 +1,95 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** - * @file SDL_cdrom.h - * This is the CD-audio control API for Simple DirectMedia Layer - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_cdrom_h #define _SDL_cdrom_h -#include "SDL_stdinc.h" -#include "SDL_error.h" +#include +#include -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif +#include -/** - * @file SDL_cdrom.h - * In order to use these functions, SDL_Init() must have been called - * with the SDL_INIT_CDROM flag. This causes SDL to scan the system - * for CD-ROM drives, and load appropriate drivers. - */ - -/** The maximum number of CD-ROM tracks on a disk */ -#define SDL_MAX_TRACKS 99 - -/** @name Track Types - * The types of CD-ROM track possible - */ -/*@{*/ -#define SDL_AUDIO_TRACK 0x00 -#define SDL_DATA_TRACK 0x04 -/*@}*/ - -/** The possible states which a CD-ROM drive can be in. */ -typedef enum { - CD_TRAYEMPTY, - CD_STOPPED, - CD_PLAYING, - CD_PAUSED, - CD_ERROR = -1 -} CDstatus; +#define SDL_MAX_TRACKS 99 -/** Given a status, returns true if there's a disk in the drive */ -#define CD_INDRIVE(status) ((int)(status) > 0) +typedef enum CDstatus +{ + CD_TRAYEMPTY, + CD_STOPPED, + CD_PLAYING, + CD_PAUSED, + CD_ERROR = -1 +} CDstatus; -typedef struct SDL_CDtrack { - Uint8 id; /**< Track number */ - Uint8 type; /**< Data or audio track */ - Uint16 unused; - Uint32 length; /**< Length, in frames, of this track */ - Uint32 offset; /**< Offset, in frames, from start of disk */ +typedef struct SDL_CDtrack +{ + Uint8 id; + Uint8 type; + Uint16 unused; + Uint32 length; + Uint32 offset; } SDL_CDtrack; -/** This structure is only current as of the last call to SDL_CDStatus() */ -typedef struct SDL_CD { - int id; /**< Private drive identifier */ - CDstatus status; /**< Current drive status */ - - /** The rest of this structure is only valid if there's a CD in drive */ - /*@{*/ - int numtracks; /**< Number of tracks on disk */ - int cur_track; /**< Current track position */ - int cur_frame; /**< Current frame offset within current track */ - SDL_CDtrack track[SDL_MAX_TRACKS+1]; - /*@}*/ +typedef struct SDL_CD +{ + int id; + CDstatus status; + int numtracks; + int cur_track; + int cur_frame; + SDL_CDtrack track[SDL_MAX_TRACKS+1]; } SDL_CD; -/** @name Frames / MSF Conversion Functions - * Conversion functions from frames to Minute/Second/Frames and vice versa - */ -/*@{*/ -#define CD_FPS 75 -#define FRAMES_TO_MSF(f, M,S,F) { \ - int value = f; \ - *(F) = value%CD_FPS; \ - value /= CD_FPS; \ - *(S) = value%60; \ - value /= 60; \ - *(M) = value; \ +#define SDL_AUDIO_TRACK 0x00 +#define SDL_DATA_TRACK 0x04 +#define CD_INDRIVE(status) (status > CD_TRAYEMPTY) +#define CD_FPS 75 + +#define FRAMES_TO_MSF(f, M,S,F) { \ + int value = f; \ + *(F) = value % CD_FPS; \ + value /= CD_FPS; \ + *(S) = value % 60; \ + value /= 60; \ + *(M) = value; \ } -#define MSF_TO_FRAMES(M, S, F) ((M)*60*CD_FPS+(S)*CD_FPS+(F)) -/*@}*/ -/* CD-audio API functions: */ +#define MSF_TO_FRAMES(M, S, F) ((M) * 60 * CD_FPS + (S) * CD_FPS + (F)) -/** - * Returns the number of CD-ROM drives on the system, or -1 if - * SDL_Init() has not been called with the SDL_INIT_CDROM flag. - */ extern DECLSPEC int SDLCALL SDL_CDNumDrives(void); - -/** - * Returns a human-readable, system-dependent identifier for the CD-ROM. - * Example: - * - "/dev/cdrom" - * - "E:" - * - "/dev/disk/ide/1/master" - */ extern DECLSPEC const char * SDLCALL SDL_CDName(int drive); - -/** - * Opens a CD-ROM drive for access. It returns a drive handle on success, - * or NULL if the drive was invalid or busy. This newly opened CD-ROM - * becomes the default CD used when other CD functions are passed a NULL - * CD-ROM handle. - * Drives are numbered starting with 0. Drive 0 is the system default CD-ROM. - */ extern DECLSPEC SDL_CD * SDLCALL SDL_CDOpen(int drive); - -/** - * This function returns the current status of the given drive. - * If the drive has a CD in it, the table of contents of the CD and current - * play position of the CD will be stored in the SDL_CD structure. - */ extern DECLSPEC CDstatus SDLCALL SDL_CDStatus(SDL_CD *cdrom); - -/** - * Play the given CD starting at 'start_track' and 'start_frame' for 'ntracks' - * tracks and 'nframes' frames. If both 'ntrack' and 'nframe' are 0, play - * until the end of the CD. This function will skip data tracks. - * This function should only be called after calling SDL_CDStatus() to - * get track information about the CD. - * For example: - * @code - * // Play entire CD: - * if ( CD_INDRIVE(SDL_CDStatus(cdrom)) ) - * SDL_CDPlayTracks(cdrom, 0, 0, 0, 0); - * // Play last track: - * if ( CD_INDRIVE(SDL_CDStatus(cdrom)) ) { - * SDL_CDPlayTracks(cdrom, cdrom->numtracks-1, 0, 0, 0); - * } - * // Play first and second track and 10 seconds of third track: - * if ( CD_INDRIVE(SDL_CDStatus(cdrom)) ) - * SDL_CDPlayTracks(cdrom, 0, 0, 2, 10); - * @endcode - * - * @return This function returns 0, or -1 if there was an error. - */ -extern DECLSPEC int SDLCALL SDL_CDPlayTracks(SDL_CD *cdrom, - int start_track, int start_frame, int ntracks, int nframes); - -/** - * Play the given CD starting at 'start' frame for 'length' frames. - * @return It returns 0, or -1 if there was an error. - */ +extern DECLSPEC int SDLCALL SDL_CDPlayTracks(SDL_CD *cdrom, int start_track, int start_frame, int ntracks, int nframes); extern DECLSPEC int SDLCALL SDL_CDPlay(SDL_CD *cdrom, int start, int length); - -/** Pause play - * @return returns 0, or -1 on error - */ extern DECLSPEC int SDLCALL SDL_CDPause(SDL_CD *cdrom); - -/** Resume play - * @return returns 0, or -1 on error - */ extern DECLSPEC int SDLCALL SDL_CDResume(SDL_CD *cdrom); - -/** Stop play - * @return returns 0, or -1 on error - */ extern DECLSPEC int SDLCALL SDL_CDStop(SDL_CD *cdrom); - -/** Eject CD-ROM - * @return returns 0, or -1 on error - */ extern DECLSPEC int SDLCALL SDL_CDEject(SDL_CD *cdrom); - -/** Closes the handle for the CD-ROM drive */ extern DECLSPEC void SDLCALL SDL_CDClose(SDL_CD *cdrom); +#include -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} #endif -#include "close_code.h" -#endif /* _SDL_video_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_config.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_config.h index 09ba38a71..b9a74fe1d 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_config.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_config.h @@ -1,45 +1,181 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ + +/* This is all kinda dicey. Just pretend we have most of these no matter what. + Hopefully most apps don't actually rely on this. :/ These defines would + need to be correct (and usually generated by a configure script) if these + headers were to be used to build the real SDL 1.2, but they are only + intended for building apps against sdl12-compat. */ + #ifndef _SDL_config_h #define _SDL_config_h -#include "SDL_platform.h" - -/* Add any platform that doesn't build using the configure system */ -#if defined(__DREAMCAST__) -#include "SDL_config_dreamcast.h" -#elif defined(__MACOS__) -#include "SDL_config_macos.h" -#elif defined(__MACOSX__) -#include "SDL_config_macosx.h" -#elif defined(__SYMBIAN32__) -#include "SDL_config_symbian.h" /* must be before win32! */ -#elif defined(__WIN32__) -#include "SDL_config_win32.h" -#elif defined(__OS2__) -#include "SDL_config_os2.h" +#include + +/* Make sure that this isn't included by Visual C++ */ +#if defined(_MSC_VER) && (_MSC_VER < 1600) +typedef __int8 int8_t; +typedef unsigned __int8 uint8_t; +typedef __int16 int16_t; +typedef unsigned __int16 uint16_t; +typedef __int32 int32_t; +typedef unsigned __int32 uint32_t; +typedef __int64 int64_t; +typedef unsigned __int64 uint64_t; #else -#include "SDL_config_minimal.h" -#endif /* platform config */ +#include +#define HAVE_STDINT_H 1 +#endif + +#define SDL_HAS_64BIT_TYPE 1 + +#include +#define HAVE_STDARG_H 1 + +/* for now, let's try and say everything that we care about that isn't Windows +has these C runtime functions available. We're trying to avoid a configure +stage, though. Send patches if your platform lacks something. */ +#ifndef _WIN32 +#define HAVE_LIBC 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_STDIO_H 1 +#define STDC_HEADERS 1 +#define HAVE_STDLIB_H 1 +#define HAVE_MEMORY_H 1 +#define HAVE_STRING_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_CTYPE_H 1 +#define HAVE_MATH_H 1 +#endif + +#if defined(__linux__) || defined(__sun) +#define HAVE_ALLOCA_H 1 +#endif + +#if defined(__unix__) || defined(__APPLE__) +#define HAVE_ICONV_H 1 +#define HAVE_SIGNAL_H 1 +#endif + +#if defined(__powerpc__) +#define HAVE_ALTIVEC_H 1 +#endif + +/* SDL 1.2 never defines these for Windows to force SDL's internal implementation. */ +#ifndef _WIN32 +#define HAVE_GETENV 1 +#define HAVE_PUTENV 1 +#define HAVE_UNSETENV 1 +#endif + +/* for now, let's try and say everything that we care about that isn't Windows +has these C runtime functions available. We're trying to avoid a configure +stage, though. Send patches if your platform lacks something. */ +#ifndef _WIN32 +#define HAVE_MALLOC 1 +#define HAVE_CALLOC 1 +#define HAVE_REALLOC 1 +#define HAVE_FREE 1 +#define HAVE_ALLOCA 1 +#define HAVE_QSORT 1 +#define HAVE_ABS 1 +#define HAVE_MEMSET 1 +#define HAVE_MEMCPY 1 +#define HAVE_MEMMOVE 1 +#define HAVE_MEMCMP 1 +#define HAVE_STRLEN 1 +#define HAVE_STRDUP 1 +#define HAVE_STRCHR 1 +#define HAVE_STRRCHR 1 +#define HAVE_STRSTR 1 +#define HAVE_STRTOL 1 +#define HAVE_STRTOUL 1 +#define HAVE_STRTOLL 1 +#define HAVE_STRTOULL 1 +#define HAVE_STRTOD 1 +#define HAVE_STRCMP 1 +#define HAVE_STRNCMP 1 +#define HAVE_STRCASECMP 1 +#define HAVE_STRNCASECMP 1 +#define HAVE_SSCANF 1 +#ifndef __WATCOMC__ /* apparently Watcom C's snprintf is not to be trusted... */ +#define HAVE_SNPRINTF 1 +#define HAVE_VSNPRINTF 1 +#endif +#endif + +/* things that aren't necessarily in Linux, some are MSVC C runtime, some are BSD. Send patches. */ +#if 0 +#define HAVE_MALLOC_H 1 +#define HAVE_BCOPY 1 +#define HAVE_ATOI 1 +#define HAVE_ATOF 1 +#define HAVE_STRLCAT 1 +#define HAVE__STRREV 1 +#define HAVE__STRUPR 1 +#define HAVE__STRLWR 1 +#define HAVE_INDEX 1 +#define HAVE_RINDEX 1 +#define HAVE_ITOA 1 +#define HAVE__LTOA 1 +#define HAVE__UITOA 1 +#define HAVE__ULTOA 1 +#define HAVE__I64TOA 1 +#define HAVE__UI64TOA 1 +#define HAVE__STRTOI64 1 +#define HAVE__STRTOUI64 1 +#define HAVE__STRICMP 1 +#define HAVE__STRNICMP 1 +#define HAVE_GETAUXVAL 1 +#define HAVE_ELF_AUX_INFO 1 +#define HAVE_NANOSLEEP 1 +#define HAVE_CLOCK_GETTIME 1 +#define HAVE_GETPAGESIZE 1 +#define HAVE_MPROTECT 1 +#define HAVE_SEM_TIMEDWAIT 1 +#endif + +#if defined(__unix__) || defined(__APPLE__) +#define HAVE_ICONV 1 +#define HAVE_SIGACTION 1 +#define HAVE_SA_SIGACTION 1 +#define HAVE_SETJMP 1 +#endif + +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) /* macos and BSDs have this. */ +#define HAVE_STRLCPY 1 +#endif + +/* Don't define most of the SDL backends, under the assumption checking for these against the headers won't work anyhow. + The exception is the X11 backend; you need its define to know if you can use its syswm interface. */ + +# if defined(__unix__) && !defined(__APPLE__) && defined(__has_include) +# if __has_include() +# define SDL_VIDEO_DRIVER_X11 1 +# endif +# endif #endif /* _SDL_config_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_config_macosx.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_config_macosx.h deleted file mode 100644 index c05712ee4..000000000 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_config_macosx.h +++ /dev/null @@ -1,151 +0,0 @@ -/* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org -*/ - -#ifndef _SDL_config_macosx_h -#define _SDL_config_macosx_h - -#include "SDL_platform.h" - -/* This gets us MAC_OS_X_VERSION_MIN_REQUIRED... */ -#include - -/* This is a set of defines to configure the SDL features */ - -#define SDL_HAS_64BIT_TYPE 1 - -/* Useful headers */ -/* If we specified an SDK or have a post-PowerPC chip, then alloca.h exists. */ -#if ( (MAC_OS_X_VERSION_MIN_REQUIRED >= 1030) || (!defined(__POWERPC__)) ) -#define HAVE_ALLOCA_H 1 -#endif -#define HAVE_SYS_TYPES_H 1 -#define HAVE_STDIO_H 1 -#define STDC_HEADERS 1 -#define HAVE_STRING_H 1 -#define HAVE_INTTYPES_H 1 -#define HAVE_STDINT_H 1 -#define HAVE_CTYPE_H 1 -#define HAVE_MATH_H 1 -#define HAVE_SIGNAL_H 1 - -/* C library functions */ -#define HAVE_MALLOC 1 -#define HAVE_CALLOC 1 -#define HAVE_REALLOC 1 -#define HAVE_FREE 1 -#define HAVE_ALLOCA 1 -#define HAVE_GETENV 1 -#define HAVE_PUTENV 1 -#define HAVE_UNSETENV 1 -#define HAVE_QSORT 1 -#define HAVE_ABS 1 -#define HAVE_BCOPY 1 -#define HAVE_MEMSET 1 -#define HAVE_MEMCPY 1 -#define HAVE_MEMMOVE 1 -#define HAVE_MEMCMP 1 -#define HAVE_STRLEN 1 -#define HAVE_STRLCPY 1 -#define HAVE_STRLCAT 1 -#define HAVE_STRDUP 1 -#define HAVE_STRCHR 1 -#define HAVE_STRRCHR 1 -#define HAVE_STRSTR 1 -#define HAVE_STRTOL 1 -#define HAVE_STRTOUL 1 -#define HAVE_STRTOLL 1 -#define HAVE_STRTOULL 1 -#define HAVE_STRTOD 1 -#define HAVE_ATOI 1 -#define HAVE_ATOF 1 -#define HAVE_STRCMP 1 -#define HAVE_STRNCMP 1 -#define HAVE_STRCASECMP 1 -#define HAVE_STRNCASECMP 1 -#define HAVE_SSCANF 1 -#define HAVE_SNPRINTF 1 -#define HAVE_VSNPRINTF 1 -#define HAVE_SIGACTION 1 -#define HAVE_SETJMP 1 -#define HAVE_NANOSLEEP 1 - -/* Enable various audio drivers */ -#define SDL_AUDIO_DRIVER_COREAUDIO 1 -#define SDL_AUDIO_DRIVER_DISK 1 -#define SDL_AUDIO_DRIVER_DUMMY 1 - -/* Enable various cdrom drivers */ -#define SDL_CDROM_MACOSX 1 - -/* Enable various input drivers */ -#define SDL_JOYSTICK_IOKIT 1 - -/* Enable various shared object loading systems */ -#ifdef __ppc__ -/* For Mac OS X 10.2 compatibility */ -#define SDL_LOADSO_DLCOMPAT 1 -#else -#define SDL_LOADSO_DLOPEN 1 -#endif - -/* Enable various threading systems */ -#define SDL_THREAD_PTHREAD 1 -#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1 - -/* Enable various timer systems */ -#define SDL_TIMER_UNIX 1 - -/* Enable various video drivers */ -#define SDL_VIDEO_DRIVER_DUMMY 1 -#if ((defined TARGET_API_MAC_CARBON) && (TARGET_API_MAC_CARBON)) -#define SDL_VIDEO_DRIVER_TOOLBOX 1 -#else -#define SDL_VIDEO_DRIVER_QUARTZ 1 -#endif -#define SDL_VIDEO_DRIVER_DGA 1 -#define SDL_VIDEO_DRIVER_X11 1 -#define SDL_VIDEO_DRIVER_X11_DGAMOUSE 1 -#define SDL_VIDEO_DRIVER_X11_DYNAMIC "/usr/X11R6/lib/libX11.6.dylib" -#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/usr/X11R6/lib/libXext.6.dylib" -#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/usr/X11R6/lib/libXrandr.2.dylib" -#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER "/usr/X11R6/lib/libXrender.1.dylib" -#define SDL_VIDEO_DRIVER_X11_VIDMODE 1 -#define SDL_VIDEO_DRIVER_X11_XINERAMA 1 -#define SDL_VIDEO_DRIVER_X11_XME 1 -#define SDL_VIDEO_DRIVER_X11_XRANDR 1 -#define SDL_VIDEO_DRIVER_X11_XV 1 -#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1 - -/* Enable OpenGL support */ -#define SDL_VIDEO_OPENGL 1 -#define SDL_VIDEO_OPENGL_GLX 1 - -/* Disable screensaver */ -#define SDL_VIDEO_DISABLE_SCREENSAVER 1 - -/* Enable assembly routines */ -#define SDL_ASSEMBLY_ROUTINES 1 -#ifdef __ppc__ -#define SDL_ALTIVEC_BLITTERS 1 -#endif - -#endif /* _SDL_config_macosx_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_copying.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_copying.h index b5b64f299..09d52f34a 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_copying.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_copying.h @@ -1,22 +1,28 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ + +/* this is just an empty header in SDL 1.2 that shows the copyright, which was +LGPL 2.1; in sdl12-compat, the library and headers are zlib-licensed. */ + diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_cpuinfo.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_cpuinfo.h index 4200d6d17..14d951e93 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_cpuinfo.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_cpuinfo.h @@ -1,69 +1,44 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** - * @file SDL_cpuinfo.h - * CPU feature detection for SDL - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_cpuinfo_h #define _SDL_cpuinfo_h -#include "SDL_stdinc.h" +#include -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif +#include -/** This function returns true if the CPU has the RDTSC instruction */ extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void); - -/** This function returns true if the CPU has MMX features */ extern DECLSPEC SDL_bool SDLCALL SDL_HasMMX(void); - -/** This function returns true if the CPU has MMX Ext. features */ extern DECLSPEC SDL_bool SDLCALL SDL_HasMMXExt(void); - -/** This function returns true if the CPU has 3DNow features */ extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNow(void); - -/** This function returns true if the CPU has 3DNow! Ext. features */ extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNowExt(void); - -/** This function returns true if the CPU has SSE features */ extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE(void); - -/** This function returns true if the CPU has SSE2 features */ extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE2(void); - -/** This function returns true if the CPU has AltiVec features */ extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec(void); -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif -#include "close_code.h" +#include -#endif /* _SDL_cpuinfo_h */ +#endif diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_endian.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_endian.h index 4a99d0e82..a12ae9fa5 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_endian.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_endian.h @@ -1,44 +1,43 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** - * @file SDL_endian.h - * Functions for reading and writing endian-specific values - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_endian_h #define _SDL_endian_h -#include "SDL_stdinc.h" +#include -/** @name SDL_ENDIANs - * The two types of endianness - */ -/*@{*/ -#define SDL_LIL_ENDIAN 1234 -#define SDL_BIG_ENDIAN 4321 -/*@}*/ +#if defined(_MSC_VER) && (_MSC_VER >= 1400) +#include +#endif + +/* These are all lifted out of SDL2's zlib-licensed headers. */ -#ifndef SDL_BYTEORDER /* Not defined in SDL_config.h? */ +#define SDL_LIL_ENDIAN 1234 +#define SDL_BIG_ENDIAN 4321 + +#ifndef SDL_BYTEORDER /* Not defined in SDL_config.h? */ #ifdef __linux__ #include #define SDL_BYTEORDER __BYTE_ORDER @@ -63,202 +62,224 @@ (defined(__MIPS__) && defined(__MIPSEB__)) || \ defined(__ppc__) || defined(__POWERPC__) || defined(__powerpc__) || defined(__PPC__) || \ defined(__sparc__) -#define SDL_BYTEORDER SDL_BIG_ENDIAN +#define SDL_BYTEORDER SDL_BIG_ENDIAN #else -#define SDL_BYTEORDER SDL_LIL_ENDIAN +#define SDL_BYTEORDER SDL_LIL_ENDIAN #endif #endif /* __linux__ */ #endif /* !SDL_BYTEORDER */ -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { +#include + +/* various modern compilers may have builtin swap */ +#if defined (__has_builtin) +#define _SDL_HAS_BUILTIN(x) __has_builtin(x) +#else +#define _SDL_HAS_BUILTIN(x) 0 #endif -/** - * @name SDL_Swap Functions - * Use inline functions for compilers that support them, and static - * functions for those that do not. Because these functions become - * static for compilers that do not support inline functions, this - * header should only be included in files that actually use them. - */ -/*@{*/ -#if defined(__GNUC__) && defined(__i386__) && \ - !(__GNUC__ == 2 && __GNUC_MINOR__ <= 95 /* broken gcc version */) -static __inline__ Uint16 SDL_Swap16(Uint16 x) +#if defined(__GNUC__) || defined(__clang__) +# define HAS_BUILTIN_BSWAP16 (_SDL_HAS_BUILTIN(__builtin_bswap16)) || \ + (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)) +# define HAS_BUILTIN_BSWAP32 (_SDL_HAS_BUILTIN(__builtin_bswap32)) || \ + (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) +# define HAS_BUILTIN_BSWAP64 (_SDL_HAS_BUILTIN(__builtin_bswap64)) || \ + (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) + + /* this one is broken */ +# define HAS_BROKEN_BSWAP (__GNUC__ == 2 && __GNUC_MINOR__ <= 95) +#else +# define HAS_BUILTIN_BSWAP16 0 +# define HAS_BUILTIN_BSWAP32 0 +# define HAS_BUILTIN_BSWAP64 0 +# define HAS_BROKEN_BSWAP 0 +#endif + +#if HAS_BUILTIN_BSWAP16 +#define SDL_Swap16(x) __builtin_bswap16(x) +#elif defined(_MSC_VER) && (_MSC_VER >= 1400) +#pragma intrinsic(_byteswap_ushort) +#define SDL_Swap16(x) _byteswap_ushort(x) +#elif defined(__i386__) && !HAS_BROKEN_BSWAP +static __inline__ Uint16 +SDL_Swap16(Uint16 x) { - __asm__("xchgb %b0,%h0" : "=q" (x) : "0" (x)); - return x; + __asm__("xchgb %b0,%h0": "=q"(x):"0"(x)); + return x; } -#elif defined(__GNUC__) && defined(__x86_64__) -static __inline__ Uint16 SDL_Swap16(Uint16 x) +#elif defined(__x86_64__) +static __inline__ Uint16 +SDL_Swap16(Uint16 x) { - __asm__("xchgb %b0,%h0" : "=Q" (x) : "0" (x)); - return x; + __asm__("xchgb %b0,%h0": "=Q"(x):"0"(x)); + return x; } -#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__)) -static __inline__ Uint16 SDL_Swap16(Uint16 x) +#elif (defined(__powerpc__) || defined(__ppc__)) +static __inline__ Uint16 +SDL_Swap16(Uint16 x) { - int result; + int result; - __asm__("rlwimi %0,%2,8,16,23" : "=&r" (result) : "0" (x >> 8), "r" (x)); - return (Uint16)result; -} -#elif defined(__GNUC__) && defined(__aarch64__) -static __inline__ Uint16 SDL_Swap16(Uint16 x) -{ - return __builtin_bswap16(x); + __asm__("rlwimi %0,%2,8,16,23": "=&r"(result):"0"(x >> 8), "r"(x)); + return (Uint16)result; } -#elif defined(__GNUC__) && (defined(__m68k__) && !defined(__mcoldfire__)) -static __inline__ Uint16 SDL_Swap16(Uint16 x) +#elif (defined(__m68k__) && !defined(__mcoldfire__)) +static __inline__ Uint16 +SDL_Swap16(Uint16 x) { - __asm__("rorw #8,%0" : "=d" (x) : "0" (x) : "cc"); - return x; + __asm__("rorw #8,%0": "=d"(x): "0"(x):"cc"); + return x; } #elif defined(__WATCOMC__) && defined(__386__) extern __inline Uint16 SDL_Swap16(Uint16); #pragma aux SDL_Swap16 = \ - "xchg al, ah" \ - parm [ax] \ - modify [ax]; + "xchg al, ah" \ + parm [ax] \ + modify [ax]; #else -static __inline__ Uint16 SDL_Swap16(Uint16 x) { - return SDL_static_cast(Uint16, ((x<<8)|(x>>8))); +static __inline__ Uint16 +SDL_Swap16(Uint16 x) +{ + return SDL_static_cast(Uint16, ((x << 8) | (x >> 8))); } #endif -#if defined(__GNUC__) && defined(__i386__) && \ - !(__GNUC__ == 2 && __GNUC_MINOR__ <= 95 /* broken gcc version */) -static __inline__ Uint32 SDL_Swap32(Uint32 x) +#if HAS_BUILTIN_BSWAP32 +#define SDL_Swap32(x) __builtin_bswap32(x) +#elif defined(_MSC_VER) && (_MSC_VER >= 1400) +#pragma intrinsic(_byteswap_ulong) +#define SDL_Swap32(x) _byteswap_ulong(x) +#elif defined(__i386__) && !HAS_BROKEN_BSWAP +static __inline__ Uint32 +SDL_Swap32(Uint32 x) { - __asm__("bswap %0" : "=r" (x) : "0" (x)); - return x; + __asm__("bswap %0": "=r"(x):"0"(x)); + return x; } -#elif defined(__GNUC__) && defined(__x86_64__) -static __inline__ Uint32 SDL_Swap32(Uint32 x) +#elif defined(__x86_64__) +static __inline__ Uint32 +SDL_Swap32(Uint32 x) { - __asm__("bswapl %0" : "=r" (x) : "0" (x)); - return x; + __asm__("bswapl %0": "=r"(x):"0"(x)); + return x; } -#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__)) -static __inline__ Uint32 SDL_Swap32(Uint32 x) +#elif (defined(__powerpc__) || defined(__ppc__)) +static __inline__ Uint32 +SDL_Swap32(Uint32 x) { - Uint32 result; + Uint32 result; - __asm__("rlwimi %0,%2,24,16,23" : "=&r" (result) : "0" (x>>24), "r" (x)); - __asm__("rlwimi %0,%2,8,8,15" : "=&r" (result) : "0" (result), "r" (x)); - __asm__("rlwimi %0,%2,24,0,7" : "=&r" (result) : "0" (result), "r" (x)); - return result; -} -#elif defined(__GNUC__) && defined(__aarch64__) -static __inline__ Uint32 SDL_Swap32(Uint32 x) -{ - return __builtin_bswap32(x); + __asm__("rlwimi %0,%2,24,16,23": "=&r"(result): "0" (x>>24), "r"(x)); + __asm__("rlwimi %0,%2,8,8,15" : "=&r"(result): "0" (result), "r"(x)); + __asm__("rlwimi %0,%2,24,0,7" : "=&r"(result): "0" (result), "r"(x)); + return result; } -#elif defined(__GNUC__) && (defined(__m68k__) && !defined(__mcoldfire__)) -static __inline__ Uint32 SDL_Swap32(Uint32 x) +#elif (defined(__m68k__) && !defined(__mcoldfire__)) +static __inline__ Uint32 +SDL_Swap32(Uint32 x) { - __asm__("rorw #8,%0\n\tswap %0\n\trorw #8,%0" : "=d" (x) : "0" (x) : "cc"); - return x; + __asm__("rorw #8,%0\n\tswap %0\n\trorw #8,%0": "=d"(x): "0"(x):"cc"); + return x; } #elif defined(__WATCOMC__) && defined(__386__) extern __inline Uint32 SDL_Swap32(Uint32); #pragma aux SDL_Swap32 = \ - "bswap eax" \ - parm [eax] \ - modify [eax]; + "bswap eax" \ + parm [eax] \ + modify [eax]; #else -static __inline__ Uint32 SDL_Swap32(Uint32 x) { - return SDL_static_cast(Uint32, ((x<<24)|((x<<8)&0x00FF0000)|((x>>8)&0x0000FF00)|(x>>24))); +static __inline__ Uint32 +SDL_Swap32(Uint32 x) +{ + return SDL_static_cast(Uint32, ((x << 24) | ((x << 8) & 0x00FF0000) | + ((x >> 8) & 0x0000FF00) | (x >> 24))); } #endif -#ifdef SDL_HAS_64BIT_TYPE /**/ -#if defined(__GNUC__) && defined(__i386__) && \ - !(__GNUC__ == 2 && __GNUC_MINOR__ <= 95 /* broken gcc version */) -static __inline__ Uint64 SDL_Swap64(Uint64 x) +#if HAS_BUILTIN_BSWAP64 +#define SDL_Swap64(x) __builtin_bswap64(x) +#elif defined(_MSC_VER) && (_MSC_VER >= 1400) +#pragma intrinsic(_byteswap_uint64) +#define SDL_Swap64(x) _byteswap_uint64(x) +#elif defined(__i386__) && !HAS_BROKEN_BSWAP +static __inline__ Uint64 +SDL_Swap64(Uint64 x) { - union { - struct { Uint32 a,b; } s; - Uint64 u; - } v; - v.u = x; - __asm__("bswapl %0 ; bswapl %1 ; xchgl %0,%1" - : "=r" (v.s.a), "=r" (v.s.b) - : "0" (v.s.a), "1" (v.s.b)); - return v.u; + union { + struct { + Uint32 a, b; + } s; + Uint64 u; + } v; + v.u = x; + __asm__("bswapl %0 ; bswapl %1 ; xchgl %0,%1" + : "=r"(v.s.a), "=r"(v.s.b) + : "0" (v.s.a), "1"(v.s.b)); + return v.u; } -#elif defined(__GNUC__) && defined(__aarch64__) -static __inline__ Uint64 SDL_Swap64(Uint64 x) +#elif defined(__x86_64__) +static __inline__ Uint64 +SDL_Swap64(Uint64 x) { - return __builtin_bswap64(x); -} -#elif defined(__GNUC__) && defined(__x86_64__) -static __inline__ Uint64 SDL_Swap64(Uint64 x) -{ - __asm__("bswapq %0" : "=r" (x) : "0" (x)); - return x; + __asm__("bswapq %0": "=r"(x):"0"(x)); + return x; } #elif defined(__WATCOMC__) && defined(__386__) extern __inline Uint64 SDL_Swap64(Uint64); #pragma aux SDL_Swap64 = \ - "bswap eax" \ - "bswap edx" \ - "xchg eax,edx" \ - parm [eax edx] \ - modify [eax edx]; + "bswap eax" \ + "bswap edx" \ + "xchg eax,edx" \ + parm [eax edx] \ + modify [eax edx]; #else -static __inline__ Uint64 SDL_Swap64(Uint64 x) +static __inline__ Uint64 +SDL_Swap64(Uint64 x) { - Uint32 hi, lo; + Uint32 hi, lo; - /* Separate into high and low 32-bit values and swap them */ - lo = SDL_static_cast(Uint32, x & 0xFFFFFFFF); - x >>= 32; - hi = SDL_static_cast(Uint32, x & 0xFFFFFFFF); - x = SDL_Swap32(lo); - x <<= 32; - x |= SDL_Swap32(hi); - return (x); + /* Separate into high and low 32-bit values and swap them */ + lo = SDL_static_cast(Uint32, x & 0xFFFFFFFF); + x >>= 32; + hi = SDL_static_cast(Uint32, x & 0xFFFFFFFF); + x = SDL_Swap32(lo); + x <<= 32; + x |= SDL_Swap32(hi); + return (x); } #endif -#else /* SDL_HAS_64BIT_TYPE */ -/* This is mainly to keep compilers from complaining in SDL code. - * If there is no real 64-bit datatype, then compilers will complain about - * the fake 64-bit datatype that SDL provides when it compiles user code. - */ -#define SDL_Swap64(X) (X) -#endif /* SDL_HAS_64BIT_TYPE */ -/*@}*/ + + +/* remove extra macros */ +#undef HAS_BROKEN_BSWAP +#undef HAS_BUILTIN_BSWAP16 +#undef HAS_BUILTIN_BSWAP32 +#undef HAS_BUILTIN_BSWAP64 +#undef _SDL_HAS_BUILTIN /** - * @name SDL_SwapLE and SDL_SwapBE Functions - * Byteswap item from the specified endianness to the native endianness + * \name Swap to native + * Byteswap item from the specified endianness to the native endianness. */ -/*@{*/ +/* @{ */ #if SDL_BYTEORDER == SDL_LIL_ENDIAN -#define SDL_SwapLE16(X) (X) -#define SDL_SwapLE32(X) (X) -#define SDL_SwapLE64(X) (X) -#define SDL_SwapBE16(X) SDL_Swap16(X) -#define SDL_SwapBE32(X) SDL_Swap32(X) -#define SDL_SwapBE64(X) SDL_Swap64(X) +#define SDL_SwapLE16(X) (X) +#define SDL_SwapLE32(X) (X) +#define SDL_SwapLE64(X) (X) +#define SDL_SwapBE16(X) SDL_Swap16(X) +#define SDL_SwapBE32(X) SDL_Swap32(X) +#define SDL_SwapBE64(X) SDL_Swap64(X) #else -#define SDL_SwapLE16(X) SDL_Swap16(X) -#define SDL_SwapLE32(X) SDL_Swap32(X) -#define SDL_SwapLE64(X) SDL_Swap64(X) -#define SDL_SwapBE16(X) (X) -#define SDL_SwapBE32(X) (X) -#define SDL_SwapBE64(X) (X) +#define SDL_SwapLE16(X) SDL_Swap16(X) +#define SDL_SwapLE32(X) SDL_Swap32(X) +#define SDL_SwapLE64(X) SDL_Swap64(X) +#define SDL_SwapBE16(X) (X) +#define SDL_SwapBE32(X) (X) +#define SDL_SwapBE64(X) (X) #endif -/*@}*/ +/* @} *//* Swap to native */ -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif -#include "close_code.h" +#include #endif /* _SDL_endian_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_error.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_error.h index 4e1cce3b1..1d74c2f25 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_error.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_error.h @@ -1,72 +1,54 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** - * @file SDL_error.h - * Simple error message routines for SDL - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_error_h #define _SDL_error_h -#include "SDL_stdinc.h" +#include -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif +#include + +typedef enum SDL_errorcode +{ + SDL_ENOMEM, + SDL_EFREAD, + SDL_EFWRITE, + SDL_EFSEEK, + SDL_UNSUPPORTED, + SDL_LASTERROR +} SDL_errorcode; -/** - * @name Public functions - */ -/*@{*/ extern DECLSPEC void SDLCALL SDL_SetError(const char *fmt, ...); extern DECLSPEC char * SDLCALL SDL_GetError(void); extern DECLSPEC void SDLCALL SDL_ClearError(void); -/*@}*/ - -/** - * @name Private functions - * @internal Private error message function - used internally - */ -/*@{*/ -#define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM) -#define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED) -typedef enum { - SDL_ENOMEM, - SDL_EFREAD, - SDL_EFWRITE, - SDL_EFSEEK, - SDL_UNSUPPORTED, - SDL_LASTERROR -} SDL_errorcode; extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code); -/*@}*/ -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} +#define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM) +#define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED) + +#include + #endif -#include "close_code.h" -#endif /* _SDL_error_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_events.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_events.h index 94b420251..2f7fa5b8d 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_events.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_events.h @@ -1,356 +1,242 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** - * @file SDL_events.h - * Include file for SDL event handling - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_events_h #define _SDL_events_h -#include "SDL_stdinc.h" -#include "SDL_error.h" -#include "SDL_active.h" -#include "SDL_keyboard.h" -#include "SDL_mouse.h" -#include "SDL_joystick.h" -#include "SDL_quit.h" - -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** @name General keyboard/mouse state definitions */ -/*@{*/ -#define SDL_RELEASED 0 -#define SDL_PRESSED 1 -/*@}*/ - -/** Event enumerations */ -typedef enum { - SDL_NOEVENT = 0, /**< Unused (do not remove) */ - SDL_ACTIVEEVENT, /**< Application loses/gains visibility */ - SDL_KEYDOWN, /**< Keys pressed */ - SDL_KEYUP, /**< Keys released */ - SDL_MOUSEMOTION, /**< Mouse moved */ - SDL_MOUSEBUTTONDOWN, /**< Mouse button pressed */ - SDL_MOUSEBUTTONUP, /**< Mouse button released */ - SDL_JOYAXISMOTION, /**< Joystick axis motion */ - SDL_JOYBALLMOTION, /**< Joystick trackball motion */ - SDL_JOYHATMOTION, /**< Joystick hat position change */ - SDL_JOYBUTTONDOWN, /**< Joystick button pressed */ - SDL_JOYBUTTONUP, /**< Joystick button released */ - SDL_QUIT, /**< User-requested quit */ - SDL_SYSWMEVENT, /**< System specific event */ - SDL_EVENT_RESERVEDA, /**< Reserved for future use.. */ - SDL_EVENT_RESERVEDB, /**< Reserved for future use.. */ - SDL_VIDEORESIZE, /**< User resized video mode */ - SDL_VIDEOEXPOSE, /**< Screen needs to be redrawn */ - SDL_EVENT_RESERVED2, /**< Reserved for future use.. */ - SDL_EVENT_RESERVED3, /**< Reserved for future use.. */ - SDL_EVENT_RESERVED4, /**< Reserved for future use.. */ - SDL_EVENT_RESERVED5, /**< Reserved for future use.. */ - SDL_EVENT_RESERVED6, /**< Reserved for future use.. */ - SDL_EVENT_RESERVED7, /**< Reserved for future use.. */ - /** Events SDL_USEREVENT through SDL_MAXEVENTS-1 are for your use */ - SDL_USEREVENT = 24, - /** This last event is only for bounding internal arrays - * It is the number of bits in the event mask datatype -- Uint32 - */ - SDL_NUMEVENTS = 32 +#include +#include +#include +#include +#include +#include +#include + +#include + +typedef enum SDL_EventType +{ + SDL_NOEVENT, + SDL_ACTIVEEVENT, + SDL_KEYDOWN, + SDL_KEYUP, + SDL_MOUSEMOTION, + SDL_MOUSEBUTTONDOWN, + SDL_MOUSEBUTTONUP, + SDL_JOYAXISMOTION, + SDL_JOYBALLMOTION, + SDL_JOYHATMOTION, + SDL_JOYBUTTONDOWN, + SDL_JOYBUTTONUP, + SDL_QUIT, + SDL_SYSWMEVENT, + SDL_EVENT_RESERVEDA, + SDL_EVENT_RESERVEDB, + SDL_VIDEORESIZE, + SDL_VIDEOEXPOSE, + SDL_EVENT_RESERVED2, + SDL_EVENT_RESERVED3, + SDL_EVENT_RESERVED4, + SDL_EVENT_RESERVED5, + SDL_EVENT_RESERVED6, + SDL_EVENT_RESERVED7, + SDL_USEREVENT = 24, + SDL_NUMEVENTS = 32 } SDL_EventType; -/** @name Predefined event masks */ -/*@{*/ -#define SDL_EVENTMASK(X) (1<<(X)) -typedef enum { - SDL_ACTIVEEVENTMASK = SDL_EVENTMASK(SDL_ACTIVEEVENT), - SDL_KEYDOWNMASK = SDL_EVENTMASK(SDL_KEYDOWN), - SDL_KEYUPMASK = SDL_EVENTMASK(SDL_KEYUP), - SDL_KEYEVENTMASK = SDL_EVENTMASK(SDL_KEYDOWN)| - SDL_EVENTMASK(SDL_KEYUP), - SDL_MOUSEMOTIONMASK = SDL_EVENTMASK(SDL_MOUSEMOTION), - SDL_MOUSEBUTTONDOWNMASK = SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN), - SDL_MOUSEBUTTONUPMASK = SDL_EVENTMASK(SDL_MOUSEBUTTONUP), - SDL_MOUSEEVENTMASK = SDL_EVENTMASK(SDL_MOUSEMOTION)| - SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN)| - SDL_EVENTMASK(SDL_MOUSEBUTTONUP), - SDL_JOYAXISMOTIONMASK = SDL_EVENTMASK(SDL_JOYAXISMOTION), - SDL_JOYBALLMOTIONMASK = SDL_EVENTMASK(SDL_JOYBALLMOTION), - SDL_JOYHATMOTIONMASK = SDL_EVENTMASK(SDL_JOYHATMOTION), - SDL_JOYBUTTONDOWNMASK = SDL_EVENTMASK(SDL_JOYBUTTONDOWN), - SDL_JOYBUTTONUPMASK = SDL_EVENTMASK(SDL_JOYBUTTONUP), - SDL_JOYEVENTMASK = SDL_EVENTMASK(SDL_JOYAXISMOTION)| - SDL_EVENTMASK(SDL_JOYBALLMOTION)| - SDL_EVENTMASK(SDL_JOYHATMOTION)| - SDL_EVENTMASK(SDL_JOYBUTTONDOWN)| - SDL_EVENTMASK(SDL_JOYBUTTONUP), - SDL_VIDEORESIZEMASK = SDL_EVENTMASK(SDL_VIDEORESIZE), - SDL_VIDEOEXPOSEMASK = SDL_EVENTMASK(SDL_VIDEOEXPOSE), - SDL_QUITMASK = SDL_EVENTMASK(SDL_QUIT), - SDL_SYSWMEVENTMASK = SDL_EVENTMASK(SDL_SYSWMEVENT) -} SDL_EventMask ; -#define SDL_ALLEVENTS 0xFFFFFFFF -/*@}*/ - -/** Application visibility event structure */ -typedef struct SDL_ActiveEvent { - Uint8 type; /**< SDL_ACTIVEEVENT */ - Uint8 gain; /**< Whether given states were gained or lost (1/0) */ - Uint8 state; /**< A mask of the focus states */ +#define SDL_EVENTMASK(X) (1<<(X)) +#define SDL_ALLEVENTS 0xFFFFFFFF + +typedef enum SDL_EventMask +{ + SDL_ACTIVEEVENTMASK = SDL_EVENTMASK(SDL_ACTIVEEVENT), + SDL_KEYDOWNMASK = SDL_EVENTMASK(SDL_KEYDOWN), + SDL_KEYUPMASK = SDL_EVENTMASK(SDL_KEYUP), + SDL_KEYEVENTMASK = SDL_EVENTMASK(SDL_KEYDOWN)|SDL_EVENTMASK(SDL_KEYUP), + SDL_MOUSEMOTIONMASK = SDL_EVENTMASK(SDL_MOUSEMOTION), + SDL_MOUSEBUTTONDOWNMASK = SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN), + SDL_MOUSEBUTTONUPMASK = SDL_EVENTMASK(SDL_MOUSEBUTTONUP), + SDL_MOUSEEVENTMASK = SDL_EVENTMASK(SDL_MOUSEMOTION)|SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN)|SDL_EVENTMASK(SDL_MOUSEBUTTONUP), + SDL_JOYAXISMOTIONMASK = SDL_EVENTMASK(SDL_JOYAXISMOTION), + SDL_JOYBALLMOTIONMASK = SDL_EVENTMASK(SDL_JOYBALLMOTION), + SDL_JOYHATMOTIONMASK = SDL_EVENTMASK(SDL_JOYHATMOTION), + SDL_JOYBUTTONDOWNMASK = SDL_EVENTMASK(SDL_JOYBUTTONDOWN), + SDL_JOYBUTTONUPMASK = SDL_EVENTMASK(SDL_JOYBUTTONUP), + SDL_JOYEVENTMASK = SDL_EVENTMASK(SDL_JOYAXISMOTION)|SDL_EVENTMASK(SDL_JOYBALLMOTION)|SDL_EVENTMASK(SDL_JOYHATMOTION)|SDL_EVENTMASK(SDL_JOYBUTTONDOWN)|SDL_EVENTMASK(SDL_JOYBUTTONUP), + SDL_VIDEORESIZEMASK = SDL_EVENTMASK(SDL_VIDEORESIZE), + SDL_VIDEOEXPOSEMASK = SDL_EVENTMASK(SDL_VIDEOEXPOSE), + SDL_QUITMASK = SDL_EVENTMASK(SDL_QUIT), + SDL_SYSWMEVENTMASK = SDL_EVENTMASK(SDL_SYSWMEVENT) +} SDL_EventMask; + +typedef struct SDL_ActiveEvent +{ + Uint8 type; + Uint8 gain; + Uint8 state; } SDL_ActiveEvent; -/** Keyboard event structure */ -typedef struct SDL_KeyboardEvent { - Uint8 type; /**< SDL_KEYDOWN or SDL_KEYUP */ - Uint8 which; /**< The keyboard device index */ - Uint8 state; /**< SDL_PRESSED or SDL_RELEASED */ - SDL_keysym keysym; +typedef struct SDL_KeyboardEvent +{ + Uint8 type; + Uint8 which; + Uint8 state; + SDL_keysym keysym; } SDL_KeyboardEvent; -/** Mouse motion event structure */ -typedef struct SDL_MouseMotionEvent { - Uint8 type; /**< SDL_MOUSEMOTION */ - Uint8 which; /**< The mouse device index */ - Uint8 state; /**< The current button state */ - Uint16 x, y; /**< The X/Y coordinates of the mouse */ - Sint16 xrel; /**< The relative motion in the X direction */ - Sint16 yrel; /**< The relative motion in the Y direction */ +typedef struct SDL_MouseMotionEvent +{ + Uint8 type; + Uint8 which; + Uint8 state; + Uint16 x; + Uint16 y; + Sint16 xrel; + Sint16 yrel; } SDL_MouseMotionEvent; -/** Mouse button event structure */ -typedef struct SDL_MouseButtonEvent { - Uint8 type; /**< SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP */ - Uint8 which; /**< The mouse device index */ - Uint8 button; /**< The mouse button index */ - Uint8 state; /**< SDL_PRESSED or SDL_RELEASED */ - Uint16 x, y; /**< The X/Y coordinates of the mouse at press time */ +typedef struct SDL_MouseButtonEvent +{ + Uint8 type; + Uint8 which; + Uint8 button; + Uint8 state; + Uint16 x; + Uint16 y; } SDL_MouseButtonEvent; -/** Joystick axis motion event structure */ -typedef struct SDL_JoyAxisEvent { - Uint8 type; /**< SDL_JOYAXISMOTION */ - Uint8 which; /**< The joystick device index */ - Uint8 axis; /**< The joystick axis index */ - Sint16 value; /**< The axis value (range: -32768 to 32767) */ +typedef struct SDL_JoyAxisEvent +{ + Uint8 type; + Uint8 which; + Uint8 axis; + Sint16 value; } SDL_JoyAxisEvent; -/** Joystick trackball motion event structure */ -typedef struct SDL_JoyBallEvent { - Uint8 type; /**< SDL_JOYBALLMOTION */ - Uint8 which; /**< The joystick device index */ - Uint8 ball; /**< The joystick trackball index */ - Sint16 xrel; /**< The relative motion in the X direction */ - Sint16 yrel; /**< The relative motion in the Y direction */ +typedef struct SDL_JoyBallEvent +{ + Uint8 type; + Uint8 which; + Uint8 ball; + Sint16 xrel; + Sint16 yrel; } SDL_JoyBallEvent; -/** Joystick hat position change event structure */ -typedef struct SDL_JoyHatEvent { - Uint8 type; /**< SDL_JOYHATMOTION */ - Uint8 which; /**< The joystick device index */ - Uint8 hat; /**< The joystick hat index */ - Uint8 value; /**< The hat position value: - * SDL_HAT_LEFTUP SDL_HAT_UP SDL_HAT_RIGHTUP - * SDL_HAT_LEFT SDL_HAT_CENTERED SDL_HAT_RIGHT - * SDL_HAT_LEFTDOWN SDL_HAT_DOWN SDL_HAT_RIGHTDOWN - * Note that zero means the POV is centered. - */ +typedef struct SDL_JoyHatEvent +{ + Uint8 type; + Uint8 which; + Uint8 hat; + Uint8 value; } SDL_JoyHatEvent; -/** Joystick button event structure */ -typedef struct SDL_JoyButtonEvent { - Uint8 type; /**< SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP */ - Uint8 which; /**< The joystick device index */ - Uint8 button; /**< The joystick button index */ - Uint8 state; /**< SDL_PRESSED or SDL_RELEASED */ +typedef struct SDL_JoyButtonEvent +{ + Uint8 type; + Uint8 which; + Uint8 button; + Uint8 state; } SDL_JoyButtonEvent; -/** The "window resized" event - * When you get this event, you are responsible for setting a new video - * mode with the new width and height. - */ -typedef struct SDL_ResizeEvent { - Uint8 type; /**< SDL_VIDEORESIZE */ - int w; /**< New width */ - int h; /**< New height */ +typedef struct SDL_ResizeEvent +{ + Uint8 type; + int w; + int h; } SDL_ResizeEvent; -/** The "screen redraw" event */ -typedef struct SDL_ExposeEvent { - Uint8 type; /**< SDL_VIDEOEXPOSE */ +typedef struct SDL_ExposeEvent +{ + Uint8 type; } SDL_ExposeEvent; -/** The "quit requested" event */ -typedef struct SDL_QuitEvent { - Uint8 type; /**< SDL_QUIT */ +typedef struct SDL_QuitEvent +{ + Uint8 type; } SDL_QuitEvent; -/** A user-defined event type */ -typedef struct SDL_UserEvent { - Uint8 type; /**< SDL_USEREVENT through SDL_NUMEVENTS-1 */ - int code; /**< User defined event code */ - void *data1; /**< User defined data pointer */ - void *data2; /**< User defined data pointer */ +typedef struct SDL_UserEvent +{ + Uint8 type; + int code; + void *data1; + void *data2; } SDL_UserEvent; -/** If you want to use this event, you should include SDL_syswm.h */ struct SDL_SysWMmsg; typedef struct SDL_SysWMmsg SDL_SysWMmsg; -typedef struct SDL_SysWMEvent { - Uint8 type; - SDL_SysWMmsg *msg; +typedef struct SDL_SysWMEvent +{ + Uint8 type; + struct SDL_SysWMmsg *msg; } SDL_SysWMEvent; -/** General event structure */ -typedef union SDL_Event { - Uint8 type; - SDL_ActiveEvent active; - SDL_KeyboardEvent key; - SDL_MouseMotionEvent motion; - SDL_MouseButtonEvent button; - SDL_JoyAxisEvent jaxis; - SDL_JoyBallEvent jball; - SDL_JoyHatEvent jhat; - SDL_JoyButtonEvent jbutton; - SDL_ResizeEvent resize; - SDL_ExposeEvent expose; - SDL_QuitEvent quit; - SDL_UserEvent user; - SDL_SysWMEvent syswm; +typedef union SDL_Event +{ + Uint8 type; + SDL_ActiveEvent active; + SDL_KeyboardEvent key; + SDL_MouseMotionEvent motion; + SDL_MouseButtonEvent button; + SDL_JoyAxisEvent jaxis; + SDL_JoyBallEvent jball; + SDL_JoyHatEvent jhat; + SDL_JoyButtonEvent jbutton; + SDL_ResizeEvent resize; + SDL_ExposeEvent expose; + SDL_QuitEvent quit; + SDL_UserEvent user; + SDL_SysWMEvent syswm; } SDL_Event; +typedef int (SDLCALL *SDL_EventFilter)(const SDL_Event *event); -/* Function prototypes */ - -/** Pumps the event loop, gathering events from the input devices. - * This function updates the event queue and internal input device state. - * This should only be run in the thread that sets the video mode. - */ -extern DECLSPEC void SDLCALL SDL_PumpEvents(void); - -typedef enum { - SDL_ADDEVENT, - SDL_PEEKEVENT, - SDL_GETEVENT +typedef enum SDL_eventaction +{ + SDL_ADDEVENT, + SDL_PEEKEVENT, + SDL_GETEVENT } SDL_eventaction; -/** - * Checks the event queue for messages and optionally returns them. - * - * If 'action' is SDL_ADDEVENT, up to 'numevents' events will be added to - * the back of the event queue. - * If 'action' is SDL_PEEKEVENT, up to 'numevents' events at the front - * of the event queue, matching 'mask', will be returned and will not - * be removed from the queue. - * If 'action' is SDL_GETEVENT, up to 'numevents' events at the front - * of the event queue, matching 'mask', will be returned and will be - * removed from the queue. - * - * @return - * This function returns the number of events actually stored, or -1 - * if there was an error. - * - * This function is thread-safe. - */ -extern DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event *events, int numevents, - SDL_eventaction action, Uint32 mask); - -/** Polls for currently pending events, and returns 1 if there are any pending - * events, or 0 if there are none available. If 'event' is not NULL, the next - * event is removed from the queue and stored in that area. - */ +extern DECLSPEC void SDLCALL SDL_PumpEvents(void); +extern DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event *events, int numevents, SDL_eventaction action, Uint32 mask); extern DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event *event); - -/** Waits indefinitely for the next available event, returning 1, or 0 if there - * was an error while waiting for events. If 'event' is not NULL, the next - * event is removed from the queue and stored in that area. - */ extern DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event *event); - -/** Add an event to the event queue. - * This function returns 0 on success, or -1 if the event queue was full - * or there was some other error. - */ extern DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event *event); - -/** @name Event Filtering */ -/*@{*/ -typedef int (SDLCALL *SDL_EventFilter)(const SDL_Event *event); -/** - * This function sets up a filter to process all events before they - * change internal state and are posted to the internal event queue. - * - * The filter is protypted as: - * @code typedef int (SDLCALL *SDL_EventFilter)(const SDL_Event *event); @endcode - * - * If the filter returns 1, then the event will be added to the internal queue. - * If it returns 0, then the event will be dropped from the queue, but the - * internal state will still be updated. This allows selective filtering of - * dynamically arriving events. - * - * @warning Be very careful of what you do in the event filter function, as - * it may run in a different thread! - * - * There is one caveat when dealing with the SDL_QUITEVENT event type. The - * event filter is only called when the window manager desires to close the - * application window. If the event filter returns 1, then the window will - * be closed, otherwise the window will remain open if possible. - * If the quit event is generated by an interrupt signal, it will bypass the - * internal queue and be delivered to the application at the next event poll. - */ extern DECLSPEC void SDLCALL SDL_SetEventFilter(SDL_EventFilter filter); - -/** - * Return the current event filter - can be used to "chain" filters. - * If there is no event filter set, this function returns NULL. - */ extern DECLSPEC SDL_EventFilter SDLCALL SDL_GetEventFilter(void); -/*@}*/ +extern DECLSPEC Uint8 SDLCALL SDL_EventState(Uint8 type, int state); -/** @name Event State */ -/*@{*/ -#define SDL_QUERY -1 -#define SDL_IGNORE 0 -#define SDL_DISABLE 0 -#define SDL_ENABLE 1 -/*@}*/ +#define SDL_RELEASED 0 +#define SDL_PRESSED 1 +#define SDL_QUERY -1 +#define SDL_IGNORE 0 +#define SDL_DISABLE 0 +#define SDL_ENABLE 1 -/** -* This function allows you to set the state of processing certain events. -* If 'state' is set to SDL_IGNORE, that event will be automatically dropped -* from the event queue and will not event be filtered. -* If 'state' is set to SDL_ENABLE, that event will be processed normally. -* If 'state' is set to SDL_QUERY, SDL_EventState() will return the -* current processing state of the specified event. -*/ -extern DECLSPEC Uint8 SDLCALL SDL_EventState(Uint8 type, int state); +#include -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} #endif -#include "close_code.h" -#endif /* _SDL_events_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_getenv.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_getenv.h index bea630077..4989badcd 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_getenv.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_getenv.h @@ -1,28 +1,29 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** @file SDL_getenv.h - * @deprecated Use SDL_stdinc.h instead - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ + + +/* this is a compatibility header, even in 1.2, that just forwards to SDL_stdinc.h */ +#include -/* DEPRECATED */ -#include "SDL_stdinc.h" diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_joystick.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_joystick.h index 708d1a9f0..79d1882e4 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_joystick.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_joystick.h @@ -1,187 +1,66 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** @file SDL_joystick.h - * Include file for SDL joystick event handling - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_joystick_h #define _SDL_joystick_h -#include "SDL_stdinc.h" -#include "SDL_error.h" +#include +#include -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif +#include -/** @file SDL_joystick.h - * @note In order to use these functions, SDL_Init() must have been called - * with the SDL_INIT_JOYSTICK flag. This causes SDL to scan the system - * for joysticks, and load appropriate drivers. - */ +#define SDL_HAT_CENTERED 0x00 +#define SDL_HAT_UP 0x01 +#define SDL_HAT_RIGHT 0x02 +#define SDL_HAT_DOWN 0x04 +#define SDL_HAT_LEFT 0x08 +#define SDL_HAT_RIGHTUP 0x03 +#define SDL_HAT_RIGHTDOWN 0x06 +#define SDL_HAT_LEFTUP 0x09 +#define SDL_HAT_LEFTDOWN 0x0C -/** The joystick structure used to identify an SDL joystick */ -struct _SDL_Joystick; typedef struct _SDL_Joystick SDL_Joystick; -/* Function prototypes */ -/** - * Count the number of joysticks attached to the system - */ extern DECLSPEC int SDLCALL SDL_NumJoysticks(void); - -/** - * Get the implementation dependent name of a joystick. - * - * This can be called before any joysticks are opened. - * If no name can be found, this function returns NULL. - */ extern DECLSPEC const char * SDLCALL SDL_JoystickName(int device_index); - -/** - * Open a joystick for use. - * - * @param[in] device_index - * The index passed as an argument refers to - * the N'th joystick on the system. This index is the value which will - * identify this joystick in future joystick events. - * - * @return This function returns a joystick identifier, or NULL if an error occurred. - */ extern DECLSPEC SDL_Joystick * SDLCALL SDL_JoystickOpen(int device_index); - -/** - * Returns 1 if the joystick has been opened, or 0 if it has not. - */ extern DECLSPEC int SDLCALL SDL_JoystickOpened(int device_index); - -/** - * Get the device index of an opened joystick. - */ extern DECLSPEC int SDLCALL SDL_JoystickIndex(SDL_Joystick *joystick); - -/** - * Get the number of general axis controls on a joystick - */ extern DECLSPEC int SDLCALL SDL_JoystickNumAxes(SDL_Joystick *joystick); - -/** - * Get the number of trackballs on a joystick - * - * Joystick trackballs have only relative motion events associated - * with them and their state cannot be polled. - */ extern DECLSPEC int SDLCALL SDL_JoystickNumBalls(SDL_Joystick *joystick); - -/** - * Get the number of POV hats on a joystick - */ extern DECLSPEC int SDLCALL SDL_JoystickNumHats(SDL_Joystick *joystick); - -/** - * Get the number of buttons on a joystick - */ extern DECLSPEC int SDLCALL SDL_JoystickNumButtons(SDL_Joystick *joystick); - -/** - * Update the current state of the open joysticks. - * - * This is called automatically by the event loop if any joystick - * events are enabled. - */ extern DECLSPEC void SDLCALL SDL_JoystickUpdate(void); - -/** - * Enable/disable joystick event polling. - * - * If joystick events are disabled, you must call SDL_JoystickUpdate() - * yourself and check the state of the joystick when you want joystick - * information. - * - * @param[in] state The state can be one of SDL_QUERY, SDL_ENABLE or SDL_IGNORE. - */ extern DECLSPEC int SDLCALL SDL_JoystickEventState(int state); - -/** - * Get the current state of an axis control on a joystick - * - * @param[in] axis The axis indices start at index 0. - * - * @return The state is a value ranging from -32768 to 32767. - */ extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick *joystick, int axis); - -/** - * @name Hat Positions - * The return value of SDL_JoystickGetHat() is one of the following positions: - */ -/*@{*/ -#define SDL_HAT_CENTERED 0x00 -#define SDL_HAT_UP 0x01 -#define SDL_HAT_RIGHT 0x02 -#define SDL_HAT_DOWN 0x04 -#define SDL_HAT_LEFT 0x08 -#define SDL_HAT_RIGHTUP (SDL_HAT_RIGHT|SDL_HAT_UP) -#define SDL_HAT_RIGHTDOWN (SDL_HAT_RIGHT|SDL_HAT_DOWN) -#define SDL_HAT_LEFTUP (SDL_HAT_LEFT|SDL_HAT_UP) -#define SDL_HAT_LEFTDOWN (SDL_HAT_LEFT|SDL_HAT_DOWN) -/*@}*/ - -/** - * Get the current state of a POV hat on a joystick - * - * @param[in] hat The hat indices start at index 0. - */ extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetHat(SDL_Joystick *joystick, int hat); - -/** - * Get the ball axis change since the last poll - * - * @param[in] ball The ball indices start at index 0. - * - * @return This returns 0, or -1 if you passed it invalid parameters. - */ extern DECLSPEC int SDLCALL SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy); - -/** - * Get the current state of a button on a joystick - * - * @param[in] button The button indices start at index 0. - */ extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetButton(SDL_Joystick *joystick, int button); - -/** - * Close a joystick previously opened with SDL_JoystickOpen() - */ extern DECLSPEC void SDLCALL SDL_JoystickClose(SDL_Joystick *joystick); +#include -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} #endif -#include "close_code.h" -#endif /* _SDL_joystick_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_keyboard.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_keyboard.h index 9d7129c52..9e5a558d1 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_keyboard.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_keyboard.h @@ -1,135 +1,59 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** @file SDL_keyboard.h - * Include file for SDL keyboard event handling - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ + #ifndef _SDL_keyboard_h #define _SDL_keyboard_h -#include "SDL_stdinc.h" -#include "SDL_error.h" -#include "SDL_keysym.h" +#include +#include +#include -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif +#include -/** Keysym structure - * - * - The scancode is hardware dependent, and should not be used by general - * applications. If no hardware scancode is available, it will be 0. - * - * - The 'unicode' translated character is only available when character - * translation is enabled by the SDL_EnableUNICODE() API. If non-zero, - * this is a UNICODE character corresponding to the keypress. If the - * high 9 bits of the character are 0, then this maps to the equivalent - * ASCII character: - * @code - * char ch; - * if ( (keysym.unicode & 0xFF80) == 0 ) { - * ch = keysym.unicode & 0x7F; - * } else { - * An international character.. - * } - * @endcode - */ -typedef struct SDL_keysym { - Uint8 scancode; /**< hardware specific scancode */ - SDLKey sym; /**< SDL virtual keysym */ - SDLMod mod; /**< current key modifiers */ - Uint16 unicode; /**< translated character */ +typedef struct SDL_keysym +{ + Uint8 scancode; + SDLKey sym; + SDLMod mod; + Uint16 unicode; } SDL_keysym; -/** This is the mask which refers to all hotkey bindings */ -#define SDL_ALL_HOTKEYS 0xFFFFFFFF - -/* Function prototypes */ -/** - * Enable/Disable UNICODE translation of keyboard input. - * - * This translation has some overhead, so translation defaults off. - * - * @param[in] enable - * If 'enable' is 1, translation is enabled. - * If 'enable' is 0, translation is disabled. - * If 'enable' is -1, the translation state is not changed. - * - * @return It returns the previous state of keyboard translation. - */ -extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable); +#define SDL_ALL_HOTKEYS 0xFFFFFFFF +#define SDL_DEFAULT_REPEAT_DELAY 500 +#define SDL_DEFAULT_REPEAT_INTERVAL 30 -#define SDL_DEFAULT_REPEAT_DELAY 500 -#define SDL_DEFAULT_REPEAT_INTERVAL 30 -/** - * Enable/Disable keyboard repeat. Keyboard repeat defaults to off. - * - * @param[in] delay - * 'delay' is the initial delay in ms between the time when a key is - * pressed, and keyboard repeat begins. - * - * @param[in] interval - * 'interval' is the time in ms between keyboard repeat events. - * - * If 'delay' is set to 0, keyboard repeat is disabled. - */ -extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval); -extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval); - -/** - * Get a snapshot of the current state of the keyboard. - * Returns an array of keystates, indexed by the SDLK_* syms. - * Usage: - * @code - * Uint8 *keystate = SDL_GetKeyState(NULL); - * if ( keystate[SDLK_RETURN] ) //... \ is pressed. - * @endcode - */ extern DECLSPEC Uint8 * SDLCALL SDL_GetKeyState(int *numkeys); - -/** - * Get the current key modifier state - */ extern DECLSPEC SDLMod SDLCALL SDL_GetModState(void); - -/** - * Set the current key modifier state. - * This does not change the keyboard state, only the key modifier flags. - */ extern DECLSPEC void SDLCALL SDL_SetModState(SDLMod modstate); - -/** - * Get the name of an SDL virtual keysym - */ extern DECLSPEC char * SDLCALL SDL_GetKeyName(SDLKey key); +extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval); +extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval); +extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable); +#include -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} #endif -#include "close_code.h" -#endif /* _SDL_keyboard_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_keysym.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_keysym.h index f2ad12b81..39c805f6f 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_keysym.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_keysym.h @@ -1,326 +1,290 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ + #ifndef _SDL_keysym_h #define _SDL_keysym_h -/** What we really want is a mapping of every raw key on the keyboard. - * To support international keyboards, we use the range 0xA1 - 0xFF - * as international virtual keycodes. We'll follow in the footsteps of X11... - * @brief The names of the keys - */ -typedef enum { - /** @name ASCII mapped keysyms - * The keyboard syms have been cleverly chosen to map to ASCII - */ - /*@{*/ - SDLK_UNKNOWN = 0, - SDLK_FIRST = 0, - SDLK_BACKSPACE = 8, - SDLK_TAB = 9, - SDLK_CLEAR = 12, - SDLK_RETURN = 13, - SDLK_PAUSE = 19, - SDLK_ESCAPE = 27, - SDLK_SPACE = 32, - SDLK_EXCLAIM = 33, - SDLK_QUOTEDBL = 34, - SDLK_HASH = 35, - SDLK_DOLLAR = 36, - SDLK_AMPERSAND = 38, - SDLK_QUOTE = 39, - SDLK_LEFTPAREN = 40, - SDLK_RIGHTPAREN = 41, - SDLK_ASTERISK = 42, - SDLK_PLUS = 43, - SDLK_COMMA = 44, - SDLK_MINUS = 45, - SDLK_PERIOD = 46, - SDLK_SLASH = 47, - SDLK_0 = 48, - SDLK_1 = 49, - SDLK_2 = 50, - SDLK_3 = 51, - SDLK_4 = 52, - SDLK_5 = 53, - SDLK_6 = 54, - SDLK_7 = 55, - SDLK_8 = 56, - SDLK_9 = 57, - SDLK_COLON = 58, - SDLK_SEMICOLON = 59, - SDLK_LESS = 60, - SDLK_EQUALS = 61, - SDLK_GREATER = 62, - SDLK_QUESTION = 63, - SDLK_AT = 64, - /* - Skip uppercase letters - */ - SDLK_LEFTBRACKET = 91, - SDLK_BACKSLASH = 92, - SDLK_RIGHTBRACKET = 93, - SDLK_CARET = 94, - SDLK_UNDERSCORE = 95, - SDLK_BACKQUOTE = 96, - SDLK_a = 97, - SDLK_b = 98, - SDLK_c = 99, - SDLK_d = 100, - SDLK_e = 101, - SDLK_f = 102, - SDLK_g = 103, - SDLK_h = 104, - SDLK_i = 105, - SDLK_j = 106, - SDLK_k = 107, - SDLK_l = 108, - SDLK_m = 109, - SDLK_n = 110, - SDLK_o = 111, - SDLK_p = 112, - SDLK_q = 113, - SDLK_r = 114, - SDLK_s = 115, - SDLK_t = 116, - SDLK_u = 117, - SDLK_v = 118, - SDLK_w = 119, - SDLK_x = 120, - SDLK_y = 121, - SDLK_z = 122, - SDLK_DELETE = 127, - /* End of ASCII mapped keysyms */ - /*@}*/ - - /** @name International keyboard syms */ - /*@{*/ - SDLK_WORLD_0 = 160, /* 0xA0 */ - SDLK_WORLD_1 = 161, - SDLK_WORLD_2 = 162, - SDLK_WORLD_3 = 163, - SDLK_WORLD_4 = 164, - SDLK_WORLD_5 = 165, - SDLK_WORLD_6 = 166, - SDLK_WORLD_7 = 167, - SDLK_WORLD_8 = 168, - SDLK_WORLD_9 = 169, - SDLK_WORLD_10 = 170, - SDLK_WORLD_11 = 171, - SDLK_WORLD_12 = 172, - SDLK_WORLD_13 = 173, - SDLK_WORLD_14 = 174, - SDLK_WORLD_15 = 175, - SDLK_WORLD_16 = 176, - SDLK_WORLD_17 = 177, - SDLK_WORLD_18 = 178, - SDLK_WORLD_19 = 179, - SDLK_WORLD_20 = 180, - SDLK_WORLD_21 = 181, - SDLK_WORLD_22 = 182, - SDLK_WORLD_23 = 183, - SDLK_WORLD_24 = 184, - SDLK_WORLD_25 = 185, - SDLK_WORLD_26 = 186, - SDLK_WORLD_27 = 187, - SDLK_WORLD_28 = 188, - SDLK_WORLD_29 = 189, - SDLK_WORLD_30 = 190, - SDLK_WORLD_31 = 191, - SDLK_WORLD_32 = 192, - SDLK_WORLD_33 = 193, - SDLK_WORLD_34 = 194, - SDLK_WORLD_35 = 195, - SDLK_WORLD_36 = 196, - SDLK_WORLD_37 = 197, - SDLK_WORLD_38 = 198, - SDLK_WORLD_39 = 199, - SDLK_WORLD_40 = 200, - SDLK_WORLD_41 = 201, - SDLK_WORLD_42 = 202, - SDLK_WORLD_43 = 203, - SDLK_WORLD_44 = 204, - SDLK_WORLD_45 = 205, - SDLK_WORLD_46 = 206, - SDLK_WORLD_47 = 207, - SDLK_WORLD_48 = 208, - SDLK_WORLD_49 = 209, - SDLK_WORLD_50 = 210, - SDLK_WORLD_51 = 211, - SDLK_WORLD_52 = 212, - SDLK_WORLD_53 = 213, - SDLK_WORLD_54 = 214, - SDLK_WORLD_55 = 215, - SDLK_WORLD_56 = 216, - SDLK_WORLD_57 = 217, - SDLK_WORLD_58 = 218, - SDLK_WORLD_59 = 219, - SDLK_WORLD_60 = 220, - SDLK_WORLD_61 = 221, - SDLK_WORLD_62 = 222, - SDLK_WORLD_63 = 223, - SDLK_WORLD_64 = 224, - SDLK_WORLD_65 = 225, - SDLK_WORLD_66 = 226, - SDLK_WORLD_67 = 227, - SDLK_WORLD_68 = 228, - SDLK_WORLD_69 = 229, - SDLK_WORLD_70 = 230, - SDLK_WORLD_71 = 231, - SDLK_WORLD_72 = 232, - SDLK_WORLD_73 = 233, - SDLK_WORLD_74 = 234, - SDLK_WORLD_75 = 235, - SDLK_WORLD_76 = 236, - SDLK_WORLD_77 = 237, - SDLK_WORLD_78 = 238, - SDLK_WORLD_79 = 239, - SDLK_WORLD_80 = 240, - SDLK_WORLD_81 = 241, - SDLK_WORLD_82 = 242, - SDLK_WORLD_83 = 243, - SDLK_WORLD_84 = 244, - SDLK_WORLD_85 = 245, - SDLK_WORLD_86 = 246, - SDLK_WORLD_87 = 247, - SDLK_WORLD_88 = 248, - SDLK_WORLD_89 = 249, - SDLK_WORLD_90 = 250, - SDLK_WORLD_91 = 251, - SDLK_WORLD_92 = 252, - SDLK_WORLD_93 = 253, - SDLK_WORLD_94 = 254, - SDLK_WORLD_95 = 255, /* 0xFF */ - /*@}*/ - - /** @name Numeric keypad */ - /*@{*/ - SDLK_KP0 = 256, - SDLK_KP1 = 257, - SDLK_KP2 = 258, - SDLK_KP3 = 259, - SDLK_KP4 = 260, - SDLK_KP5 = 261, - SDLK_KP6 = 262, - SDLK_KP7 = 263, - SDLK_KP8 = 264, - SDLK_KP9 = 265, - SDLK_KP_PERIOD = 266, - SDLK_KP_DIVIDE = 267, - SDLK_KP_MULTIPLY = 268, - SDLK_KP_MINUS = 269, - SDLK_KP_PLUS = 270, - SDLK_KP_ENTER = 271, - SDLK_KP_EQUALS = 272, - /*@}*/ - - /** @name Arrows + Home/End pad */ - /*@{*/ - SDLK_UP = 273, - SDLK_DOWN = 274, - SDLK_RIGHT = 275, - SDLK_LEFT = 276, - SDLK_INSERT = 277, - SDLK_HOME = 278, - SDLK_END = 279, - SDLK_PAGEUP = 280, - SDLK_PAGEDOWN = 281, - /*@}*/ - - /** @name Function keys */ - /*@{*/ - SDLK_F1 = 282, - SDLK_F2 = 283, - SDLK_F3 = 284, - SDLK_F4 = 285, - SDLK_F5 = 286, - SDLK_F6 = 287, - SDLK_F7 = 288, - SDLK_F8 = 289, - SDLK_F9 = 290, - SDLK_F10 = 291, - SDLK_F11 = 292, - SDLK_F12 = 293, - SDLK_F13 = 294, - SDLK_F14 = 295, - SDLK_F15 = 296, - /*@}*/ - - /** @name Key state modifier keys */ - /*@{*/ - SDLK_NUMLOCK = 300, - SDLK_CAPSLOCK = 301, - SDLK_SCROLLOCK = 302, - SDLK_RSHIFT = 303, - SDLK_LSHIFT = 304, - SDLK_RCTRL = 305, - SDLK_LCTRL = 306, - SDLK_RALT = 307, - SDLK_LALT = 308, - SDLK_RMETA = 309, - SDLK_LMETA = 310, - SDLK_LSUPER = 311, /**< Left "Windows" key */ - SDLK_RSUPER = 312, /**< Right "Windows" key */ - SDLK_MODE = 313, /**< "Alt Gr" key */ - SDLK_COMPOSE = 314, /**< Multi-key compose key */ - /*@}*/ - - /** @name Miscellaneous function keys */ - /*@{*/ - SDLK_HELP = 315, - SDLK_PRINT = 316, - SDLK_SYSREQ = 317, - SDLK_BREAK = 318, - SDLK_MENU = 319, - SDLK_POWER = 320, /**< Power Macintosh power key */ - SDLK_EURO = 321, /**< Some european keyboards */ - SDLK_UNDO = 322, /**< Atari keyboard has Undo */ - /*@}*/ - - /* Add any other keys here */ - - SDLK_LAST +typedef enum SDLKey +{ + SDLK_UNKNOWN = 0, + SDLK_FIRST = 0, + SDLK_BACKSPACE = 8, + SDLK_TAB = 9, + SDLK_CLEAR = 12, + SDLK_RETURN = 13, + SDLK_PAUSE = 19, + SDLK_ESCAPE = 27, + SDLK_SPACE = 32, + SDLK_EXCLAIM = 33, + SDLK_QUOTEDBL = 34, + SDLK_HASH = 35, + SDLK_DOLLAR = 36, + SDLK_AMPERSAND = 38, + SDLK_QUOTE = 39, + SDLK_LEFTPAREN = 40, + SDLK_RIGHTPAREN = 41, + SDLK_ASTERISK = 42, + SDLK_PLUS = 43, + SDLK_COMMA = 44, + SDLK_MINUS = 45, + SDLK_PERIOD = 46, + SDLK_SLASH = 47, + SDLK_0 = 48, + SDLK_1 = 49, + SDLK_2 = 50, + SDLK_3 = 51, + SDLK_4 = 52, + SDLK_5 = 53, + SDLK_6 = 54, + SDLK_7 = 55, + SDLK_8 = 56, + SDLK_9 = 57, + SDLK_COLON = 58, + SDLK_SEMICOLON = 59, + SDLK_LESS = 60, + SDLK_EQUALS = 61, + SDLK_GREATER = 62, + SDLK_QUESTION = 63, + SDLK_AT = 64, + SDLK_LEFTBRACKET = 91, + SDLK_BACKSLASH = 92, + SDLK_RIGHTBRACKET = 93, + SDLK_CARET = 94, + SDLK_UNDERSCORE = 95, + SDLK_BACKQUOTE = 96, + SDLK_a = 97, + SDLK_b = 98, + SDLK_c = 99, + SDLK_d = 100, + SDLK_e = 101, + SDLK_f = 102, + SDLK_g = 103, + SDLK_h = 104, + SDLK_i = 105, + SDLK_j = 106, + SDLK_k = 107, + SDLK_l = 108, + SDLK_m = 109, + SDLK_n = 110, + SDLK_o = 111, + SDLK_p = 112, + SDLK_q = 113, + SDLK_r = 114, + SDLK_s = 115, + SDLK_t = 116, + SDLK_u = 117, + SDLK_v = 118, + SDLK_w = 119, + SDLK_x = 120, + SDLK_y = 121, + SDLK_z = 122, + SDLK_DELETE = 127, + SDLK_WORLD_0 = 160, + SDLK_WORLD_1 = 161, + SDLK_WORLD_2 = 162, + SDLK_WORLD_3 = 163, + SDLK_WORLD_4 = 164, + SDLK_WORLD_5 = 165, + SDLK_WORLD_6 = 166, + SDLK_WORLD_7 = 167, + SDLK_WORLD_8 = 168, + SDLK_WORLD_9 = 169, + SDLK_WORLD_10 = 170, + SDLK_WORLD_11 = 171, + SDLK_WORLD_12 = 172, + SDLK_WORLD_13 = 173, + SDLK_WORLD_14 = 174, + SDLK_WORLD_15 = 175, + SDLK_WORLD_16 = 176, + SDLK_WORLD_17 = 177, + SDLK_WORLD_18 = 178, + SDLK_WORLD_19 = 179, + SDLK_WORLD_20 = 180, + SDLK_WORLD_21 = 181, + SDLK_WORLD_22 = 182, + SDLK_WORLD_23 = 183, + SDLK_WORLD_24 = 184, + SDLK_WORLD_25 = 185, + SDLK_WORLD_26 = 186, + SDLK_WORLD_27 = 187, + SDLK_WORLD_28 = 188, + SDLK_WORLD_29 = 189, + SDLK_WORLD_30 = 190, + SDLK_WORLD_31 = 191, + SDLK_WORLD_32 = 192, + SDLK_WORLD_33 = 193, + SDLK_WORLD_34 = 194, + SDLK_WORLD_35 = 195, + SDLK_WORLD_36 = 196, + SDLK_WORLD_37 = 197, + SDLK_WORLD_38 = 198, + SDLK_WORLD_39 = 199, + SDLK_WORLD_40 = 200, + SDLK_WORLD_41 = 201, + SDLK_WORLD_42 = 202, + SDLK_WORLD_43 = 203, + SDLK_WORLD_44 = 204, + SDLK_WORLD_45 = 205, + SDLK_WORLD_46 = 206, + SDLK_WORLD_47 = 207, + SDLK_WORLD_48 = 208, + SDLK_WORLD_49 = 209, + SDLK_WORLD_50 = 210, + SDLK_WORLD_51 = 211, + SDLK_WORLD_52 = 212, + SDLK_WORLD_53 = 213, + SDLK_WORLD_54 = 214, + SDLK_WORLD_55 = 215, + SDLK_WORLD_56 = 216, + SDLK_WORLD_57 = 217, + SDLK_WORLD_58 = 218, + SDLK_WORLD_59 = 219, + SDLK_WORLD_60 = 220, + SDLK_WORLD_61 = 221, + SDLK_WORLD_62 = 222, + SDLK_WORLD_63 = 223, + SDLK_WORLD_64 = 224, + SDLK_WORLD_65 = 225, + SDLK_WORLD_66 = 226, + SDLK_WORLD_67 = 227, + SDLK_WORLD_68 = 228, + SDLK_WORLD_69 = 229, + SDLK_WORLD_70 = 230, + SDLK_WORLD_71 = 231, + SDLK_WORLD_72 = 232, + SDLK_WORLD_73 = 233, + SDLK_WORLD_74 = 234, + SDLK_WORLD_75 = 235, + SDLK_WORLD_76 = 236, + SDLK_WORLD_77 = 237, + SDLK_WORLD_78 = 238, + SDLK_WORLD_79 = 239, + SDLK_WORLD_80 = 240, + SDLK_WORLD_81 = 241, + SDLK_WORLD_82 = 242, + SDLK_WORLD_83 = 243, + SDLK_WORLD_84 = 244, + SDLK_WORLD_85 = 245, + SDLK_WORLD_86 = 246, + SDLK_WORLD_87 = 247, + SDLK_WORLD_88 = 248, + SDLK_WORLD_89 = 249, + SDLK_WORLD_90 = 250, + SDLK_WORLD_91 = 251, + SDLK_WORLD_92 = 252, + SDLK_WORLD_93 = 253, + SDLK_WORLD_94 = 254, + SDLK_WORLD_95 = 255, + SDLK_KP0 = 256, + SDLK_KP1 = 257, + SDLK_KP2 = 258, + SDLK_KP3 = 259, + SDLK_KP4 = 260, + SDLK_KP5 = 261, + SDLK_KP6 = 262, + SDLK_KP7 = 263, + SDLK_KP8 = 264, + SDLK_KP9 = 265, + SDLK_KP_PERIOD = 266, + SDLK_KP_DIVIDE = 267, + SDLK_KP_MULTIPLY = 268, + SDLK_KP_MINUS = 269, + SDLK_KP_PLUS = 270, + SDLK_KP_ENTER = 271, + SDLK_KP_EQUALS = 272, + SDLK_UP = 273, + SDLK_DOWN = 274, + SDLK_RIGHT = 275, + SDLK_LEFT = 276, + SDLK_INSERT = 277, + SDLK_HOME = 278, + SDLK_END = 279, + SDLK_PAGEUP = 280, + SDLK_PAGEDOWN = 281, + SDLK_F1 = 282, + SDLK_F2 = 283, + SDLK_F3 = 284, + SDLK_F4 = 285, + SDLK_F5 = 286, + SDLK_F6 = 287, + SDLK_F7 = 288, + SDLK_F8 = 289, + SDLK_F9 = 290, + SDLK_F10 = 291, + SDLK_F11 = 292, + SDLK_F12 = 293, + SDLK_F13 = 294, + SDLK_F14 = 295, + SDLK_F15 = 296, + SDLK_NUMLOCK = 300, + SDLK_CAPSLOCK = 301, + SDLK_SCROLLOCK = 302, + SDLK_RSHIFT = 303, + SDLK_LSHIFT = 304, + SDLK_RCTRL = 305, + SDLK_LCTRL = 306, + SDLK_RALT = 307, + SDLK_LALT = 308, + SDLK_RMETA = 309, + SDLK_LMETA = 310, + SDLK_LSUPER = 311, + SDLK_RSUPER = 312, + SDLK_MODE = 313, + SDLK_COMPOSE = 314, + SDLK_HELP = 315, + SDLK_PRINT = 316, + SDLK_SYSREQ = 317, + SDLK_BREAK = 318, + SDLK_MENU = 319, + SDLK_POWER = 320, + SDLK_EURO = 321, + SDLK_UNDO = 322, + SDLK_LAST } SDLKey; -/** Enumeration of valid key mods (possibly OR'd together) */ -typedef enum { - KMOD_NONE = 0x0000, - KMOD_LSHIFT= 0x0001, - KMOD_RSHIFT= 0x0002, - KMOD_LCTRL = 0x0040, - KMOD_RCTRL = 0x0080, - KMOD_LALT = 0x0100, - KMOD_RALT = 0x0200, - KMOD_LMETA = 0x0400, - KMOD_RMETA = 0x0800, - KMOD_NUM = 0x1000, - KMOD_CAPS = 0x2000, - KMOD_MODE = 0x4000, - KMOD_RESERVED = 0x8000 +typedef enum SDLMod +{ + KMOD_NONE = 0x0000, + KMOD_LSHIFT= 0x0001, + KMOD_RSHIFT= 0x0002, + KMOD_LCTRL = 0x0040, + KMOD_RCTRL = 0x0080, + KMOD_LALT = 0x0100, + KMOD_RALT = 0x0200, + KMOD_LMETA = 0x0400, + KMOD_RMETA = 0x0800, + KMOD_NUM = 0x1000, + KMOD_CAPS = 0x2000, + KMOD_MODE = 0x4000, + KMOD_RESERVED = 0x8000 } SDLMod; -#define KMOD_CTRL (KMOD_LCTRL|KMOD_RCTRL) -#define KMOD_SHIFT (KMOD_LSHIFT|KMOD_RSHIFT) -#define KMOD_ALT (KMOD_LALT|KMOD_RALT) -#define KMOD_META (KMOD_LMETA|KMOD_RMETA) +#define KMOD_CTRL (KMOD_LCTRL|KMOD_RCTRL) +#define KMOD_SHIFT (KMOD_LSHIFT|KMOD_RSHIFT) +#define KMOD_ALT (KMOD_LALT|KMOD_RALT) +#define KMOD_META (KMOD_LMETA|KMOD_RMETA) + +#endif -#endif /* _SDL_keysym_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_loadso.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_loadso.h index 0c5e5362d..108029115 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_loadso.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_loadso.h @@ -1,78 +1,41 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** @file SDL_loadso.h - * System dependent library loading routines - */ - -/** @file SDL_loadso.h - * Some things to keep in mind: - * - These functions only work on C function names. Other languages may - * have name mangling and intrinsic language support that varies from - * compiler to compiler. - * - Make sure you declare your function pointers with the same calling - * convention as the actual library function. Your code will crash - * mysteriously if you do not do this. - * - Avoid namespace collisions. If you load a symbol from the library, - * it is not defined whether or not it goes into the global symbol - * namespace for the application. If it does and it conflicts with - * symbols in your code or other shared libraries, you will not get - * the results you expect. :) - */ - +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_loadso_h #define _SDL_loadso_h -#include "SDL_stdinc.h" -#include "SDL_error.h" +#include +#include -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif +#include -/** - * This function dynamically loads a shared object and returns a pointer - * to the object handle (or NULL if there was an error). - * The 'sofile' parameter is a system dependent name of the object file. - */ extern DECLSPEC void * SDLCALL SDL_LoadObject(const char *sofile); - -/** - * Given an object handle, this function looks up the address of the - * named function in the shared object and returns it. This address - * is no longer valid after calling SDL_UnloadObject(). - */ extern DECLSPEC void * SDLCALL SDL_LoadFunction(void *handle, const char *name); - -/** Unload a shared object from memory */ extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle); -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} +#include + #endif -#include "close_code.h" -#endif /* _SDL_loadso_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_main.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_main.h index ab50ef1e2..685fa863c 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_main.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_main.h @@ -1,106 +1,47 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ + #ifndef _SDL_main_h #define _SDL_main_h -#include "SDL_stdinc.h" - -/** @file SDL_main.h - * Redefine main() on Win32 and MacOS so that it is called by winmain.c - */ - -#if defined(__WIN32__) || \ - (defined(__MWERKS__) && !defined(__BEOS__)) || \ - defined(__MACOS__) || defined(__MACOSX__) || \ - defined(__SYMBIAN32__) || defined(QWS) - -#ifdef __cplusplus -#define C_LINKAGE "C" -#else -#define C_LINKAGE -#endif /* __cplusplus */ - -/** The application's main() function must be called with C linkage, - * and should be declared like this: - * @code - * #ifdef __cplusplus - * extern "C" - * #endif - * int main(int argc, char *argv[]) - * { - * } - * @endcode - */ -#define main SDL_main - -/** The prototype for the application's main() function */ -extern C_LINKAGE int SDL_main(int argc, char *argv[]); +#include +#include -/** @name From the SDL library code -- needed for registering the app on Win32 */ -/*@{*/ -#ifdef __WIN32__ - -#include "begin_code.h" -#ifdef __cplusplus -extern "C" { +#if defined(__WIN32__) || defined(__MACOSX__) +#define main SDL_main +extern int SDL_main(int argc, char *argv[]); #endif -/** This should be called from your WinMain() function, if any */ +#ifdef __WIN32__ extern DECLSPEC void SDLCALL SDL_SetModuleHandle(void *hInst); -/** This can also be called, but is no longer necessary */ extern DECLSPEC int SDLCALL SDL_RegisterApp(char *name, Uint32 style, void *hInst); -/** This can also be called, but is no longer necessary (SDL_Quit calls it) */ extern DECLSPEC void SDLCALL SDL_UnregisterApp(void); -#ifdef __cplusplus -} -#endif -#include "close_code.h" -#endif -/*@}*/ - -/** @name From the SDL library code -- needed for registering QuickDraw on MacOS */ -/*@{*/ -#if defined(__MACOS__) - -#include "begin_code.h" -#ifdef __cplusplus -extern "C" { #endif -/** Forward declaration so we don't need to include QuickDraw.h */ -struct QDGlobals; - -/** This should be called from your main() function, if any */ -extern DECLSPEC void SDLCALL SDL_InitQuickDraw(struct QDGlobals *the_qd); +#include -#ifdef __cplusplus -} #endif -#include "close_code.h" -#endif -/*@}*/ - -#endif /* Need to redefine main()? */ -#endif /* _SDL_main_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_mouse.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_mouse.h index 7c563b94d..0fbdf7e5a 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_mouse.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_mouse.h @@ -1,143 +1,72 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** @file SDL_mouse.h - * Include file for SDL mouse event handling - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_mouse_h #define _SDL_mouse_h -#include "SDL_stdinc.h" -#include "SDL_error.h" -#include "SDL_video.h" - -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct WMcursor WMcursor; /**< Implementation dependent */ -typedef struct SDL_Cursor { - SDL_Rect area; /**< The area of the mouse cursor */ - Sint16 hot_x, hot_y; /**< The "tip" of the cursor */ - Uint8 *data; /**< B/W cursor data */ - Uint8 *mask; /**< B/W cursor mask */ - Uint8 *save[2]; /**< Place to save cursor area */ - WMcursor *wm_cursor; /**< Window-manager cursor */ +#include +#include +#include + +#include + +typedef struct WMcursor WMcursor; +typedef struct SDL_Cursor +{ + SDL_Rect area; + Sint16 hot_x, hot_y; + Uint8 *data; + Uint8 *mask; + Uint8 *save[2]; + WMcursor *wm_cursor; } SDL_Cursor; -/* Function prototypes */ -/** - * Retrieve the current state of the mouse. - * The current button state is returned as a button bitmask, which can - * be tested using the SDL_BUTTON(X) macros, and x and y are set to the - * current mouse cursor position. You can pass NULL for either x or y. - */ extern DECLSPEC Uint8 SDLCALL SDL_GetMouseState(int *x, int *y); - -/** - * Retrieve the current state of the mouse. - * The current button state is returned as a button bitmask, which can - * be tested using the SDL_BUTTON(X) macros, and x and y are set to the - * mouse deltas since the last call to SDL_GetRelativeMouseState(). - */ extern DECLSPEC Uint8 SDLCALL SDL_GetRelativeMouseState(int *x, int *y); - -/** - * Set the position of the mouse cursor (generates a mouse motion event) - */ extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, Uint16 y); - -/** - * Create a cursor using the specified data and mask (in MSB format). - * The cursor width must be a multiple of 8 bits. - * - * The cursor is created in black and white according to the following: - * data mask resulting pixel on screen - * 0 1 White - * 1 1 Black - * 0 0 Transparent - * 1 0 Inverted color if possible, black if not. - * - * Cursors created with this function must be freed with SDL_FreeCursor(). - */ -extern DECLSPEC SDL_Cursor * SDLCALL SDL_CreateCursor - (Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y); - -/** - * Set the currently active cursor to the specified one. - * If the cursor is currently visible, the change will be immediately - * represented on the display. - */ +extern DECLSPEC SDL_Cursor * SDLCALL SDL_CreateCursor(Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y); extern DECLSPEC void SDLCALL SDL_SetCursor(SDL_Cursor *cursor); - -/** - * Returns the currently active cursor. - */ extern DECLSPEC SDL_Cursor * SDLCALL SDL_GetCursor(void); - -/** - * Deallocates a cursor created with SDL_CreateCursor(). - */ extern DECLSPEC void SDLCALL SDL_FreeCursor(SDL_Cursor *cursor); - -/** - * Toggle whether or not the cursor is shown on the screen. - * The cursor start off displayed, but can be turned off. - * SDL_ShowCursor() returns 1 if the cursor was being displayed - * before the call, or 0 if it was not. You can query the current - * state by passing a 'toggle' value of -1. - */ extern DECLSPEC int SDLCALL SDL_ShowCursor(int toggle); -/*@{*/ -/** Used as a mask when testing buttons in buttonstate - * Button 1: Left mouse button - * Button 2: Middle mouse button - * Button 3: Right mouse button - * Button 4: Mouse wheel up (may also be a real button) - * Button 5: Mouse wheel down (may also be a real button) - */ -#define SDL_BUTTON(X) (1 << ((X)-1)) -#define SDL_BUTTON_LEFT 1 -#define SDL_BUTTON_MIDDLE 2 -#define SDL_BUTTON_RIGHT 3 -#define SDL_BUTTON_WHEELUP 4 -#define SDL_BUTTON_WHEELDOWN 5 -#define SDL_BUTTON_X1 6 -#define SDL_BUTTON_X2 7 -#define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT) -#define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE) -#define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT) -#define SDL_BUTTON_X1MASK SDL_BUTTON(SDL_BUTTON_X1) -#define SDL_BUTTON_X2MASK SDL_BUTTON(SDL_BUTTON_X2) -/*@}*/ +#define SDL_BUTTON(X) (1 << ((X)-1)) +#define SDL_BUTTON_LEFT 1 +#define SDL_BUTTON_MIDDLE 2 +#define SDL_BUTTON_RIGHT 3 +#define SDL_BUTTON_WHEELUP 4 +#define SDL_BUTTON_WHEELDOWN 5 +#define SDL_BUTTON_X1 6 +#define SDL_BUTTON_X2 7 +#define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT) +#define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE) +#define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT) +#define SDL_BUTTON_X1MASK SDL_BUTTON(SDL_BUTTON_X1) +#define SDL_BUTTON_X2MASK SDL_BUTTON(SDL_BUTTON_X2) + +#include -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} #endif -#include "close_code.h" -#endif /* _SDL_mouse_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_mutex.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_mutex.h index c8da9b1a0..c53962eac 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_mutex.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_mutex.h @@ -1,177 +1,66 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ + #ifndef _SDL_mutex_h #define _SDL_mutex_h -/** @file SDL_mutex.h - * Functions to provide thread synchronization primitives - * - * @note These are independent of the other SDL routines. - */ - -#include "SDL_stdinc.h" -#include "SDL_error.h" +#include +#include -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** Synchronization functions which can time out return this value - * if they time out. - */ -#define SDL_MUTEX_TIMEDOUT 1 - -/** This is the timeout value which corresponds to never time out */ -#define SDL_MUTEX_MAXWAIT (~(Uint32)0) +#include - -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/** @name Mutex functions */ /*@{*/ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -/** The SDL mutex structure, defined in SDL_mutex.c */ -struct SDL_mutex; typedef struct SDL_mutex SDL_mutex; +typedef struct SDL_semaphore SDL_sem; +typedef struct SDL_cond SDL_cond; -/** Create a mutex, initialized unlocked */ extern DECLSPEC SDL_mutex * SDLCALL SDL_CreateMutex(void); - -#define SDL_LockMutex(m) SDL_mutexP(m) -/** Lock the mutex - * @return 0, or -1 on error - */ -extern DECLSPEC int SDLCALL SDL_mutexP(SDL_mutex *mutex); - -#define SDL_UnlockMutex(m) SDL_mutexV(m) -/** Unlock the mutex - * @return 0, or -1 on error - * - * It is an error to unlock a mutex that has not been locked by - * the current thread, and doing so results in undefined behavior. - */ -extern DECLSPEC int SDLCALL SDL_mutexV(SDL_mutex *mutex); - -/** Destroy a mutex */ +extern DECLSPEC int SDLCALL SDL_mutexP(SDL_mutex *mutex); /* lock */ +extern DECLSPEC int SDLCALL SDL_mutexV(SDL_mutex *mutex); /* unlock */ extern DECLSPEC void SDLCALL SDL_DestroyMutex(SDL_mutex *mutex); -/*@}*/ - -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/** @name Semaphore functions */ /*@{*/ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -/** The SDL semaphore structure, defined in SDL_sem.c */ -struct SDL_semaphore; -typedef struct SDL_semaphore SDL_sem; - -/** Create a semaphore, initialized with value, returns NULL on failure. */ extern DECLSPEC SDL_sem * SDLCALL SDL_CreateSemaphore(Uint32 initial_value); - -/** Destroy a semaphore */ -extern DECLSPEC void SDLCALL SDL_DestroySemaphore(SDL_sem *sem); - -/** - * This function suspends the calling thread until the semaphore pointed - * to by sem has a positive count. It then atomically decreases the semaphore - * count. - */ +extern DECLSPEC int SDLCALL SDL_SemPost(SDL_sem *sem); extern DECLSPEC int SDLCALL SDL_SemWait(SDL_sem *sem); - -/** Non-blocking variant of SDL_SemWait(). - * @return 0 if the wait succeeds, - * SDL_MUTEX_TIMEDOUT if the wait would block, and -1 on error. - */ -extern DECLSPEC int SDLCALL SDL_SemTryWait(SDL_sem *sem); - -/** Variant of SDL_SemWait() with a timeout in milliseconds, returns 0 if - * the wait succeeds, SDL_MUTEX_TIMEDOUT if the wait does not succeed in - * the allotted time, and -1 on error. - * - * On some platforms this function is implemented by looping with a delay - * of 1 ms, and so should be avoided if possible. - */ extern DECLSPEC int SDLCALL SDL_SemWaitTimeout(SDL_sem *sem, Uint32 ms); - -/** Atomically increases the semaphore's count (not blocking). - * @return 0, or -1 on error. - */ -extern DECLSPEC int SDLCALL SDL_SemPost(SDL_sem *sem); - -/** Returns the current count of the semaphore */ +extern DECLSPEC int SDLCALL SDL_SemTryWait(SDL_sem *sem); extern DECLSPEC Uint32 SDLCALL SDL_SemValue(SDL_sem *sem); +extern DECLSPEC void SDLCALL SDL_DestroySemaphore(SDL_sem *sem); -/*@}*/ - -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/** @name Condition_variable_functions */ /*@{*/ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -/*@{*/ -/** The SDL condition variable structure, defined in SDL_cond.c */ -struct SDL_cond; -typedef struct SDL_cond SDL_cond; -/*@}*/ - -/** Create a condition variable */ extern DECLSPEC SDL_cond * SDLCALL SDL_CreateCond(void); - -/** Destroy a condition variable */ -extern DECLSPEC void SDLCALL SDL_DestroyCond(SDL_cond *cond); - -/** Restart one of the threads that are waiting on the condition variable, - * @return 0 or -1 on error. - */ extern DECLSPEC int SDLCALL SDL_CondSignal(SDL_cond *cond); - -/** Restart all threads that are waiting on the condition variable, - * @return 0 or -1 on error. - */ extern DECLSPEC int SDLCALL SDL_CondBroadcast(SDL_cond *cond); - -/** Wait on the condition variable, unlocking the provided mutex. - * The mutex must be locked before entering this function! - * The mutex is re-locked once the condition variable is signaled. - * @return 0 when it is signaled, or -1 on error. - */ extern DECLSPEC int SDLCALL SDL_CondWait(SDL_cond *cond, SDL_mutex *mut); - -/** Waits for at most 'ms' milliseconds, and returns 0 if the condition - * variable is signaled, SDL_MUTEX_TIMEDOUT if the condition is not - * signaled in the allotted time, and -1 on error. - * On some platforms this function is implemented by looping with a delay - * of 1 ms, and so should be avoided if possible. - */ extern DECLSPEC int SDLCALL SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms); +extern DECLSPEC void SDLCALL SDL_DestroyCond(SDL_cond *cond); -/*@}*/ +#define SDL_MUTEX_TIMEDOUT 1 +#define SDL_MUTEX_MAXWAIT (~(Uint32)0) +#define SDL_LockMutex(m) SDL_mutexP(m) +#define SDL_UnlockMutex(m) SDL_mutexV(m) -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif -#include "close_code.h" +#include -#endif /* _SDL_mutex_h */ +#endif diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_name.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_name.h index 511619af5..1a63caff5 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_name.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_name.h @@ -1,11 +1,36 @@ +/* + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. +*/ + +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDLname_h_ #define _SDLname_h_ +#define SDL_NAME(X) SDL_##X + #if defined(__STDC__) || defined(__cplusplus) #define NeedFunctionPrototypes 1 #endif -#define SDL_NAME(X) SDL_##X +#endif -#endif /* _SDLname_h_ */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_opengl.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_opengl.h index 163872a6b..6adef67a2 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_opengl.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_opengl.h @@ -19,9 +19,16 @@ 3. This notice may not be removed or altered from any source distribution. */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ + +/* This file is a verbatim copy of SDL 1.2's, except for the + MacOS Classic include fixes being removed. */ + /* This is a simple file to encapsulate the OpenGL API headers */ -#include "SDL_config.h" +#include #ifdef __WIN32__ #ifndef WIN32_LEAN_AND_MEAN @@ -39,9 +46,6 @@ #if defined(__MACOSX__) #include /* Header File For The OpenGL Library */ #include /* Header File For The GLU Library */ -#elif defined(__MACOS__) -#include /* Header File For The OpenGL Library */ -#include /* Header File For The GLU Library */ #else #include /* Header File For The OpenGL Library */ #include /* Header File For The GLU Library */ @@ -3525,7 +3529,6 @@ typedef __int32 int32_t; typedef __int64 int64_t; typedef unsigned __int64 uint64_t; #endif /* */ -#elif defined(__MACOS__) /* handled by SDL_config_macos.h */ #else #include /* Fallback option */ #endif diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_platform.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_platform.h index bcbd7b666..0fb38ec73 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_platform.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_platform.h @@ -1,110 +1,182 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** @file SDL_platform.h - * Try to get a standard set of platform defines - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ -#ifndef _SDL_platform_h -#define _SDL_platform_h +#ifndef SDL_platform_h_ +#define SDL_platform_h_ + +/* this was taken from SDL2's zlib-licensed headers. This drops BeOS (not Haiku) +and MacOS Classic, but SDL2 doesn't run on them anyhow. Mac OS X target >= 10.6 +requirement is dropped too. Send patches. :) */ #if defined(_AIX) #undef __AIX__ -#define __AIX__ 1 -#endif -#if defined(__BEOS__) -#undef __BEOS__ -#define __BEOS__ 1 +#define __AIX__ 1 #endif #if defined(__HAIKU__) #undef __HAIKU__ -#define __HAIKU__ 1 +#define __HAIKU__ 1 #endif #if defined(bsdi) || defined(__bsdi) || defined(__bsdi__) #undef __BSDI__ -#define __BSDI__ 1 +#define __BSDI__ 1 #endif #if defined(_arch_dreamcast) #undef __DREAMCAST__ -#define __DREAMCAST__ 1 +#define __DREAMCAST__ 1 #endif #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) #undef __FREEBSD__ -#define __FREEBSD__ 1 -#endif -#if defined(__HAIKU__) -#undef __HAIKU__ -#define __HAIKU__ 1 +#define __FREEBSD__ 1 #endif #if defined(hpux) || defined(__hpux) || defined(__hpux__) #undef __HPUX__ -#define __HPUX__ 1 +#define __HPUX__ 1 #endif #if defined(sgi) || defined(__sgi) || defined(__sgi__) || defined(_SGI_SOURCE) #undef __IRIX__ -#define __IRIX__ 1 +#define __IRIX__ 1 #endif -#if defined(linux) || defined(__linux) || defined(__linux__) +#if (defined(linux) || defined(__linux) || defined(__linux__)) #undef __LINUX__ -#define __LINUX__ 1 +#define __LINUX__ 1 +#endif +#if defined(ANDROID) || defined(__ANDROID__) +#undef __ANDROID__ +#undef __LINUX__ /* do we need to do this? */ +#define __ANDROID__ 1 #endif + #if defined(__APPLE__) +/* lets us know what version of Mac OS X we're compiling on */ +#include +#include +#if TARGET_OS_TV +#undef __TVOS__ +#define __TVOS__ 1 +#endif +#if TARGET_OS_IPHONE +/* if compiling for iOS */ +#undef __IPHONEOS__ +#define __IPHONEOS__ 1 #undef __MACOSX__ -#define __MACOSX__ 1 -#elif defined(macintosh) -#undef __MACOS__ -#define __MACOS__ 1 -#endif +#else +/* if not compiling for iOS */ +#undef __MACOSX__ +#define __MACOSX__ 1 +#endif /* TARGET_OS_IPHONE */ +#endif /* defined(__APPLE__) */ + #if defined(__NetBSD__) #undef __NETBSD__ -#define __NETBSD__ 1 +#define __NETBSD__ 1 #endif #if defined(__OpenBSD__) #undef __OPENBSD__ -#define __OPENBSD__ 1 +#define __OPENBSD__ 1 #endif #if defined(__OS2__) || defined(__EMX__) #undef __OS2__ -#define __OS2__ 1 +#define __OS2__ 1 #endif #if defined(osf) || defined(__osf) || defined(__osf__) || defined(_OSF_SOURCE) #undef __OSF__ -#define __OSF__ 1 +#define __OSF__ 1 #endif #if defined(__QNXNTO__) #undef __QNXNTO__ -#define __QNXNTO__ 1 +#define __QNXNTO__ 1 #endif #if defined(riscos) || defined(__riscos) || defined(__riscos__) #undef __RISCOS__ -#define __RISCOS__ 1 +#define __RISCOS__ 1 #endif -#if defined(__SVR4) +#if defined(__sun) && defined(__SVR4) #undef __SOLARIS__ -#define __SOLARIS__ 1 +#define __SOLARIS__ 1 +#endif + +#if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__) +/* Try to find out if we're compiling for WinRT or non-WinRT */ +#if defined(_MSC_VER) && defined(__has_include) +#if __has_include() +#define HAVE_WINAPIFAMILY_H 1 +#else +#define HAVE_WINAPIFAMILY_H 0 +#endif + +/* If _USING_V110_SDK71_ is defined it means we are using the Windows XP toolset. */ +#elif defined(_MSC_VER) && (_MSC_VER >= 1700 && !_USING_V110_SDK71_) /* _MSC_VER == 1700 for Visual Studio 2012 */ +#define HAVE_WINAPIFAMILY_H 1 +#else +#define HAVE_WINAPIFAMILY_H 0 #endif -#if defined(WIN32) || defined(_WIN32) + +#if HAVE_WINAPIFAMILY_H +#include +#define WINAPI_FAMILY_WINRT (!WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)) +#else +#define WINAPI_FAMILY_WINRT 0 +#endif /* HAVE_WINAPIFAMILY_H */ + +#if WINAPI_FAMILY_WINRT +#undef __WINRT__ +#define __WINRT__ 1 +#else +#undef __WINDOWS__ +#define __WINDOWS__ 1 +#endif +#endif /* defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) */ + +#if defined(__WINDOWS__) #undef __WIN32__ -#define __WIN32__ 1 +#define __WIN32__ 1 +#endif +#if defined(__PSP__) +#undef __PSP__ +#define __PSP__ 1 +#endif + +/* The NACL compiler defines __native_client__ and __pnacl__ + * Ref: http://www.chromium.org/nativeclient/pnacl/stability-of-the-pnacl-bitcode-abi + */ +#if defined(__native_client__) +#undef __LINUX__ +#undef __NACL__ +#define __NACL__ 1 +#endif +#if defined(__pnacl__) +#undef __LINUX__ +#undef __PNACL__ +#define __PNACL__ 1 +/* PNACL with newlib supports static linking only */ +#define __SDL_NOGETPROCADDR__ +#endif + +#if defined(__vita__) +#define __VITA__ 1 +#endif + #endif -#endif /* _SDL_platform_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_quit.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_quit.h index abd2ec6c9..fb5076f18 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_quit.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_quit.h @@ -1,55 +1,35 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** @file SDL_quit.h - * Include file for SDL quit event handling - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_quit_h #define _SDL_quit_h -#include "SDL_stdinc.h" -#include "SDL_error.h" - -/** @file SDL_quit.h - * An SDL_QUITEVENT is generated when the user tries to close the application - * window. If it is ignored or filtered out, the window will remain open. - * If it is not ignored or filtered, it is queued normally and the window - * is allowed to close. When the window is closed, screen updates will - * complete, but have no effect. - * - * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) - * and SIGTERM (system termination request), if handlers do not already - * exist, that generate SDL_QUITEVENT events as well. There is no way - * to determine the cause of an SDL_QUITEVENT, but setting a signal - * handler in your application will override the default generation of - * quit events for that signal. - */ - -/** @file SDL_quit.h - * There are no functions directly affecting the quit event - */ - -#define SDL_QuitRequested() \ - (SDL_PumpEvents(), SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUITMASK)) - -#endif /* _SDL_quit_h */ +#include +#include + +#define SDL_QuitRequested() (SDL_PumpEvents(), SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUITMASK)) + +#endif + diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_rwops.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_rwops.h index 98361d7e1..a48e728f9 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_rwops.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_rwops.h @@ -1,155 +1,113 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** @file SDL_rwops.h - * This file provides a general interface for SDL to read and write - * data sources. It can easily be extended to files, memory, etc. - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_rwops_h #define _SDL_rwops_h -#include "SDL_stdinc.h" -#include "SDL_error.h" - -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { +#include +#include + +#include + +typedef struct SDL_RWops +{ + int (SDLCALL *seek)(struct SDL_RWops *context, int offset, int whence); + int (SDLCALL *read)(struct SDL_RWops *context, void *ptr, int size, int maxnum); + int (SDLCALL *write)(struct SDL_RWops *context, const void *ptr, int size, int num); + int (SDLCALL *close)(struct SDL_RWops *context); + + Uint32 type; + union + { +#if defined(__WIN32__) + struct + { + int append; + void *h; + struct + { + void *data; + int size; + int left; + } buffer; + } win32io; #endif -/** This is the read/write operation structure -- very basic */ - -typedef struct SDL_RWops { - /** Seek to 'offset' relative to whence, one of stdio's whence values: - * SEEK_SET, SEEK_CUR, SEEK_END - * Returns the final offset in the data source. - */ - int (SDLCALL *seek)(struct SDL_RWops *context, int offset, int whence); - - /** Read up to 'maxnum' objects each of size 'size' from the data - * source to the area pointed at by 'ptr'. - * Returns the number of objects read, or -1 if the read failed. - */ - int (SDLCALL *read)(struct SDL_RWops *context, void *ptr, int size, int maxnum); - - /** Write exactly 'num' objects each of size 'objsize' from the area - * pointed at by 'ptr' to data source. - * Returns 'num', or -1 if the write failed. - */ - int (SDLCALL *write)(struct SDL_RWops *context, const void *ptr, int size, int num); - - /** Close and free an allocated SDL_FSops structure */ - int (SDLCALL *close)(struct SDL_RWops *context); - - Uint32 type; - union { -#if defined(__WIN32__) && !defined(__SYMBIAN32__) - struct { - int append; - void *h; - struct { - void *data; - int size; - int left; - } buffer; - } win32io; -#endif -#ifdef HAVE_STDIO_H - struct { - int autoclose; - FILE *fp; - } stdio; -#endif - struct { - Uint8 *base; - Uint8 *here; - Uint8 *stop; - } mem; - struct { - void *data1; - } unknown; - } hidden; - + struct + { + int autoclose; + FILE *fp; + } stdio; + + struct + { + Uint8 *base; + Uint8 *here; + Uint8 *stop; + } mem; + + struct + { + void *data1; + } unknown; + } hidden; } SDL_RWops; -/** @name Functions to create SDL_RWops structures from various data sources */ -/*@{*/ - -extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFile(const char *file, const char *mode); - -#ifdef HAVE_STDIO_H extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFP(FILE *fp, int autoclose); -#endif - +extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFile(const char *file, const char *mode); extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromMem(void *mem, int size); extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromConstMem(const void *mem, int size); - extern DECLSPEC SDL_RWops * SDLCALL SDL_AllocRW(void); extern DECLSPEC void SDLCALL SDL_FreeRW(SDL_RWops *area); -/*@}*/ - -/** @name Seek Reference Points */ -/*@{*/ -#define RW_SEEK_SET 0 /**< Seek from the beginning of data */ -#define RW_SEEK_CUR 1 /**< Seek relative to current read point */ -#define RW_SEEK_END 2 /**< Seek relative to the end of data */ -/*@}*/ - -/** @name Macros to easily read and write from an SDL_RWops structure */ -/*@{*/ -#define SDL_RWseek(ctx, offset, whence) (ctx)->seek(ctx, offset, whence) -#define SDL_RWtell(ctx) (ctx)->seek(ctx, 0, RW_SEEK_CUR) -#define SDL_RWread(ctx, ptr, size, n) (ctx)->read(ctx, ptr, size, n) -#define SDL_RWwrite(ctx, ptr, size, n) (ctx)->write(ctx, ptr, size, n) -#define SDL_RWclose(ctx) (ctx)->close(ctx) -/*@}*/ - -/** @name Read an item of the specified endianness and return in native format */ -/*@{*/ extern DECLSPEC Uint16 SDLCALL SDL_ReadLE16(SDL_RWops *src); extern DECLSPEC Uint16 SDLCALL SDL_ReadBE16(SDL_RWops *src); extern DECLSPEC Uint32 SDLCALL SDL_ReadLE32(SDL_RWops *src); extern DECLSPEC Uint32 SDLCALL SDL_ReadBE32(SDL_RWops *src); extern DECLSPEC Uint64 SDLCALL SDL_ReadLE64(SDL_RWops *src); extern DECLSPEC Uint64 SDLCALL SDL_ReadBE64(SDL_RWops *src); -/*@}*/ -/** @name Write an item of native format to the specified endianness */ -/*@{*/ extern DECLSPEC int SDLCALL SDL_WriteLE16(SDL_RWops *dst, Uint16 value); extern DECLSPEC int SDLCALL SDL_WriteBE16(SDL_RWops *dst, Uint16 value); extern DECLSPEC int SDLCALL SDL_WriteLE32(SDL_RWops *dst, Uint32 value); extern DECLSPEC int SDLCALL SDL_WriteBE32(SDL_RWops *dst, Uint32 value); extern DECLSPEC int SDLCALL SDL_WriteLE64(SDL_RWops *dst, Uint64 value); extern DECLSPEC int SDLCALL SDL_WriteBE64(SDL_RWops *dst, Uint64 value); -/*@}*/ -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} +#define RW_SEEK_SET 0 +#define RW_SEEK_CUR 1 +#define RW_SEEK_END 2 + +#define SDL_RWseek(ctx, offset, whence) (ctx)->seek(ctx, offset, whence) +#define SDL_RWtell(ctx) (ctx)->seek(ctx, 0, RW_SEEK_CUR) +#define SDL_RWread(ctx, ptr, size, n) (ctx)->read(ctx, ptr, size, n) +#define SDL_RWwrite(ctx, ptr, size, n) (ctx)->write(ctx, ptr, size, n) +#define SDL_RWclose(ctx) (ctx)->close(ctx) + +#include + #endif -#include "close_code.h" -#endif /* _SDL_rwops_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_stdinc.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_stdinc.h index e8e542f14..39e5b1dfa 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_stdinc.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_stdinc.h @@ -1,107 +1,42 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** @file SDL_stdinc.h - * This is a general header that includes C language support - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_stdinc_h #define _SDL_stdinc_h -#include "SDL_config.h" +#include - -#ifdef HAVE_SYS_TYPES_H -#include -#endif -#ifdef HAVE_STDIO_H +/* we are running under the assumption that if you have SDL2, you _probably_ +have these standard headers. If not, send patches. */ #include -#endif -#if defined(STDC_HEADERS) -# include -# include -# include -#else -# if defined(HAVE_STDLIB_H) -# include -# elif defined(HAVE_MALLOC_H) -# include -# endif -# if defined(HAVE_STDDEF_H) -# include -# endif -# if defined(HAVE_STDARG_H) -# include -# endif -#endif -#ifdef HAVE_STRING_H -# if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H) -# include -# endif -# include -#endif -#ifdef HAVE_STRINGS_H -# include -#endif -#if defined(HAVE_INTTYPES_H) -# include -#elif defined(HAVE_STDINT_H) -# include -#endif -#ifdef HAVE_CTYPE_H -# include -#endif -#if defined(HAVE_ICONV) && defined(HAVE_ICONV_H) -# include -#endif -#if defined(HAVE_ALLOCA) && !defined(alloca) -# if defined(HAVE_ALLOCA_H) -# include -# elif defined(__GNUC__) -# define alloca __builtin_alloca -# elif defined(_MSC_VER) -# include -# define alloca _alloca -# elif defined(__WATCOMC__) -# include -# elif defined(__BORLANDC__) -# include -# elif defined(__DMC__) -# include -# elif defined(__AIX__) - #pragma alloca -# elif defined(__MRC__) - void *alloca (unsigned); -# else - void *alloca (size_t); -# endif -#endif - -/** The number of elements in an array */ -#define SDL_arraysize(array) (sizeof(array)/sizeof(array[0])) -#define SDL_TABLESIZE(table) SDL_arraysize(table) - -/* Use proper C++ casts when compiled as C++ to be compatible with the option - -Wold-style-cast of GCC (and -Werror=old-style-cast in GCC 4.2 and above. */ +#include +#include + +#define SDL_arraysize(array) (sizeof(array)/sizeof(array[0])) +#define SDL_TABLESIZE(table) SDL_arraysize(table) + #ifdef __cplusplus #define SDL_reinterpret_cast(type, expression) reinterpret_cast(expression) #define SDL_static_cast(type, expression) static_cast(expression) @@ -110,40 +45,22 @@ #define SDL_static_cast(type, expression) ((type)(expression)) #endif -/** @name Basic data types */ -/*@{*/ -typedef enum { - SDL_FALSE = 0, - SDL_TRUE = 1 +typedef enum SDL_bool +{ + SDL_FALSE, + SDL_TRUE } SDL_bool; -typedef int8_t Sint8; -typedef uint8_t Uint8; -typedef int16_t Sint16; -typedef uint16_t Uint16; -typedef int32_t Sint32; -typedef uint32_t Uint32; - -#ifdef SDL_HAS_64BIT_TYPE -typedef int64_t Sint64; -#ifndef SYMBIAN32_GCCE -typedef uint64_t Uint64; -#endif -#else -/* This is really just a hack to prevent the compiler from complaining */ -typedef struct { - Uint32 hi; - Uint32 lo; -} Uint64, Sint64; -#endif - -/*@}*/ - -/** @name Make sure the types really have the right sizes */ -/*@{*/ -#define SDL_COMPILE_TIME_ASSERT(name, x) \ - typedef int SDL_dummy_ ## name[(x) * 2 - 1] +typedef int8_t Sint8; +typedef uint8_t Uint8; +typedef int16_t Sint16; +typedef uint16_t Uint16; +typedef int32_t Sint32; +typedef uint32_t Uint32; +typedef uint64_t Uint64; +typedef int64_t Sint64; +#define SDL_COMPILE_TIME_ASSERT(name, x) typedef int SDL_dummy_ ## name[(x) * 2 - 1] SDL_COMPILE_TIME_ASSERT(uint8, sizeof(Uint8) == 1); SDL_COMPILE_TIME_ASSERT(sint8, sizeof(Sint8) == 1); SDL_COMPILE_TIME_ASSERT(uint16, sizeof(Uint16) == 2); @@ -152,475 +69,357 @@ SDL_COMPILE_TIME_ASSERT(uint32, sizeof(Uint32) == 4); SDL_COMPILE_TIME_ASSERT(sint32, sizeof(Sint32) == 4); SDL_COMPILE_TIME_ASSERT(uint64, sizeof(Uint64) == 8); SDL_COMPILE_TIME_ASSERT(sint64, sizeof(Sint64) == 8); -/*@}*/ -/** @name Enum Size Check - * Check to make sure enums are the size of ints, for structure packing. - * For both Watcom C/C++ and Borland C/C++ the compiler option that makes - * enums having the size of an int must be enabled. - * This is "-b" for Borland C/C++ and "-ei" for Watcom C/C++ (v11). - */ -/* Enable enums always int in CodeWarrior (for MPW use "-enum int") */ -#ifdef __MWERKS__ -#pragma enumsalwaysint on -#endif - -typedef enum { - DUMMY_ENUM_VALUE +typedef enum SDL_DUMMY_ENUM +{ + DUMMY_ENUM_VALUE } SDL_DUMMY_ENUM; -#ifndef __NDS__ SDL_COMPILE_TIME_ASSERT(enum, sizeof(SDL_DUMMY_ENUM) == sizeof(int)); + +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_STDIO_H +#include +#endif +#if defined(HAVE_STDLIB_H) +#include +#elif defined(HAVE_MALLOC_H) +#include +#endif +#ifdef HAVE_STDDEF_H +#include +#endif +#ifdef HAVE_STDARG_H +#include +#endif +#ifdef HAVE_STRING_H +#include +#endif +#ifdef HAVE_STRINGS_H +#include +#endif +#if defined(HAVE_INTTYPES_H) +#include +#elif defined(HAVE_STDINT_H) +#include +#endif +#ifdef HAVE_CTYPE_H +#include +#endif +#ifdef HAVE_ICONV_H +#include +#endif +#ifdef HAVE_ALLOCA_H +#include #endif -/*@}*/ -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { +#include + +/* sdl12-compat always supplies these functions, but the real SDL 1.2 might +not, so we try to #define them to be the C runtime equivalents as possible, +so things built with these headers will still run against the real SDL 1.2. */ + +#ifdef HAVE_ICONV +#define SDL_iconv_t iconv_t +#define SDL_iconv_open iconv_open +#define SDL_iconv_close iconv_close +#else +typedef struct _SDL_iconv_t *SDL_iconv_t; +extern DECLSPEC SDL_iconv_t SDLCALL SDL_iconv_open(const char *tocode, const char *fromcode); +extern DECLSPEC int SDLCALL SDL_iconv_close(SDL_iconv_t cd); #endif +extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); +extern DECLSPEC char * SDLCALL SDL_iconv_string(const char *tocode, const char *fromcode, const char *inbuf, size_t inbytesleft); #ifdef HAVE_MALLOC -#define SDL_malloc malloc +#define SDL_malloc malloc #else extern DECLSPEC void * SDLCALL SDL_malloc(size_t size); #endif #ifdef HAVE_CALLOC -#define SDL_calloc calloc +#define SDL_calloc calloc #else extern DECLSPEC void * SDLCALL SDL_calloc(size_t nmemb, size_t size); #endif #ifdef HAVE_REALLOC -#define SDL_realloc realloc +#define SDL_realloc realloc #else extern DECLSPEC void * SDLCALL SDL_realloc(void *mem, size_t size); #endif #ifdef HAVE_FREE -#define SDL_free free +#define SDL_free free #else extern DECLSPEC void SDLCALL SDL_free(void *mem); #endif -#ifdef HAVE_ALLOCA -#define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*(count)) -#define SDL_stack_free(data) -#else -#define SDL_stack_alloc(type, count) (type*)SDL_malloc(sizeof(type)*(count)) -#define SDL_stack_free(data) SDL_free(data) -#endif - #ifdef HAVE_GETENV -#define SDL_getenv getenv +#define SDL_getenv getenv #else extern DECLSPEC char * SDLCALL SDL_getenv(const char *name); #endif #ifdef HAVE_PUTENV -#define SDL_putenv putenv +#define SDL_putenv putenv #else extern DECLSPEC int SDLCALL SDL_putenv(const char *variable); #endif #ifdef HAVE_QSORT -#define SDL_qsort qsort -#else -extern DECLSPEC void SDLCALL SDL_qsort(void *base, size_t nmemb, size_t size, - int (*compare)(const void *, const void *)); -#endif - -#ifdef HAVE_ABS -#define SDL_abs abs -#else -#define SDL_abs(X) ((X) < 0 ? -(X) : (X)) -#endif - -#define SDL_min(x, y) (((x) < (y)) ? (x) : (y)) -#define SDL_max(x, y) (((x) > (y)) ? (x) : (y)) - -#ifdef HAVE_CTYPE_H -#define SDL_isdigit(X) isdigit(X) -#define SDL_isspace(X) isspace(X) -#define SDL_toupper(X) toupper(X) -#define SDL_tolower(X) tolower(X) +#define SDL_qsort qsort #else -#define SDL_isdigit(X) (((X) >= '0') && ((X) <= '9')) -#define SDL_isspace(X) (((X) == ' ') || ((X) == '\t') || ((X) == '\r') || ((X) == '\n')) -#define SDL_toupper(X) (((X) >= 'a') && ((X) <= 'z') ? ('A'+((X)-'a')) : (X)) -#define SDL_tolower(X) (((X) >= 'A') && ((X) <= 'Z') ? ('a'+((X)-'A')) : (X)) +extern DECLSPEC void SDLCALL SDL_qsort(void *base, size_t nmemb, size_t size, int (*compare)(const void *, const void *)); #endif #ifdef HAVE_MEMSET -#define SDL_memset memset +#define SDL_memset memset #else extern DECLSPEC void * SDLCALL SDL_memset(void *dst, int c, size_t len); #endif -#if defined(__GNUC__) && defined(__i386__) -#define SDL_memset4(dst, val, len) \ -do { \ - int u0, u1, u2; \ - __asm__ __volatile__ ( \ - "cld\n\t" \ - "rep ; stosl\n\t" \ - : "=&D" (u0), "=&a" (u1), "=&c" (u2) \ - : "0" (dst), "1" (val), "2" (SDL_static_cast(Uint32, len)) \ - : "memory" ); \ -} while(0) -#endif -#ifndef SDL_memset4 -#define SDL_memset4(dst, val, len) \ -do { \ - unsigned _count = (len); \ - unsigned _n = (_count + 3) / 4; \ - Uint32 *_p = SDL_static_cast(Uint32 *, dst); \ - Uint32 _val = (val); \ - if (len == 0) break; \ - switch (_count % 4) { \ - case 0: do { *_p++ = _val; \ - case 3: *_p++ = _val; \ - case 2: *_p++ = _val; \ - case 1: *_p++ = _val; \ - } while ( --_n ); \ - } \ -} while(0) -#endif - -/* We can count on memcpy existing on Mac OS X and being well-tuned. */ -#if defined(__MACH__) && defined(__APPLE__) -#define SDL_memcpy(dst, src, len) memcpy(dst, src, len) -#elif defined(__GNUC__) && defined(__i386__) -#define SDL_memcpy(dst, src, len) \ -do { \ - int u0, u1, u2; \ - __asm__ __volatile__ ( \ - "cld\n\t" \ - "rep ; movsl\n\t" \ - "testb $2,%b4\n\t" \ - "je 1f\n\t" \ - "movsw\n" \ - "1:\ttestb $1,%b4\n\t" \ - "je 2f\n\t" \ - "movsb\n" \ - "2:" \ - : "=&c" (u0), "=&D" (u1), "=&S" (u2) \ - : "0" (SDL_static_cast(unsigned, len)/4), "q" (len), "1" (dst),"2" (src) \ - : "memory" ); \ -} while(0) -#endif -#ifndef SDL_memcpy #ifdef HAVE_MEMCPY -#define SDL_memcpy memcpy -#elif defined(HAVE_BCOPY) -#define SDL_memcpy(d, s, n) bcopy((s), (d), (n)) +#define SDL_memcpy memcpy #else extern DECLSPEC void * SDLCALL SDL_memcpy(void *dst, const void *src, size_t len); #endif -#endif -/* We can count on memcpy existing on Mac OS X and being well-tuned. */ -#if defined(__MACH__) && defined(__APPLE__) -#define SDL_memcpy4(dst, src, len) memcpy(dst, src, (len)*4) -#elif defined(__GNUC__) && defined(__i386__) -#define SDL_memcpy4(dst, src, len) \ -do { \ - int ecx, edi, esi; \ - __asm__ __volatile__ ( \ - "cld\n\t" \ - "rep ; movsl" \ - : "=&c" (ecx), "=&D" (edi), "=&S" (esi) \ - : "0" (SDL_static_cast(unsigned, len)), "1" (dst), "2" (src) \ - : "memory" ); \ -} while(0) -#endif -#ifndef SDL_memcpy4 -#define SDL_memcpy4(dst, src, len) SDL_memcpy(dst, src, (len) << 2) -#endif - -#if defined(__GNUC__) && defined(__i386__) -#define SDL_revcpy(dst, src, len) \ -do { \ - int u0, u1, u2; \ - char *dstp = SDL_static_cast(char *, dst); \ - char *srcp = SDL_static_cast(char *, src); \ - int n = (len); \ - if ( n >= 4 ) { \ - __asm__ __volatile__ ( \ - "std\n\t" \ - "rep ; movsl\n\t" \ - "cld\n\t" \ - : "=&c" (u0), "=&D" (u1), "=&S" (u2) \ - : "0" (n >> 2), \ - "1" (dstp+(n-4)), "2" (srcp+(n-4)) \ - : "memory" ); \ - } \ - switch (n & 3) { \ - case 3: dstp[2] = srcp[2]; \ - case 2: dstp[1] = srcp[1]; \ - case 1: dstp[0] = srcp[0]; \ - break; \ - default: \ - break; \ - } \ -} while(0) -#endif -#ifndef SDL_revcpy -extern DECLSPEC void * SDLCALL SDL_revcpy(void *dst, const void *src, size_t len); -#endif - -#ifdef HAVE_MEMMOVE -#define SDL_memmove memmove -#elif defined(HAVE_BCOPY) -#define SDL_memmove(d, s, n) bcopy((s), (d), (n)) +#ifdef HAVE_REVCPY +#define SDL_revcpy revcpy #else -#define SDL_memmove(dst, src, len) \ -do { \ - if ( dst < src ) { \ - SDL_memcpy(dst, src, len); \ - } else { \ - SDL_revcpy(dst, src, len); \ - } \ -} while(0) +extern DECLSPEC void * SDLCALL SDL_revcpy(void *dst, const void *src, size_t len); #endif #ifdef HAVE_MEMCMP -#define SDL_memcmp memcmp +#define SDL_memcmp memcmp #else extern DECLSPEC int SDLCALL SDL_memcmp(const void *s1, const void *s2, size_t len); #endif #ifdef HAVE_STRLEN -#define SDL_strlen strlen +#define SDL_strlen strlen #else extern DECLSPEC size_t SDLCALL SDL_strlen(const char *string); #endif #ifdef HAVE_STRLCPY -#define SDL_strlcpy strlcpy +#define SDL_strlcpy strlcpy #else extern DECLSPEC size_t SDLCALL SDL_strlcpy(char *dst, const char *src, size_t maxlen); #endif #ifdef HAVE_STRLCAT -#define SDL_strlcat strlcat +#define SDL_strlcat strlcat #else extern DECLSPEC size_t SDLCALL SDL_strlcat(char *dst, const char *src, size_t maxlen); #endif -#if defined(HAVE_STRDUP) && defined(_WIN32) -#define SDL_strdup _strdup -#elif defined(HAVE_STRDUP) -#define SDL_strdup strdup +#ifdef HAVE_STRDUP +#define SDL_strdup strdup #else extern DECLSPEC char * SDLCALL SDL_strdup(const char *string); #endif #ifdef HAVE__STRREV -#define SDL_strrev _strrev +#define SDL_strrev _strrev #else extern DECLSPEC char * SDLCALL SDL_strrev(char *string); #endif #ifdef HAVE__STRUPR -#define SDL_strupr _strupr +#define SDL_strupr _strupr #else extern DECLSPEC char * SDLCALL SDL_strupr(char *string); #endif #ifdef HAVE__STRLWR -#define SDL_strlwr _strlwr +#define SDL_strlwr _strlwr #else extern DECLSPEC char * SDLCALL SDL_strlwr(char *string); #endif #ifdef HAVE_STRCHR -#define SDL_strchr strchr -#elif defined(HAVE_INDEX) -#define SDL_strchr index +#define SDL_strchr strchr #else extern DECLSPEC char * SDLCALL SDL_strchr(const char *string, int c); #endif #ifdef HAVE_STRRCHR -#define SDL_strrchr strrchr -#elif defined(HAVE_RINDEX) -#define SDL_strrchr rindex +#define SDL_strrchr strrchr #else extern DECLSPEC char * SDLCALL SDL_strrchr(const char *string, int c); #endif #ifdef HAVE_STRSTR -#define SDL_strstr strstr +#define SDL_strstr strstr #else extern DECLSPEC char * SDLCALL SDL_strstr(const char *haystack, const char *needle); #endif -#ifdef HAVE_ITOA -#define SDL_itoa itoa -#else -#define SDL_itoa(value, string, radix) SDL_ltoa((long)value, string, radix) -#endif - #ifdef HAVE__LTOA -#define SDL_ltoa _ltoa +#define SDL_ltoa _ltoa #else extern DECLSPEC char * SDLCALL SDL_ltoa(long value, char *string, int radix); #endif -#ifdef HAVE__UITOA -#define SDL_uitoa _uitoa -#else -#define SDL_uitoa(value, string, radix) SDL_ultoa((long)value, string, radix) -#endif - #ifdef HAVE__ULTOA -#define SDL_ultoa _ultoa +#define SDL_ultoa _ultoa #else extern DECLSPEC char * SDLCALL SDL_ultoa(unsigned long value, char *string, int radix); #endif #ifdef HAVE_STRTOL -#define SDL_strtol strtol +#define SDL_strtol strtol #else extern DECLSPEC long SDLCALL SDL_strtol(const char *string, char **endp, int base); #endif #ifdef HAVE_STRTOUL -#define SDL_strtoul strtoul +#define SDL_strtoul strtoul #else extern DECLSPEC unsigned long SDLCALL SDL_strtoul(const char *string, char **endp, int base); #endif -#ifdef SDL_HAS_64BIT_TYPE - #ifdef HAVE__I64TOA -#define SDL_lltoa _i64toa +#define SDL_lltoa _i64toa #else extern DECLSPEC char* SDLCALL SDL_lltoa(Sint64 value, char *string, int radix); #endif #ifdef HAVE__UI64TOA -#define SDL_ulltoa _ui64toa +#define SDL_ulltoa _ui64toa #else extern DECLSPEC char* SDLCALL SDL_ulltoa(Uint64 value, char *string, int radix); #endif #ifdef HAVE__STRTOI64 -#define SDL_strtoll _strtoi64 +#define SDL_strtoll _strtoi64 #elif defined(HAVE_STRTOLL) -#define SDL_strtoll strtoll +#define SDL_strtoll strtoll #else extern DECLSPEC Sint64 SDLCALL SDL_strtoll(const char *string, char **endp, int base); #endif #ifdef HAVE__STRTOUI64 -#define SDL_strtoull _strtoui64 +#define SDL_strtoull _strtoui64 #elif defined(HAVE_STRTOULL) -#define SDL_strtoull strtoull +#define SDL_strtoull strtoull #else extern DECLSPEC Uint64 SDLCALL SDL_strtoull(const char *string, char **endp, int base); #endif -#endif /* SDL_HAS_64BIT_TYPE */ - #ifdef HAVE_STRTOD -#define SDL_strtod strtod +#define SDL_strtod strtod #else extern DECLSPEC double SDLCALL SDL_strtod(const char *string, char **endp); #endif -#ifdef HAVE_ATOI -#define SDL_atoi atoi -#else -#define SDL_atoi(X) SDL_strtol(X, NULL, 10) -#endif - -#ifdef HAVE_ATOF -#define SDL_atof atof -#else -#define SDL_atof(X) SDL_strtod(X, NULL) -#endif - #ifdef HAVE_STRCMP -#define SDL_strcmp strcmp +#define SDL_strcmp strcmp #else extern DECLSPEC int SDLCALL SDL_strcmp(const char *str1, const char *str2); #endif #ifdef HAVE_STRNCMP -#define SDL_strncmp strncmp +#define SDL_strncmp strncmp #else extern DECLSPEC int SDLCALL SDL_strncmp(const char *str1, const char *str2, size_t maxlen); #endif -#if defined(HAVE__STRICMP) -#define SDL_strcasecmp _stricmp -#elif defined(HAVE_STRCASECMP) -#define SDL_strcasecmp strcasecmp +#ifdef HAVE_STRCASECMP +#define SDL_strcasecmp strcasecmp +#elif defined(HAVE__STRICMP) +#define SDL_strcasecmp _stricmp #else extern DECLSPEC int SDLCALL SDL_strcasecmp(const char *str1, const char *str2); #endif -#if defined(HAVE__STRNICMP) -#define SDL_strncasecmp _strnicmp -#elif defined(HAVE_STRNCASECMP) +#ifdef HAVE_STRNCASECMP #define SDL_strncasecmp strncasecmp +#elif defined(HAVE__STRNICMP) +#define SDL_strcasecmp _strnicmp #else extern DECLSPEC int SDLCALL SDL_strncasecmp(const char *str1, const char *str2, size_t maxlen); #endif #ifdef HAVE_SSCANF -#define SDL_sscanf sscanf +#define SDL_sscanf sscanf #else extern DECLSPEC int SDLCALL SDL_sscanf(const char *text, const char *fmt, ...); #endif -#if defined(HAVE_SNPRINTF) && !(defined(__WATCOMC__) || defined(_WIN32)) -#define SDL_snprintf snprintf +#ifdef HAVE_SNPRINT +#define SDL_snprintf snprintf #else extern DECLSPEC int SDLCALL SDL_snprintf(char *text, size_t maxlen, const char *fmt, ...); #endif -#if defined(HAVE_VSNPRINTF) && !(defined(__WATCOMC__) || defined(_WIN32)) -#define SDL_vsnprintf vsnprintf +#ifdef HAVE_VSNPRINTF +#define SDL_vsnprintf vsnprintf #else extern DECLSPEC int SDLCALL SDL_vsnprintf(char *text, size_t maxlen, const char *fmt, va_list ap); #endif -/** @name SDL_ICONV Error Codes - * The SDL implementation of iconv() returns these error codes - */ -/*@{*/ -#define SDL_ICONV_ERROR (size_t)-1 -#define SDL_ICONV_E2BIG (size_t)-2 -#define SDL_ICONV_EILSEQ (size_t)-3 -#define SDL_ICONV_EINVAL (size_t)-4 -/*@}*/ -#if defined(HAVE_ICONV) && defined(HAVE_ICONV_H) -#define SDL_iconv_t iconv_t -#define SDL_iconv_open iconv_open -#define SDL_iconv_close iconv_close +/* taken from SDL2's zlib-licensed headers. */ +#define SDL_memset4(dst, val, dwords) do { \ + if (dwords > 0) { \ + size_t _n = (dwords + 3) / 4; \ + Uint32 *_p = SDL_static_cast(Uint32 *, dst); \ + const Uint32 _val = (val); \ + switch (dwords % 4) { \ + case 0: do { *_p++ = _val; /* fallthrough */ \ + case 3: *_p++ = _val; /* fallthrough */ \ + case 2: *_p++ = _val; /* fallthrough */ \ + case 1: *_p++ = _val; /* fallthrough */ \ + } while ( --_n ); \ + } \ + } \ + } while (0) + +#ifdef HAVE_ALLOCA +#define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*(count)) +#define SDL_stack_free(data) #else -typedef struct _SDL_iconv_t *SDL_iconv_t; -extern DECLSPEC SDL_iconv_t SDLCALL SDL_iconv_open(const char *tocode, const char *fromcode); -extern DECLSPEC int SDLCALL SDL_iconv_close(SDL_iconv_t cd); +#define SDL_stack_alloc(type, count) (type*)SDL_malloc(sizeof(type)*(count)) +#define SDL_stack_free(data) SDL_free(data) #endif -extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); -/** This function converts a string between encodings in one pass, returning a - * string that must be freed with SDL_free() or NULL on error. - */ -extern DECLSPEC char * SDLCALL SDL_iconv_string(const char *tocode, const char *fromcode, const char *inbuf, size_t inbytesleft); -#define SDL_iconv_utf8_locale(S) SDL_iconv_string("", "UTF-8", S, SDL_strlen(S)+1) -#define SDL_iconv_utf8_ucs2(S) (Uint16 *)SDL_iconv_string("UCS-2", "UTF-8", S, SDL_strlen(S)+1) -#define SDL_iconv_utf8_ucs4(S) (Uint32 *)SDL_iconv_string("UCS-4", "UTF-8", S, SDL_strlen(S)+1) -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} +/* we're currently assuming you actually have these parts of the C runtime. Send patches if not. */ +#define SDL_abs abs +#define SDL_min(x, y) (((x) < (y)) ? (x) : (y)) +#define SDL_max(x, y) (((x) > (y)) ? (x) : (y)) + +#define SDL_isdigit(X) isdigit(X) +#define SDL_isspace(X) isspace(X) +#define SDL_toupper(X) toupper(X) +#define SDL_tolower(X) tolower(X) + +#define SDL_memcpy4(dst, src, len) SDL_memcpy(dst, src, (len) << 2) + +#ifdef HAVE_MEMMOVE +#define SDL_memmove memmove +#else +#define SDL_memmove(dst, src, len) do { if ( dst < src ) { SDL_memcpy(dst, src, len); } else { SDL_revcpy(dst, src, len); } } while(0) #endif -#include "close_code.h" + +#define SDL_itoa(value, string, radix) SDL_ltoa((long)value, string, radix) +#define SDL_uitoa(value, string, radix) SDL_ultoa((long)value, string, radix) +#define SDL_atoi(X) SDL_strtol(X, NULL, 10) +#define SDL_atof(X) SDL_strtod(X, NULL) + +#define SDL_ICONV_ERROR (size_t)-1 +#define SDL_ICONV_E2BIG (size_t)-2 +#define SDL_ICONV_EILSEQ (size_t)-3 +#define SDL_ICONV_EINVAL (size_t)-4 + +#define SDL_iconv_utf8_locale(S) SDL_iconv_string("", "UTF-8", S, SDL_strlen(S)+1) +#define SDL_iconv_utf8_ucs2(S) (Uint16 *)SDL_iconv_string("UCS-2", "UTF-8", S, SDL_strlen(S)+1) +#define SDL_iconv_utf8_ucs4(S) (Uint32 *)SDL_iconv_string("UCS-4", "UTF-8", S, SDL_strlen(S)+1) + +#include #endif /* _SDL_stdinc_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_syswm.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_syswm.h index 40845b641..dfbfe91b3 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_syswm.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_syswm.h @@ -1,232 +1,131 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** @file SDL_syswm.h - * Include file for SDL custom system window manager hooks - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_syswm_h #define _SDL_syswm_h -#include "SDL_stdinc.h" -#include "SDL_error.h" -#include "SDL_version.h" +#include +#include +#include #ifndef SDL_PROTOTYPES_ONLY -# if defined(SDL_VIDEO_DRIVER_X11) -# if defined(__APPLE__) && defined(__MACH__) -# define Cursor X11Cursor /* conflicts with Quickdraw.h */ -# endif -# include -# include -# if defined(__APPLE__) && defined(__MACH__) -# undef Cursor -# endif -# elif defined(SDL_VIDEO_DRIVER_NANOX) -# include -# elif defined(SDL_VIDEO_DRIVER_WINDIB) || defined(SDL_VIDEO_DRIVER_DDRAW) || defined(SDL_VIDEO_DRIVER_GAPI) -# ifndef WIN32_LEAN_AND_MEAN -# define WIN32_LEAN_AND_MEAN -# endif -# include -# elif defined(SDL_VIDEO_DRIVER_PHOTON) -# include -# include -# endif -#endif -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif +# if defined(__WIN32__) +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif +# include + +# include "begin_code.h" + + struct SDL_SysWMmsg + { + SDL_version version; + HWND hwnd; + UINT msg; + WPARAM wParam; + LPARAM lParam; + }; + + typedef struct SDL_SysWMinfo { + SDL_version version; + HWND window; + HGLRC hglrc; + } SDL_SysWMinfo; + +# include "close_code.h" + +# elif defined(SDL_VIDEO_DRIVER_X11) +# include +# include + +# include "begin_code.h" + + typedef enum SDL_SYSWM_TYPE + { + SDL_SYSWM_X11 + } SDL_SYSWM_TYPE; + + struct SDL_SysWMmsg + { + SDL_version version; + SDL_SYSWM_TYPE subsystem; + union { + XEvent xevent; + } event; + }; + + typedef struct SDL_SysWMinfo + { + SDL_version version; + SDL_SYSWM_TYPE subsystem; + union { + struct { + Display *display; + Window window; + void (*lock_func)(void); + void (*unlock_func)(void); + Window fswindow; + Window wmwindow; + Display *gfxdisplay; + } x11; + } info; + } SDL_SysWMinfo; + +# include "close_code.h" + +# else + +# include + + struct SDL_SysWMmsg + { + SDL_version version; + int data; + }; + + typedef struct SDL_SysWMinfo + { + SDL_version version; + int data; + } SDL_SysWMinfo; + +# include + +# endif -/** @file SDL_syswm.h - * Your application has access to a special type of event 'SDL_SYSWMEVENT', - * which contains window-manager specific information and arrives whenever - * an unhandled window event occurs. This event is ignored by default, but - * you can enable it with SDL_EventState() - */ -struct SDL_SysWMinfo; -typedef struct SDL_SysWMinfo SDL_SysWMinfo; +#endif -#ifndef SDL_PROTOTYPES_ONLY +#include -/* This is the structure for custom window manager events */ -#if defined(SDL_VIDEO_DRIVER_X11) - -/** These are the various supported subsystems under UNIX */ -typedef enum { - SDL_SYSWM_X11 -} SDL_SYSWM_TYPE; - -/** The UNIX custom event structure */ -struct SDL_SysWMmsg { - SDL_version version; - SDL_SYSWM_TYPE subsystem; - union { - XEvent xevent; - } event; -}; - -/** The UNIX custom window manager information structure. - * When this structure is returned, it holds information about which - * low level system it is using, and will be one of SDL_SYSWM_TYPE. - */ -struct SDL_SysWMinfo { - SDL_version version; - SDL_SYSWM_TYPE subsystem; - union { - struct { - Display *display; /**< The X11 display */ - Window window; /**< The X11 display window */ - /** These locking functions should be called around - * any X11 functions using the display variable, - * but not the gfxdisplay variable. - * They lock the event thread, so should not be - * called around event functions or from event filters. - */ - /*@{*/ - void (*lock_func)(void); - void (*unlock_func)(void); - /*@}*/ - - /** @name Introduced in SDL 1.0.2 */ - /*@{*/ - Window fswindow; /**< The X11 fullscreen window */ - Window wmwindow; /**< The X11 managed input window */ - /*@}*/ - - /** @name Introduced in SDL 1.2.12 */ - /*@{*/ - Display *gfxdisplay; /**< The X11 display to which rendering is done */ - /*@}*/ - } x11; - } info; -}; - -#elif defined(SDL_VIDEO_DRIVER_NANOX) - -/** The generic custom event structure */ -struct SDL_SysWMmsg { - SDL_version version; - int data; -}; - -/** The windows custom window manager information structure */ -struct SDL_SysWMinfo { - SDL_version version ; - GR_WINDOW_ID window ; /* The display window */ -}; - -#elif defined(SDL_VIDEO_DRIVER_WINDIB) || defined(SDL_VIDEO_DRIVER_DDRAW) || defined(SDL_VIDEO_DRIVER_GAPI) - -/** The windows custom event structure */ -struct SDL_SysWMmsg { - SDL_version version; - HWND hwnd; /**< The window for the message */ - UINT msg; /**< The type of message */ - WPARAM wParam; /**< WORD message parameter */ - LPARAM lParam; /**< LONG message parameter */ -}; - -/** The windows custom window manager information structure */ -struct SDL_SysWMinfo { - SDL_version version; - HWND window; /**< The Win32 display window */ - HGLRC hglrc; /**< The OpenGL context, if any */ -}; - -#elif defined(SDL_VIDEO_DRIVER_RISCOS) - -/** RISC OS custom event structure */ -struct SDL_SysWMmsg { - SDL_version version; - int eventCode; /**< The window for the message */ - int pollBlock[64]; -}; - -/** The RISC OS custom window manager information structure */ -struct SDL_SysWMinfo { - SDL_version version; - int wimpVersion; /**< Wimp version running under */ - int taskHandle; /**< The RISC OS task handle */ - int window; /**< The RISC OS display window */ -}; - -#elif defined(SDL_VIDEO_DRIVER_PHOTON) - -/** The QNX custom event structure */ -struct SDL_SysWMmsg { - SDL_version version; - int data; -}; - -/** The QNX custom window manager information structure */ -struct SDL_SysWMinfo { - SDL_version version; - int data; -}; - -#else - -/** The generic custom event structure */ -struct SDL_SysWMmsg { - SDL_version version; - int data; -}; - -/** The generic custom window manager information structure */ -struct SDL_SysWMinfo { - SDL_version version; - int data; -}; - -#endif /* video driver type */ - -#endif /* SDL_PROTOTYPES_ONLY */ - -/* Function prototypes */ -/** - * This function gives you custom hooks into the window manager information. - * It fills the structure pointed to by 'info' with custom information and - * returns 0 if the function is not implemented, 1 if the function is - * implemented and no error occurred, and -1 if the version member of - * the 'info' structure is not filled in or not supported. - * - * You typically use this function like this: - * @code - * SDL_SysWMinfo info; - * SDL_VERSION(&info.version); - * if ( SDL_GetWMInfo(&info) ) { ... } - * @endcode - */ extern DECLSPEC int SDLCALL SDL_GetWMInfo(SDL_SysWMinfo *info); +typedef struct SDL_Window SDL_Window; +extern DECLSPEC SDL_Window * SDLCALL SDL12COMPAT_GetWindow(void); + +#include -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} #endif -#include "close_code.h" -#endif /* _SDL_syswm_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_thread.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_thread.h index b7d5a9172..805e00bbd 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_thread.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_thread.h @@ -1,118 +1,64 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ + #ifndef _SDL_thread_h #define _SDL_thread_h -/** @file SDL_thread.h - * Header for the SDL thread management routines - * - * @note These are independent of the other SDL routines. - */ - -#include "SDL_stdinc.h" -#include "SDL_error.h" +#include +#include +#include -/* Thread synchronization primitives */ -#include "SDL_mutex.h" - -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** The SDL thread structure, defined in SDL_thread.c */ -struct SDL_Thread; -typedef struct SDL_Thread SDL_Thread; - -/** Create a thread */ -#if ((defined(__WIN32__) && !defined(HAVE_LIBC)) || defined(__OS2__)) && !defined(__SYMBIAN32__) -/** - * We compile SDL into a DLL on OS/2. This means, that it's the DLL which - * creates a new thread for the calling process with the SDL_CreateThread() - * API. There is a problem with this, that only the RTL of the SDL.DLL will - * be initialized for those threads, and not the RTL of the calling application! - * To solve this, we make a little hack here. - * We'll always use the caller's _beginthread() and _endthread() APIs to - * start a new thread. This way, if it's the SDL.DLL which uses this API, - * then the RTL of SDL.DLL will be used to create the new thread, and if it's - * the application, then the RTL of the application will be used. - * So, in short: - * Always use the _beginthread() and _endthread() of the calling runtime library! - */ -#define SDL_PASSED_BEGINTHREAD_ENDTHREAD -#ifndef _WIN32_WCE -#include /* This has _beginthread() and _endthread() defined! */ -#endif +#ifdef __OS2__ /* for _beginthread() and _endthread(). */ +#include #ifdef __EMX__ #include #endif - -#ifdef __OS2__ -typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg); -typedef void (*pfnSDL_CurrentEndThread)(void); -#else -typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned, - unsigned (__stdcall *func)(void *), void *arg, - unsigned, unsigned *threadID); -typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code); #endif -extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread); +#include + +typedef struct SDL_Thread SDL_Thread; +/* No _beginthread()/_endthread() magic for windows -- only for os2: + * Official Windows versions of SDL-1.2 >= 1.2.10 were always built + * with HAVE_LIBC, i.e.: *without* SDL_PASSED_BEGINTHREAD_ENDTHREAD + * defined, in order to keep binary compatibility with SDL <= 1.2.9. */ #ifdef __OS2__ +typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg); +typedef void (*pfnSDL_CurrentEndThread)(void); +extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread); +#define SDL_PASSED_BEGINTHREAD_ENDTHREAD #define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, _beginthread, _endthread) -#elif defined(_WIN32_WCE) -#define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, NULL, NULL) -#else -#define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, _beginthreadex, _endthreadex) -#endif #else extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data); #endif - -/** Get the 32-bit thread identifier for the current thread */ extern DECLSPEC Uint32 SDLCALL SDL_ThreadID(void); - -/** Get the 32-bit thread identifier for the specified thread, - * equivalent to SDL_ThreadID() if the specified thread is NULL. - */ extern DECLSPEC Uint32 SDLCALL SDL_GetThreadID(SDL_Thread *thread); - -/** Wait for a thread to finish. - * The return code for the thread function is placed in the area - * pointed to by 'status', if 'status' is not NULL. - */ extern DECLSPEC void SDLCALL SDL_WaitThread(SDL_Thread *thread, int *status); - -/** Forcefully kill a thread without worrying about its state */ extern DECLSPEC void SDLCALL SDL_KillThread(SDL_Thread *thread); +#include -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} #endif -#include "close_code.h" - -#endif /* _SDL_thread_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_timer.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_timer.h index d764d5f38..c2a09e131 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_timer.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_timer.h @@ -1,125 +1,51 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ + #ifndef _SDL_timer_h #define _SDL_timer_h -/** @file SDL_timer.h - * Header for the SDL time management routines - */ +#include +#include -#include "SDL_stdinc.h" -#include "SDL_error.h" +#include -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** This is the OS scheduler timeslice, in milliseconds */ -#define SDL_TIMESLICE 10 - -/** This is the maximum resolution of the SDL timer on all platforms */ -#define TIMER_RESOLUTION 10 /**< Experimentally determined */ +typedef struct _SDL_TimerID *SDL_TimerID; +typedef Uint32 (SDLCALL *SDL_TimerCallback)(Uint32 interval); +typedef Uint32 (SDLCALL *SDL_NewTimerCallback)(Uint32 interval, void *param); -/** - * Get the number of milliseconds since the SDL library initialization. - * Note that this value wraps if the program runs for more than ~49 days. - */ extern DECLSPEC Uint32 SDLCALL SDL_GetTicks(void); - -/** Wait a specified number of milliseconds before returning */ extern DECLSPEC void SDLCALL SDL_Delay(Uint32 ms); -/** Function prototype for the timer callback function */ -typedef Uint32 (SDLCALL *SDL_TimerCallback)(Uint32 interval); - -/** - * Set a callback to run after the specified number of milliseconds has - * elapsed. The callback function is passed the current timer interval - * and returns the next timer interval. If the returned value is the - * same as the one passed in, the periodic alarm continues, otherwise a - * new alarm is scheduled. If the callback returns 0, the periodic alarm - * is cancelled. - * - * To cancel a currently running timer, call SDL_SetTimer(0, NULL); - * - * The timer callback function may run in a different thread than your - * main code, and so shouldn't call any functions from within itself. - * - * The maximum resolution of this timer is 10 ms, which means that if - * you request a 16 ms timer, your callback will run approximately 20 ms - * later on an unloaded system. If you wanted to set a flag signaling - * a frame update at 30 frames per second (every 33 ms), you might set a - * timer for 30 ms: - * @code SDL_SetTimer((33/10)*10, flag_update); @endcode - * - * If you use this function, you need to pass SDL_INIT_TIMER to SDL_Init(). - * - * Under UNIX, you should not use raise or use SIGALRM and this function - * in the same program, as it is implemented using setitimer(). You also - * should not use this function in multi-threaded applications as signals - * to multi-threaded apps have undefined behavior in some implementations. - * - * This function returns 0 if successful, or -1 if there was an error. - */ extern DECLSPEC int SDLCALL SDL_SetTimer(Uint32 interval, SDL_TimerCallback callback); - -/** @name New timer API - * New timer API, supports multiple timers - * Written by Stephane Peter - */ -/*@{*/ - -/** - * Function prototype for the new timer callback function. - * The callback function is passed the current timer interval and returns - * the next timer interval. If the returned value is the same as the one - * passed in, the periodic alarm continues, otherwise a new alarm is - * scheduled. If the callback returns 0, the periodic alarm is cancelled. - */ -typedef Uint32 (SDLCALL *SDL_NewTimerCallback)(Uint32 interval, void *param); - -/** Definition of the timer ID type */ -typedef struct _SDL_TimerID *SDL_TimerID; - -/** Add a new timer to the pool of timers already running. - * Returns a timer ID, or NULL when an error occurs. - */ extern DECLSPEC SDL_TimerID SDLCALL SDL_AddTimer(Uint32 interval, SDL_NewTimerCallback callback, void *param); - -/** - * Remove one of the multiple timers knowing its ID. - * Returns a boolean value indicating success. - */ extern DECLSPEC SDL_bool SDLCALL SDL_RemoveTimer(SDL_TimerID t); -/*@}*/ +#define SDL_TIMESLICE 10 +#define TIMER_RESOLUTION 10 + +#include -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} #endif -#include "close_code.h" -#endif /* _SDL_timer_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_types.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_types.h index 79d8b28dd..4989badcd 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_types.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_types.h @@ -1,28 +1,29 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** @file SDL_types.h - * @deprecated Use SDL_stdinc.h instead. - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ + + +/* this is a compatibility header, even in 1.2, that just forwards to SDL_stdinc.h */ +#include -/* DEPRECATED */ -#include "SDL_stdinc.h" diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_version.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_version.h index 4385ebf0b..087149c27 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_version.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_version.h @@ -1,91 +1,59 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** @file SDL_version.h - * This header defines the current SDL version - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_version_h #define _SDL_version_h -#include "SDL_stdinc.h" +#include -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif +#include -/** @name Version Number - * Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL - */ -/*@{*/ -#define SDL_MAJOR_VERSION 1 -#define SDL_MINOR_VERSION 2 -#define SDL_PATCHLEVEL 16 -/*@}*/ +/* We bumped the patchlevel to 50 for sdl12-compat */ +#define SDL_MAJOR_VERSION 1 +#define SDL_MINOR_VERSION 2 +#define SDL_PATCHLEVEL 61 -typedef struct SDL_version { - Uint8 major; - Uint8 minor; - Uint8 patch; +typedef struct SDL_version +{ + Uint8 major; + Uint8 minor; + Uint8 patch; } SDL_version; -/** - * This macro can be used to fill a version structure with the compile-time - * version of the SDL library. - */ -#define SDL_VERSION(X) \ -{ \ - (X)->major = SDL_MAJOR_VERSION; \ - (X)->minor = SDL_MINOR_VERSION; \ - (X)->patch = SDL_PATCHLEVEL; \ +#define SDL_VERSION(X) { \ + (X)->major = SDL_MAJOR_VERSION; \ + (X)->minor = SDL_MINOR_VERSION; \ + (X)->patch = SDL_PATCHLEVEL; \ } -/** This macro turns the version numbers into a numeric value: - * (1,2,3) -> (1203) - * This assumes that there will never be more than 100 patchlevels - */ -#define SDL_VERSIONNUM(X, Y, Z) \ - ((X)*1000 + (Y)*100 + (Z)) +#define SDL_VERSIONNUM(X, Y, Z) ((X)*1000 + (Y)*100 + (Z)) +#define SDL_COMPILEDVERSION SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL) +#define SDL_VERSION_ATLEAST(X, Y, Z) (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z)) -/** This is the version number macro for the current SDL version */ -#define SDL_COMPILEDVERSION \ - SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL) - -/** This macro will evaluate to true if compiled with SDL at least X.Y.Z */ -#define SDL_VERSION_ATLEAST(X, Y, Z) \ - (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z)) - -/** This function gets the version of the dynamically linked SDL library. - * it should NOT be used to fill a version structure, instead you should - * use the SDL_Version() macro. - */ extern DECLSPEC const SDL_version * SDLCALL SDL_Linked_Version(void); -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif -#include "close_code.h" +#include -#endif /* _SDL_version_h */ +#endif diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_video.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_video.h index aa0459cde..bef27541a 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_video.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/SDL_video.h @@ -1,234 +1,142 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - Sam Lantinga - slouken@libsdl.org + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** @file SDL_video.h - * Header file for access to the SDL raw framebuffer window - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ #ifndef _SDL_video_h #define _SDL_video_h -#include "SDL_stdinc.h" -#include "SDL_error.h" -#include "SDL_rwops.h" +#include +#include +#include -#include "begin_code.h" -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif +#include -/** @name Transparency definitions - * These define alpha as the opacity of a surface - */ -/*@{*/ #define SDL_ALPHA_OPAQUE 255 #define SDL_ALPHA_TRANSPARENT 0 -/*@}*/ -/** @name Useful data types */ -/*@{*/ -typedef struct SDL_Rect { - Sint16 x, y; - Uint16 w, h; +typedef struct SDL_Rect +{ + Sint16 x; + Sint16 y; + Uint16 w; + Uint16 h; } SDL_Rect; -typedef struct SDL_Color { - Uint8 r; - Uint8 g; - Uint8 b; - Uint8 unused; +typedef struct SDL_Color +{ + Uint8 r; + Uint8 g; + Uint8 b; + Uint8 unused; } SDL_Color; -#define SDL_Colour SDL_Color - -typedef struct SDL_Palette { - int ncolors; - SDL_Color *colors; -} SDL_Palette; -/*@}*/ - -/** Everything in the pixel format structure is read-only */ -typedef struct SDL_PixelFormat { - SDL_Palette *palette; - Uint8 BitsPerPixel; - Uint8 BytesPerPixel; - Uint8 Rloss; - Uint8 Gloss; - Uint8 Bloss; - Uint8 Aloss; - Uint8 Rshift; - Uint8 Gshift; - Uint8 Bshift; - Uint8 Ashift; - Uint32 Rmask; - Uint32 Gmask; - Uint32 Bmask; - Uint32 Amask; - - /** RGB color key information */ - Uint32 colorkey; - /** Alpha value information (per-surface alpha) */ - Uint8 alpha; -} SDL_PixelFormat; - -/** This structure should be treated as read-only, except for 'pixels', - * which, if not NULL, contains the raw pixel data for the surface. - */ -typedef struct SDL_Surface { - Uint32 flags; /**< Read-only */ - SDL_PixelFormat *format; /**< Read-only */ - int w, h; /**< Read-only */ - Uint16 pitch; /**< Read-only */ - void *pixels; /**< Read-write */ - int offset; /**< Private */ - /** Hardware-specific surface info */ - struct private_hwdata *hwdata; +#define SDL_Colour SDL_Color - /** clipping information */ - SDL_Rect clip_rect; /**< Read-only */ - Uint32 unused1; /**< for binary compatibility */ - - /** Allow recursive locks */ - Uint32 locked; /**< Private */ - - /** info for fast blit mapping to other surfaces */ - struct SDL_BlitMap *map; /**< Private */ +typedef struct SDL_Palette +{ + int ncolors; + SDL_Color *colors; +} SDL_Palette; - /** format version, bumped at every change to invalidate blit maps */ - unsigned int format_version; /**< Private */ +typedef struct SDL_PixelFormat +{ + SDL_Palette *palette; + Uint8 BitsPerPixel; + Uint8 BytesPerPixel; + Uint8 Rloss; + Uint8 Gloss; + Uint8 Bloss; + Uint8 Aloss; + Uint8 Rshift; + Uint8 Gshift; + Uint8 Bshift; + Uint8 Ashift; + Uint32 Rmask; + Uint32 Gmask; + Uint32 Bmask; + Uint32 Amask; + Uint32 colorkey; + Uint8 alpha; +} SDL_PixelFormat; - /** Reference count -- used when freeing surface */ - int refcount; /**< Read-mostly */ +typedef struct SDL_Surface +{ + Uint32 flags; + SDL_PixelFormat *format; + int w; + int h; + Uint16 pitch; + void *pixels; + int offset; + void *hwdata; + SDL_Rect clip_rect; + Uint32 unused1; + Uint32 locked; + void *map; + unsigned int format_version; + int refcount; } SDL_Surface; -/** @name SDL_Surface Flags - * These are the currently supported flags for the SDL_surface - */ -/*@{*/ - -/** Available for SDL_CreateRGBSurface() or SDL_SetVideoMode() */ -/*@{*/ -#define SDL_SWSURFACE 0x00000000 /**< Surface is in system memory */ -#define SDL_HWSURFACE 0x00000001 /**< Surface is in video memory */ -#define SDL_ASYNCBLIT 0x00000004 /**< Use asynchronous blits if possible */ -/*@}*/ - -/** Available for SDL_SetVideoMode() */ -/*@{*/ -#define SDL_ANYFORMAT 0x10000000 /**< Allow any video depth/pixel-format */ -#define SDL_HWPALETTE 0x20000000 /**< Surface has exclusive palette */ -#define SDL_DOUBLEBUF 0x40000000 /**< Set up double-buffered video mode */ -#define SDL_TRIPLEBUF 0x40000100 /**< Set up triple-buffered video mode */ -#define SDL_FULLSCREEN 0x80000000 /**< Surface is a full screen display */ -#define SDL_OPENGL 0x00000002 /**< Create an OpenGL rendering context */ -#define SDL_OPENGLBLIT 0x0000000A /**< Create an OpenGL rendering context and use it for blitting */ -#define SDL_RESIZABLE 0x00000010 /**< This video mode may be resized */ -#define SDL_NOFRAME 0x00000020 /**< No window caption or edge frame */ -/*@}*/ - -/** Used internally (read-only) */ -/*@{*/ -#define SDL_HWACCEL 0x00000100 /**< Blit uses hardware acceleration */ -#define SDL_SRCCOLORKEY 0x00001000 /**< Blit uses a source color key */ -#define SDL_RLEACCELOK 0x00002000 /**< Private flag */ -#define SDL_RLEACCEL 0x00004000 /**< Surface is RLE encoded */ -#define SDL_SRCALPHA 0x00010000 /**< Blit uses source alpha blending */ -#define SDL_PREALLOC 0x01000000 /**< Surface uses preallocated memory */ -/*@}*/ - -/*@}*/ - -/** Evaluates to true if the surface needs to be locked before access */ -#define SDL_MUSTLOCK(surface) \ - (surface->offset || \ - ((surface->flags & (SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_RLEACCEL)) != 0)) - -/** typedef for private surface blitting functions */ -typedef int (*SDL_blit)(struct SDL_Surface *src, SDL_Rect *srcrect, - struct SDL_Surface *dst, SDL_Rect *dstrect); - - -/** Useful for determining the video hardware capabilities */ -typedef struct SDL_VideoInfo { - Uint32 hw_available :1; /**< Flag: Can you create hardware surfaces? */ - Uint32 wm_available :1; /**< Flag: Can you talk to a window manager? */ - Uint32 UnusedBits1 :6; - Uint32 UnusedBits2 :1; - Uint32 blit_hw :1; /**< Flag: Accelerated blits HW --> HW */ - Uint32 blit_hw_CC :1; /**< Flag: Accelerated blits with Colorkey */ - Uint32 blit_hw_A :1; /**< Flag: Accelerated blits with Alpha */ - Uint32 blit_sw :1; /**< Flag: Accelerated blits SW --> HW */ - Uint32 blit_sw_CC :1; /**< Flag: Accelerated blits with Colorkey */ - Uint32 blit_sw_A :1; /**< Flag: Accelerated blits with Alpha */ - Uint32 blit_fill :1; /**< Flag: Accelerated color fill */ - Uint32 UnusedBits3 :16; - Uint32 video_mem; /**< The total amount of video memory (in K) */ - SDL_PixelFormat *vfmt; /**< Value: The format of the video surface */ - int current_w; /**< Value: The current video mode width */ - int current_h; /**< Value: The current video mode height */ +typedef int (*SDL_blit)(struct SDL_Surface *src, SDL_Rect *srcrect, struct SDL_Surface *dst, SDL_Rect *dstrect); + +typedef struct SDL_VideoInfo +{ + Uint32 hw_available:1; + Uint32 wm_available:1; + Uint32 UnusedBits1:6; + Uint32 UnusedBits2:1; + Uint32 blit_hw:1; + Uint32 blit_hw_CC:1; + Uint32 blit_hw_A:1; + Uint32 blit_sw:1; + Uint32 blit_sw_CC:1; + Uint32 blit_sw_A:1; + Uint32 blit_fill:1; + Uint32 UnusedBits3:16; + Uint32 video_mem; + SDL_PixelFormat *vfmt; + int current_w; + int current_h; } SDL_VideoInfo; - -/** @name Overlay Formats - * The most common video overlay formats. - * For an explanation of these pixel formats, see: - * http://www.webartz.com/fourcc/indexyuv.htm - * - * For information on the relationship between color spaces, see: - * http://www.neuro.sfc.keio.ac.jp/~aly/polygon/info/color-space-faq.html - */ -/*@{*/ -#define SDL_YV12_OVERLAY 0x32315659 /**< Planar mode: Y + V + U (3 planes) */ -#define SDL_IYUV_OVERLAY 0x56555949 /**< Planar mode: Y + U + V (3 planes) */ -#define SDL_YUY2_OVERLAY 0x32595559 /**< Packed mode: Y0+U0+Y1+V0 (1 plane) */ -#define SDL_UYVY_OVERLAY 0x59565955 /**< Packed mode: U0+Y0+V0+Y1 (1 plane) */ -#define SDL_YVYU_OVERLAY 0x55595659 /**< Packed mode: Y0+V0+Y1+U0 (1 plane) */ -/*@}*/ - -/** The YUV hardware video overlay */ -typedef struct SDL_Overlay { - Uint32 format; /**< Read-only */ - int w, h; /**< Read-only */ - int planes; /**< Read-only */ - Uint16 *pitches; /**< Read-only */ - Uint8 **pixels; /**< Read-write */ - - /** @name Hardware-specific surface info */ - /*@{*/ - struct private_yuvhwfuncs *hwfuncs; - struct private_yuvhwdata *hwdata; - /*@{*/ - - /** @name Special flags */ - /*@{*/ - Uint32 hw_overlay :1; /**< Flag: This overlay hardware accelerated? */ - Uint32 UnusedBits :31; - /*@}*/ +typedef struct SDL_Overlay +{ + Uint32 format; + int w; + int h; + int planes; + Uint16 *pitches; + Uint8 **pixels; + void *hwfuncs; + void *hwdata; + Uint32 hw_overlay:1; + Uint32 UnusedBits:31; } SDL_Overlay; -/** Public enumeration for setting the OpenGL window attributes. */ -typedef enum { +typedef enum SDL_GLattr +{ SDL_GL_RED_SIZE, SDL_GL_GREEN_SIZE, SDL_GL_BLUE_SIZE, @@ -248,705 +156,111 @@ typedef enum { SDL_GL_SWAP_CONTROL } SDL_GLattr; -/** @name flags for SDL_SetPalette() */ -/*@{*/ -#define SDL_LOGPAL 0x01 -#define SDL_PHYSPAL 0x02 -/*@}*/ - -/* Function prototypes */ - -/** - * @name Video Init and Quit - * These functions are used internally, and should not be used unless you - * have a specific need to specify the video driver you want to use. - * You should normally use SDL_Init() or SDL_InitSubSystem(). - */ -/*@{*/ -/** - * Initializes the video subsystem. Sets up a connection - * to the window manager, etc, and determines the current video mode and - * pixel format, but does not initialize a window or graphics mode. - * Note that event handling is activated by this routine. - * - * If you use both sound and video in your application, you need to call - * SDL_Init() before opening the sound device, otherwise under Win32 DirectX, - * you won't be able to set full-screen display modes. - */ +typedef enum SDL_GrabMode +{ + SDL_GRAB_QUERY = -1, + SDL_GRAB_OFF = 0, + SDL_GRAB_ON = 1, + SDL_GRAB_FULLSCREEN +} SDL_GrabMode; + extern DECLSPEC int SDLCALL SDL_VideoInit(const char *driver_name, Uint32 flags); extern DECLSPEC void SDLCALL SDL_VideoQuit(void); -/*@}*/ - -/** - * This function fills the given character buffer with the name of the - * video driver, and returns a pointer to it if the video driver has - * been initialized. It returns NULL if no driver has been initialized. - */ extern DECLSPEC char * SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen); - -/** - * This function returns a pointer to the current display surface. - * If SDL is doing format conversion on the display surface, this - * function returns the publicly visible surface, not the real video - * surface. - */ extern DECLSPEC SDL_Surface * SDLCALL SDL_GetVideoSurface(void); - -/** - * This function returns a read-only pointer to information about the - * video hardware. If this is called before SDL_SetVideoMode(), the 'vfmt' - * member of the returned structure will contain the pixel format of the - * "best" video mode. - */ extern DECLSPEC const SDL_VideoInfo * SDLCALL SDL_GetVideoInfo(void); - -/** - * Check to see if a particular video mode is supported. - * It returns 0 if the requested mode is not supported under any bit depth, - * or returns the bits-per-pixel of the closest available mode with the - * given width and height. If this bits-per-pixel is different from the - * one used when setting the video mode, SDL_SetVideoMode() will succeed, - * but will emulate the requested bits-per-pixel with a shadow surface. - * - * The arguments to SDL_VideoModeOK() are the same ones you would pass to - * SDL_SetVideoMode() - */ extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width, int height, int bpp, Uint32 flags); - -/** - * Return a pointer to an array of available screen dimensions for the - * given format and video flags, sorted largest to smallest. Returns - * NULL if there are no dimensions available for a particular format, - * or (SDL_Rect **)-1 if any dimension is okay for the given format. - * - * If 'format' is NULL, the mode list will be for the format given - * by SDL_GetVideoInfo()->vfmt - */ extern DECLSPEC SDL_Rect ** SDLCALL SDL_ListModes(SDL_PixelFormat *format, Uint32 flags); - -/** - * Set up a video mode with the specified width, height and bits-per-pixel. - * - * If 'bpp' is 0, it is treated as the current display bits per pixel. - * - * If SDL_ANYFORMAT is set in 'flags', the SDL library will try to set the - * requested bits-per-pixel, but will return whatever video pixel format is - * available. The default is to emulate the requested pixel format if it - * is not natively available. - * - * If SDL_HWSURFACE is set in 'flags', the video surface will be placed in - * video memory, if possible, and you may have to call SDL_LockSurface() - * in order to access the raw framebuffer. Otherwise, the video surface - * will be created in system memory. - * - * If SDL_ASYNCBLIT is set in 'flags', SDL will try to perform rectangle - * updates asynchronously, but you must always lock before accessing pixels. - * SDL will wait for updates to complete before returning from the lock. - * - * If SDL_HWPALETTE is set in 'flags', the SDL library will guarantee - * that the colors set by SDL_SetColors() will be the colors you get. - * Otherwise, in 8-bit mode, SDL_SetColors() may not be able to set all - * of the colors exactly the way they are requested, and you should look - * at the video surface structure to determine the actual palette. - * If SDL cannot guarantee that the colors you request can be set, - * i.e. if the colormap is shared, then the video surface may be created - * under emulation in system memory, overriding the SDL_HWSURFACE flag. - * - * If SDL_FULLSCREEN is set in 'flags', the SDL library will try to set - * a fullscreen video mode. The default is to create a windowed mode - * if the current graphics system has a window manager. - * If the SDL library is able to set a fullscreen video mode, this flag - * will be set in the surface that is returned. - * - * If SDL_DOUBLEBUF is set in 'flags', the SDL library will try to set up - * two surfaces in video memory and swap between them when you call - * SDL_Flip(). This is usually slower than the normal single-buffering - * scheme, but prevents "tearing" artifacts caused by modifying video - * memory while the monitor is refreshing. It should only be used by - * applications that redraw the entire screen on every update. - * - * If SDL_RESIZABLE is set in 'flags', the SDL library will allow the - * window manager, if any, to resize the window at runtime. When this - * occurs, SDL will send a SDL_VIDEORESIZE event to you application, - * and you must respond to the event by re-calling SDL_SetVideoMode() - * with the requested size (or another size that suits the application). - * - * If SDL_NOFRAME is set in 'flags', the SDL library will create a window - * without any title bar or frame decoration. Fullscreen video modes have - * this flag set automatically. - * - * This function returns the video framebuffer surface, or NULL if it fails. - * - * If you rely on functionality provided by certain video flags, check the - * flags of the returned surface to make sure that functionality is available. - * SDL will fall back to reduced functionality if the exact flags you wanted - * are not available. - */ -extern DECLSPEC SDL_Surface * SDLCALL SDL_SetVideoMode - (int width, int height, int bpp, Uint32 flags); - -/** @name SDL_Update Functions - * These functions should not be called while 'screen' is locked. - */ -/*@{*/ -/** - * Makes sure the given list of rectangles is updated on the given screen. - */ -extern DECLSPEC void SDLCALL SDL_UpdateRects - (SDL_Surface *screen, int numrects, SDL_Rect *rects); -/** - * If 'x', 'y', 'w' and 'h' are all 0, SDL_UpdateRect will update the entire - * screen. - */ -extern DECLSPEC void SDLCALL SDL_UpdateRect - (SDL_Surface *screen, Sint32 x, Sint32 y, Uint32 w, Uint32 h); -/*@}*/ - -/** - * On hardware that supports double-buffering, this function sets up a flip - * and returns. The hardware will wait for vertical retrace, and then swap - * video buffers before the next video surface blit or lock will return. - * On hardware that doesn not support double-buffering, this is equivalent - * to calling SDL_UpdateRect(screen, 0, 0, 0, 0); - * The SDL_DOUBLEBUF flag must have been passed to SDL_SetVideoMode() when - * setting the video mode for this function to perform hardware flipping. - * This function returns 0 if successful, or -1 if there was an error. - */ +extern DECLSPEC SDL_Surface * SDLCALL SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags); +extern DECLSPEC void SDLCALL SDL_UpdateRects(SDL_Surface *screen, int numrects, SDL_Rect *rects); +extern DECLSPEC void SDLCALL SDL_UpdateRect(SDL_Surface *screen, Sint32 x, Sint32 y, Uint32 w, Uint32 h); extern DECLSPEC int SDLCALL SDL_Flip(SDL_Surface *screen); - -/** - * Set the gamma correction for each of the color channels. - * The gamma values range (approximately) between 0.1 and 10.0 - * - * If this function isn't supported directly by the hardware, it will - * be emulated using gamma ramps, if available. If successful, this - * function returns 0, otherwise it returns -1. - */ extern DECLSPEC int SDLCALL SDL_SetGamma(float red, float green, float blue); - -/** - * Set the gamma translation table for the red, green, and blue channels - * of the video hardware. Each table is an array of 256 16-bit quantities, - * representing a mapping between the input and output for that channel. - * The input is the index into the array, and the output is the 16-bit - * gamma value at that index, scaled to the output color precision. - * - * You may pass NULL for any of the channels to leave it unchanged. - * If the call succeeds, it will return 0. If the display driver or - * hardware does not support gamma translation, or otherwise fails, - * this function will return -1. - */ extern DECLSPEC int SDLCALL SDL_SetGammaRamp(const Uint16 *red, const Uint16 *green, const Uint16 *blue); - -/** - * Retrieve the current values of the gamma translation tables. - * - * You must pass in valid pointers to arrays of 256 16-bit quantities. - * Any of the pointers may be NULL to ignore that channel. - * If the call succeeds, it will return 0. If the display driver or - * hardware does not support gamma translation, or otherwise fails, - * this function will return -1. - */ extern DECLSPEC int SDLCALL SDL_GetGammaRamp(Uint16 *red, Uint16 *green, Uint16 *blue); - -/** - * Sets a portion of the colormap for the given 8-bit surface. If 'surface' - * is not a palettized surface, this function does nothing, returning 0. - * If all of the colors were set as passed to SDL_SetColors(), it will - * return 1. If not all the color entries were set exactly as given, - * it will return 0, and you should look at the surface palette to - * determine the actual color palette. - * - * When 'surface' is the surface associated with the current display, the - * display colormap will be updated with the requested colors. If - * SDL_HWPALETTE was set in SDL_SetVideoMode() flags, SDL_SetColors() - * will always return 1, and the palette is guaranteed to be set the way - * you desire, even if the window colormap has to be warped or run under - * emulation. - */ -extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface *surface, - SDL_Color *colors, int firstcolor, int ncolors); - -/** - * Sets a portion of the colormap for a given 8-bit surface. - * 'flags' is one or both of: - * SDL_LOGPAL -- set logical palette, which controls how blits are mapped - * to/from the surface, - * SDL_PHYSPAL -- set physical palette, which controls how pixels look on - * the screen - * Only screens have physical palettes. Separate change of physical/logical - * palettes is only possible if the screen has SDL_HWPALETTE set. - * - * The return value is 1 if all colours could be set as requested, and 0 - * otherwise. - * - * SDL_SetColors() is equivalent to calling this function with - * flags = (SDL_LOGPAL|SDL_PHYSPAL). - */ -extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface *surface, int flags, - SDL_Color *colors, int firstcolor, - int ncolors); - -/** - * Maps an RGB triple to an opaque pixel value for a given pixel format - */ -extern DECLSPEC Uint32 SDLCALL SDL_MapRGB -(const SDL_PixelFormat * const format, - const Uint8 r, const Uint8 g, const Uint8 b); - -/** - * Maps an RGBA quadruple to a pixel value for a given pixel format - */ -extern DECLSPEC Uint32 SDLCALL SDL_MapRGBA -(const SDL_PixelFormat * const format, - const Uint8 r, const Uint8 g, const Uint8 b, const Uint8 a); - -/** - * Maps a pixel value into the RGB components for a given pixel format - */ -extern DECLSPEC void SDLCALL SDL_GetRGB(Uint32 pixel, - const SDL_PixelFormat * const fmt, - Uint8 *r, Uint8 *g, Uint8 *b); - -/** - * Maps a pixel value into the RGBA components for a given pixel format - */ -extern DECLSPEC void SDLCALL SDL_GetRGBA(Uint32 pixel, - const SDL_PixelFormat * const fmt, - Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a); - -/** @sa SDL_CreateRGBSurface */ -#define SDL_AllocSurface SDL_CreateRGBSurface -/** - * Allocate and free an RGB surface (must be called after SDL_SetVideoMode) - * If the depth is 4 or 8 bits, an empty palette is allocated for the surface. - * If the depth is greater than 8 bits, the pixel format is set using the - * flags '[RGB]mask'. - * If the function runs out of memory, it will return NULL. - * - * The 'flags' tell what kind of surface to create. - * SDL_SWSURFACE means that the surface should be created in system memory. - * SDL_HWSURFACE means that the surface should be created in video memory, - * with the same format as the display surface. This is useful for surfaces - * that will not change much, to take advantage of hardware acceleration - * when being blitted to the display surface. - * SDL_ASYNCBLIT means that SDL will try to perform asynchronous blits with - * this surface, but you must always lock it before accessing the pixels. - * SDL will wait for current blits to finish before returning from the lock. - * SDL_SRCCOLORKEY indicates that the surface will be used for colorkey blits. - * If the hardware supports acceleration of colorkey blits between - * two surfaces in video memory, SDL will try to place the surface in - * video memory. If this isn't possible or if there is no hardware - * acceleration available, the surface will be placed in system memory. - * SDL_SRCALPHA means that the surface will be used for alpha blits and - * if the hardware supports hardware acceleration of alpha blits between - * two surfaces in video memory, to place the surface in video memory - * if possible, otherwise it will be placed in system memory. - * If the surface is created in video memory, blits will be _much_ faster, - * but the surface format must be identical to the video surface format, - * and the only way to access the pixels member of the surface is to use - * the SDL_LockSurface() and SDL_UnlockSurface() calls. - * If the requested surface actually resides in video memory, SDL_HWSURFACE - * will be set in the flags member of the returned surface. If for some - * reason the surface could not be placed in video memory, it will not have - * the SDL_HWSURFACE flag set, and will be created in system memory instead. - */ -extern DECLSPEC SDL_Surface * SDLCALL SDL_CreateRGBSurface - (Uint32 flags, int width, int height, int depth, - Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask); -/** @sa SDL_CreateRGBSurface */ -extern DECLSPEC SDL_Surface * SDLCALL SDL_CreateRGBSurfaceFrom(void *pixels, - int width, int height, int depth, int pitch, - Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask); +extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface *surface, SDL_Color *colors, int firstcolor, int ncolors); +extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface *surface, int flags, SDL_Color *colors, int firstcolor, int ncolors); +extern DECLSPEC Uint32 SDLCALL SDL_MapRGB(const SDL_PixelFormat * const format, const Uint8 r, const Uint8 g, const Uint8 b); +extern DECLSPEC Uint32 SDLCALL SDL_MapRGBA(const SDL_PixelFormat * const format, const Uint8 r, const Uint8 g, const Uint8 b, const Uint8 a); +extern DECLSPEC void SDLCALL SDL_GetRGB(Uint32 pixel, const SDL_PixelFormat * const fmt, Uint8 *r, Uint8 *g, Uint8 *b); +extern DECLSPEC void SDLCALL SDL_GetRGBA(Uint32 pixel, const SDL_PixelFormat * const fmt, Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a); +extern DECLSPEC SDL_Surface * SDLCALL SDL_CreateRGBSurface(Uint32 flags, int width, int height, int depth, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask); +extern DECLSPEC SDL_Surface * SDLCALL SDL_CreateRGBSurfaceFrom(void *pixels, int width, int height, int depth, int pitch, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask); extern DECLSPEC void SDLCALL SDL_FreeSurface(SDL_Surface *surface); - -/** - * SDL_LockSurface() sets up a surface for directly accessing the pixels. - * Between calls to SDL_LockSurface()/SDL_UnlockSurface(), you can write - * to and read from 'surface->pixels', using the pixel format stored in - * 'surface->format'. Once you are done accessing the surface, you should - * use SDL_UnlockSurface() to release it. - * - * Not all surfaces require locking. If SDL_MUSTLOCK(surface) evaluates - * to 0, then you can read and write to the surface at any time, and the - * pixel format of the surface will not change. In particular, if the - * SDL_HWSURFACE flag is not given when calling SDL_SetVideoMode(), you - * will not need to lock the display surface before accessing it. - * - * No operating system or library calls should be made between lock/unlock - * pairs, as critical system locks may be held during this time. - * - * SDL_LockSurface() returns 0, or -1 if the surface couldn't be locked. - */ extern DECLSPEC int SDLCALL SDL_LockSurface(SDL_Surface *surface); extern DECLSPEC void SDLCALL SDL_UnlockSurface(SDL_Surface *surface); - -/** - * Load a surface from a seekable SDL data source (memory or file.) - * If 'freesrc' is non-zero, the source will be closed after being read. - * Returns the new surface, or NULL if there was an error. - * The new surface should be freed with SDL_FreeSurface(). - */ extern DECLSPEC SDL_Surface * SDLCALL SDL_LoadBMP_RW(SDL_RWops *src, int freesrc); - -/** Convenience macro -- load a surface from a file */ -#define SDL_LoadBMP(file) SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1) - -/** - * Save a surface to a seekable SDL data source (memory or file.) - * If 'freedst' is non-zero, the source will be closed after being written. - * Returns 0 if successful or -1 if there was an error. - */ -extern DECLSPEC int SDLCALL SDL_SaveBMP_RW - (SDL_Surface *surface, SDL_RWops *dst, int freedst); - -/** Convenience macro -- save a surface to a file */ -#define SDL_SaveBMP(surface, file) \ - SDL_SaveBMP_RW(surface, SDL_RWFromFile(file, "wb"), 1) - -/** - * Sets the color key (transparent pixel) in a blittable surface. - * If 'flag' is SDL_SRCCOLORKEY (optionally OR'd with SDL_RLEACCEL), - * 'key' will be the transparent pixel in the source image of a blit. - * SDL_RLEACCEL requests RLE acceleration for the surface if present, - * and removes RLE acceleration if absent. - * If 'flag' is 0, this function clears any current color key. - * This function returns 0, or -1 if there was an error. - */ -extern DECLSPEC int SDLCALL SDL_SetColorKey - (SDL_Surface *surface, Uint32 flag, Uint32 key); - -/** - * This function sets the alpha value for the entire surface, as opposed to - * using the alpha component of each pixel. This value measures the range - * of transparency of the surface, 0 being completely transparent to 255 - * being completely opaque. An 'alpha' value of 255 causes blits to be - * opaque, the source pixels copied to the destination (the default). Note - * that per-surface alpha can be combined with colorkey transparency. - * - * If 'flag' is 0, alpha blending is disabled for the surface. - * If 'flag' is SDL_SRCALPHA, alpha blending is enabled for the surface. - * OR:ing the flag with SDL_RLEACCEL requests RLE acceleration for the - * surface; if SDL_RLEACCEL is not specified, the RLE accel will be removed. - * - * The 'alpha' parameter is ignored for surfaces that have an alpha channel. - */ +extern DECLSPEC int SDLCALL SDL_SaveBMP_RW(SDL_Surface *surface, SDL_RWops *dst, int freedst); +extern DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface *surface, Uint32 flag, Uint32 key); extern DECLSPEC int SDLCALL SDL_SetAlpha(SDL_Surface *surface, Uint32 flag, Uint8 alpha); - -/** - * Sets the clipping rectangle for the destination surface in a blit. - * - * If the clip rectangle is NULL, clipping will be disabled. - * If the clip rectangle doesn't intersect the surface, the function will - * return SDL_FALSE and blits will be completely clipped. Otherwise the - * function returns SDL_TRUE and blits to the surface will be clipped to - * the intersection of the surface area and the clipping rectangle. - * - * Note that blits are automatically clipped to the edges of the source - * and destination surfaces. - */ extern DECLSPEC SDL_bool SDLCALL SDL_SetClipRect(SDL_Surface *surface, const SDL_Rect *rect); - -/** - * Gets the clipping rectangle for the destination surface in a blit. - * 'rect' must be a pointer to a valid rectangle which will be filled - * with the correct values. - */ extern DECLSPEC void SDLCALL SDL_GetClipRect(SDL_Surface *surface, SDL_Rect *rect); - -/** - * Creates a new surface of the specified format, and then copies and maps - * the given surface to it so the blit of the converted surface will be as - * fast as possible. If this function fails, it returns NULL. - * - * The 'flags' parameter is passed to SDL_CreateRGBSurface() and has those - * semantics. You can also pass SDL_RLEACCEL in the flags parameter and - * SDL will try to RLE accelerate colorkey and alpha blits in the resulting - * surface. - * - * This function is used internally by SDL_DisplayFormat(). - */ -extern DECLSPEC SDL_Surface * SDLCALL SDL_ConvertSurface - (SDL_Surface *src, SDL_PixelFormat *fmt, Uint32 flags); - -/** - * This performs a fast blit from the source surface to the destination - * surface. It assumes that the source and destination rectangles are - * the same size. If either 'srcrect' or 'dstrect' are NULL, the entire - * surface (src or dst) is copied. The final blit rectangles are saved - * in 'srcrect' and 'dstrect' after all clipping is performed. - * If the blit is successful, it returns 0, otherwise it returns -1. - * - * The blit function should not be called on a locked surface. - * - * The blit semantics for surfaces with and without alpha and colorkey - * are defined as follows: - * - * RGBA->RGB: - * SDL_SRCALPHA set: - * alpha-blend (using alpha-channel). - * SDL_SRCCOLORKEY ignored. - * SDL_SRCALPHA not set: - * copy RGB. - * if SDL_SRCCOLORKEY set, only copy the pixels matching the - * RGB values of the source colour key, ignoring alpha in the - * comparison. - * - * RGB->RGBA: - * SDL_SRCALPHA set: - * alpha-blend (using the source per-surface alpha value); - * set destination alpha to opaque. - * SDL_SRCALPHA not set: - * copy RGB, set destination alpha to source per-surface alpha value. - * both: - * if SDL_SRCCOLORKEY set, only copy the pixels matching the - * source colour key. - * - * RGBA->RGBA: - * SDL_SRCALPHA set: - * alpha-blend (using the source alpha channel) the RGB values; - * leave destination alpha untouched. [Note: is this correct?] - * SDL_SRCCOLORKEY ignored. - * SDL_SRCALPHA not set: - * copy all of RGBA to the destination. - * if SDL_SRCCOLORKEY set, only copy the pixels matching the - * RGB values of the source colour key, ignoring alpha in the - * comparison. - * - * RGB->RGB: - * SDL_SRCALPHA set: - * alpha-blend (using the source per-surface alpha value). - * SDL_SRCALPHA not set: - * copy RGB. - * both: - * if SDL_SRCCOLORKEY set, only copy the pixels matching the - * source colour key. - * - * If either of the surfaces were in video memory, and the blit returns -2, - * the video memory was lost, so it should be reloaded with artwork and - * re-blitted: - * @code - * while ( SDL_BlitSurface(image, imgrect, screen, dstrect) == -2 ) { - * while ( SDL_LockSurface(image) < 0 ) - * Sleep(10); - * -- Write image pixels to image->pixels -- - * SDL_UnlockSurface(image); - * } - * @endcode - * - * This happens under DirectX 5.0 when the system switches away from your - * fullscreen application. The lock will also fail until you have access - * to the video memory again. - * - * You should call SDL_BlitSurface() unless you know exactly how SDL - * blitting works internally and how to use the other blit functions. - */ -#define SDL_BlitSurface SDL_UpperBlit - -/** This is the public blit function, SDL_BlitSurface(), and it performs - * rectangle validation and clipping before passing it to SDL_LowerBlit() - */ -extern DECLSPEC int SDLCALL SDL_UpperBlit - (SDL_Surface *src, SDL_Rect *srcrect, - SDL_Surface *dst, SDL_Rect *dstrect); -/** This is a semi-private blit function and it performs low-level surface - * blitting only. - */ -extern DECLSPEC int SDLCALL SDL_LowerBlit - (SDL_Surface *src, SDL_Rect *srcrect, - SDL_Surface *dst, SDL_Rect *dstrect); - -/** - * This function performs a fast fill of the given rectangle with 'color' - * The given rectangle is clipped to the destination surface clip area - * and the final fill rectangle is saved in the passed in pointer. - * If 'dstrect' is NULL, the whole surface will be filled with 'color' - * The color should be a pixel of the format used by the surface, and - * can be generated by the SDL_MapRGB() function. - * This function returns 0 on success, or -1 on error. - */ -extern DECLSPEC int SDLCALL SDL_FillRect - (SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color); - -/** - * This function takes a surface and copies it to a new surface of the - * pixel format and colors of the video framebuffer, suitable for fast - * blitting onto the display surface. It calls SDL_ConvertSurface() - * - * If you want to take advantage of hardware colorkey or alpha blit - * acceleration, you should set the colorkey and alpha value before - * calling this function. - * - * If the conversion fails or runs out of memory, it returns NULL - */ +extern DECLSPEC SDL_Surface * SDLCALL SDL_ConvertSurface(SDL_Surface *src, SDL_PixelFormat *fmt, Uint32 flags); +extern DECLSPEC int SDLCALL SDL_UpperBlit(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect); +extern DECLSPEC int SDLCALL SDL_LowerBlit(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect); +extern DECLSPEC int SDLCALL SDL_FillRect(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color); extern DECLSPEC SDL_Surface * SDLCALL SDL_DisplayFormat(SDL_Surface *surface); - -/** - * This function takes a surface and copies it to a new surface of the - * pixel format and colors of the video framebuffer (if possible), - * suitable for fast alpha blitting onto the display surface. - * The new surface will always have an alpha channel. - * - * If you want to take advantage of hardware colorkey or alpha blit - * acceleration, you should set the colorkey and alpha value before - * calling this function. - * - * If the conversion fails or runs out of memory, it returns NULL - */ extern DECLSPEC SDL_Surface * SDLCALL SDL_DisplayFormatAlpha(SDL_Surface *surface); - - -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/** @name YUV video surface overlay functions */ /*@{*/ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -/** This function creates a video output overlay - * Calling the returned surface an overlay is something of a misnomer because - * the contents of the display surface underneath the area where the overlay - * is shown is undefined - it may be overwritten with the converted YUV data. - */ -extern DECLSPEC SDL_Overlay * SDLCALL SDL_CreateYUVOverlay(int width, int height, - Uint32 format, SDL_Surface *display); - -/** Lock an overlay for direct access, and unlock it when you are done */ +extern DECLSPEC SDL_Overlay * SDLCALL SDL_CreateYUVOverlay(int width, int height, Uint32 format, SDL_Surface *display); extern DECLSPEC int SDLCALL SDL_LockYUVOverlay(SDL_Overlay *overlay); extern DECLSPEC void SDLCALL SDL_UnlockYUVOverlay(SDL_Overlay *overlay); - -/** Blit a video overlay to the display surface. - * The contents of the video surface underneath the blit destination are - * not defined. - * The width and height of the destination rectangle may be different from - * that of the overlay, but currently only 2x scaling is supported. - */ extern DECLSPEC int SDLCALL SDL_DisplayYUVOverlay(SDL_Overlay *overlay, SDL_Rect *dstrect); - -/** Free a video overlay */ extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay *overlay); - -/*@}*/ - -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/** @name OpenGL support functions. */ /*@{*/ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -/** - * Dynamically load an OpenGL library, or the default one if path is NULL - * - * If you do this, you need to retrieve all of the GL functions used in - * your program from the dynamic library using SDL_GL_GetProcAddress(). - */ extern DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path); - -/** - * Get the address of a GL function - */ extern DECLSPEC void * SDLCALL SDL_GL_GetProcAddress(const char* proc); - -/** - * Set an attribute of the OpenGL subsystem before intialization. - */ extern DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value); - -/** - * Get an attribute of the OpenGL subsystem from the windowing - * interface, such as glX. This is of course different from getting - * the values from SDL's internal OpenGL subsystem, which only - * stores the values you request before initialization. - * - * Developers should track the values they pass into SDL_GL_SetAttribute - * themselves if they want to retrieve these values. - */ extern DECLSPEC int SDLCALL SDL_GL_GetAttribute(SDL_GLattr attr, int* value); - -/** - * Swap the OpenGL buffers, if double-buffering is supported. - */ extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void); - -/** @name OpenGL Internal Functions - * Internal functions that should not be called unless you have read - * and understood the source code for these functions. - */ -/*@{*/ extern DECLSPEC void SDLCALL SDL_GL_UpdateRects(int numrects, SDL_Rect* rects); extern DECLSPEC void SDLCALL SDL_GL_Lock(void); extern DECLSPEC void SDLCALL SDL_GL_Unlock(void); -/*@}*/ - -/*@}*/ - -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/** @name Window Manager Functions */ -/** These functions allow interaction with the window manager, if any. */ /*@{*/ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -/** - * Sets the title and icon text of the display window (UTF-8 encoded) - */ extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title, const char *icon); -/** - * Gets the title and icon text of the display window (UTF-8 encoded) - */ extern DECLSPEC void SDLCALL SDL_WM_GetCaption(char **title, char **icon); - -/** - * Sets the icon for the display window. - * This function must be called before the first call to SDL_SetVideoMode(). - * It takes an icon surface, and a mask in MSB format. - * If 'mask' is NULL, the entire icon surface will be used as the icon. - */ extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface *icon, Uint8 *mask); - -/** - * This function iconifies the window, and returns 1 if it succeeded. - * If the function succeeds, it generates an SDL_APPACTIVE loss event. - * This function is a noop and returns 0 in non-windowed environments. - */ extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void); - -/** - * Toggle fullscreen mode without changing the contents of the screen. - * If the display surface does not require locking before accessing - * the pixel information, then the memory pointers will not change. - * - * If this function was able to toggle fullscreen mode (change from - * running in a window to fullscreen, or vice-versa), it will return 1. - * If it is not implemented, or fails, it returns 0. - * - * The next call to SDL_SetVideoMode() will set the mode fullscreen - * attribute based on the flags parameter - if SDL_FULLSCREEN is not - * set, then the display will be windowed by default where supported. - * - * This is currently only implemented in the X11 video driver. - */ extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface *surface); - -typedef enum { - SDL_GRAB_QUERY = -1, - SDL_GRAB_OFF = 0, - SDL_GRAB_ON = 1, - SDL_GRAB_FULLSCREEN /**< Used internally */ -} SDL_GrabMode; -/** - * This function allows you to set and query the input grab state of - * the application. It returns the new input grab state. - * - * Grabbing means that the mouse is confined to the application window, - * and nearly all keyboard input is passed directly to the application, - * and not interpreted by a window manager, if any. - */ extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput(SDL_GrabMode mode); +extern DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect); + +#define SDL_SWSURFACE 0x00000000 +#define SDL_HWSURFACE 0x00000001 +#define SDL_ASYNCBLIT 0x00000004 + +#define SDL_ANYFORMAT 0x10000000 +#define SDL_HWPALETTE 0x20000000 +#define SDL_DOUBLEBUF 0x40000000 +#define SDL_TRIPLEBUF 0x40000100 +#define SDL_FULLSCREEN 0x80000000 +#define SDL_OPENGL 0x00000002 +#define SDL_OPENGLBLIT 0x0000000A +#define SDL_RESIZABLE 0x00000010 +#define SDL_NOFRAME 0x00000020 + +#define SDL_HWACCEL 0x00000100 +#define SDL_SRCCOLORKEY 0x00001000 +#define SDL_RLEACCELOK 0x00002000 +#define SDL_RLEACCEL 0x00004000 +#define SDL_SRCALPHA 0x00010000 +#define SDL_PREALLOC 0x01000000 + +#define SDL_MUSTLOCK(surface) (surface->offset || ((surface->flags & (SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_RLEACCEL)) != 0)) + +#define SDL_YV12_OVERLAY 0x32315659 +#define SDL_IYUV_OVERLAY 0x56555949 +#define SDL_YUY2_OVERLAY 0x32595559 +#define SDL_UYVY_OVERLAY 0x59565955 +#define SDL_YVYU_OVERLAY 0x55595659 + +#define SDL_LOGPAL 0x01 +#define SDL_PHYSPAL 0x02 + +#define SDL_AllocSurface SDL_CreateRGBSurface +#define SDL_BlitSurface SDL_UpperBlit + +#define SDL_LoadBMP(file) SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1) +#define SDL_SaveBMP(surface, file) SDL_SaveBMP_RW(surface, SDL_RWFromFile(file, "wb"), 1) -/*@}*/ +#include -/** @internal Not in public API at the moment - do not use! */ -extern DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface *src, SDL_Rect *srcrect, - SDL_Surface *dst, SDL_Rect *dstrect); - -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} #endif -#include "close_code.h" -#endif /* _SDL_video_h */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/begin_code.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/begin_code.h index 1c8a2a03a..e2d093e5a 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/begin_code.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/begin_code.h @@ -1,117 +1,100 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: - You should have received a copy of the GNU Library General Public - License along with this library; if not, write to the Free - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - Sam Lantinga - slouken@libsdl.org + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** - * @file begin_code.h - * This file sets things up for C dynamic library function definitions, - * static inlined functions, and structures aligned at 4-byte alignment. - * If you don't like ugly C preprocessor code, don't look at this file. :) - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ -/** - * @file begin_code.h - * This shouldn't be nested -- included it around code only. - */ -#ifdef _begin_code_h -#error Nested inclusion of begin_code.h -#endif +#ifndef _begin_code_h #define _begin_code_h -/** - * @def DECLSPEC - * Some compilers use a special export keyword - */ +#ifdef __BUILDING_SDL12_COMPAT__ +#error You should not use these headers to build sdl12-compat. Use the real SDL2 headers instead. +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* In case we need to distinguish. */ +#ifndef SDL12_COMPAT_HEADERS +#define SDL12_COMPAT_HEADERS 1 +#endif + +/* set up DECLSPEC, SDLCALL, struct packing, __inline__ and NULL... taken from SDL2 zlib-licensed headers or rewritten. */ + #ifndef DECLSPEC -# if defined(__BEOS__) || defined(__HAIKU__) -# if defined(__GNUC__) -# define DECLSPEC -# else -# define DECLSPEC __declspec(export) -# endif -# elif defined(__WIN32__) -# ifdef __BORLANDC__ -# ifdef BUILD_SDL -# define DECLSPEC -# else -# define DECLSPEC __declspec(dllimport) -# endif +# if defined(__WIN32__) || defined(__WINRT__) || defined(__CYGWIN__) +# ifdef DLL_EXPORT +# define DECLSPEC __declspec(dllexport) # else -# define DECLSPEC __declspec(dllexport) +# define DECLSPEC # endif # elif defined(__OS2__) # ifdef BUILD_SDL -# define DECLSPEC __declspec(dllexport) +# define DECLSPEC __declspec(dllexport) # else # define DECLSPEC # endif # else # if defined(__GNUC__) && __GNUC__ >= 4 -# define DECLSPEC __attribute__ ((visibility("default"))) +# define DECLSPEC __attribute__ ((visibility("default"))) # else # define DECLSPEC # endif # endif #endif -/** - * @def SDLCALL - * By default SDL uses the C calling convention - */ +/* By default SDL uses the C calling convention */ #ifndef SDLCALL -# if defined(__WIN32__) && !defined(__GNUC__) -# define SDLCALL __cdecl -# elif defined(__OS2__) - /* But on OS/2, we use the _System calling convention */ - /* to be compatible with every compiler */ -# if defined (__GNUC__) && !defined(_System) -# define _System /* For compatibility with old GCC/EMX */ -# endif -# define SDLCALL _System -# else -# define SDLCALL +#if (defined(__WIN32__) || defined(__WINRT__)) && !defined(__GNUC__) +#define SDLCALL __cdecl +#elif defined(__OS2__) || defined(__EMX__) +#define SDLCALL _System +# if defined (__GNUC__) && !defined(_System) +# define _System /* for old EMX/GCC compat. */ # endif +#else +#define SDLCALL +#endif #endif /* SDLCALL */ -#ifdef __SYMBIAN32__ -#ifndef EKA2 +/* Removed DECLSPEC on Symbian OS because SDL cannot be a DLL in EPOC */ +#ifdef __SYMBIAN32__ #undef DECLSPEC #define DECLSPEC -#elif !defined(__WINS__) -#undef DECLSPEC -#define DECLSPEC __declspec(dllexport) -#endif /* !EKA2 */ #endif /* __SYMBIAN32__ */ -/** - * @file begin_code.h - * Force structure packing at 4 byte alignment. - * This is necessary if the header is included in code which has structure - * packing set to an alternate value, say for loading structures from disk. - * The packing is reset to the previous value in close_code.h +/* Force structure packing at 4 byte alignment. + This is necessary if the header is included in code which has structure + packing set to an alternate value, say for loading structures from disk. + The packing is reset to the previous value in close_code.h */ #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__) #ifdef _MSC_VER #pragma warning(disable: 4103) #endif +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wpragma-pack" +#endif #ifdef __BORLANDC__ #pragma nopackwarning #endif @@ -121,59 +104,35 @@ #else #pragma pack(push,4) #endif -#elif (defined(__MWERKS__) && defined(__MACOS__)) -#pragma options align=mac68k4byte -#pragma enumsalwaysint on #endif /* Compiler needs structure packing set */ -/** - * @def SDL_INLINE_OKAY - * Set up compiler-specific options for inlining functions - */ -#ifndef SDL_INLINE_OKAY -#ifdef __GNUC__ -#define SDL_INLINE_OKAY -#else -/* Add any special compiler-specific cases here */ -#if defined(_MSC_VER) || defined(__BORLANDC__) || \ - defined(__DMC__) || defined(__SC__) || \ - defined(__WATCOMC__) || defined(__LCC__) || \ - defined(__DECC) || defined(__EABI__) +/* modified from SDL2's SDL_INLINE defines */ #ifndef __inline__ -#define __inline__ __inline -#endif -#define SDL_INLINE_OKAY -#else -#if !defined(__MRC__) && !defined(_SGI_SOURCE) -#ifndef __inline__ -#define __inline__ inline -#endif -#define SDL_INLINE_OKAY -#endif /* Not a funky compiler */ -#endif /* Visual C++ */ -#endif /* GNU C */ -#endif /* SDL_INLINE_OKAY */ - -/** - * @def __inline__ - * If inlining isn't supported, remove "__inline__", turning static - * inlined functions into static functions (resulting in code bloat - * in all files which include the offending header files) - */ -#ifndef SDL_INLINE_OKAY -#define __inline__ + #if defined(__GNUC__) || defined(__clang__) + #define __inline__ __inline__ + #elif defined(_MSC_VER) || defined(__BORLANDC__) || \ + defined(__DMC__) || defined(__SC__) || \ + defined(__WATCOMC__) || defined(__LCC__) || \ + defined(__DECC) || defined(__CC_ARM) + #define __inline__ __inline + #else + #define __inline__ inline + #endif + #define SDL_INLINE_OKAY +#endif /* SDL_INLINE not defined */ + +#ifndef __APPLE__ /* precompiled headers get upset here, or did 20 years ago... */ + #ifndef NULL + #ifdef __cplusplus + #define NULL 0 + #else + #define NULL ((void *) 0) + #endif + #endif #endif -/** - * @def NULL - * Apparently this is needed by several Windows compilers - */ -#if !defined(__MACH__) -#ifndef NULL -#ifdef __cplusplus -#define NULL 0 + #else -#define NULL ((void *)0) +#error begin_code.h included twice without an end_code.h #endif -#endif /* NULL */ -#endif /* ! Mac OS X - breaks precompiled headers */ + diff --git a/oslibs/macosx/SDL.framework/Versions/A/Headers/close_code.h b/oslibs/macosx/SDL.framework/Versions/A/Headers/close_code.h index 7a97d88e8..a7ad15977 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Headers/close_code.h +++ b/oslibs/macosx/SDL.framework/Versions/A/Headers/close_code.h @@ -1,30 +1,29 @@ /* - SDL - Simple DirectMedia Layer - Copyright (C) 1997-2012 Sam Lantinga + Simple DirectMedia Layer + Copyright (C) 1997-2021 Sam Lantinga - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: - You should have received a copy of the GNU Library General Public - License along with this library; if not, write to the Free - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - Sam Lantinga - slouken@libsdl.org + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. */ -/** - * @file close_code.h - * This file reverses the effects of begin_code.h and should be included - * after you finish any function and structure declarations in your headers - */ +/* These headers are from sdl12-compat, and are intended to give just enough +functionality to let you build an SDL-1.2-based project without having the +real SDL-1.2 available to you. */ + +/* This file is mostly verbatim close_code.h from SDL2. */ #ifndef _begin_code_h #error close_code.h included without matching begin_code.h @@ -36,10 +35,10 @@ #ifdef __BORLANDC__ #pragma nopackwarning #endif -#if (defined(__MWERKS__) && defined(__MACOS__)) -#pragma options align=reset -#pragma enumsalwaysint reset -#else #pragma pack(pop) -#endif #endif /* Compiler needs structure packing set */ + +#ifdef __cplusplus +} +#endif + diff --git a/oslibs/macosx/SDL.framework/Versions/A/Modules/module.modulemap b/oslibs/macosx/SDL.framework/Versions/A/Modules/module.modulemap new file mode 100644 index 000000000..dfcd57d81 --- /dev/null +++ b/oslibs/macosx/SDL.framework/Versions/A/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module SDL { + umbrella header "SDL.h" + + export * + module * { export * } +} diff --git a/oslibs/macosx/SDL.framework/Versions/A/Resources/Info.plist b/oslibs/macosx/SDL.framework/Versions/A/Resources/Info.plist index 179cf4f0f..b807297ae 100644 --- a/oslibs/macosx/SDL.framework/Versions/A/Resources/Info.plist +++ b/oslibs/macosx/SDL.framework/Versions/A/Resources/Info.plist @@ -3,40 +3,46 @@ BuildMachineOSBuild - 11C74 + 22D49 CFBundleDevelopmentRegion - English + en CFBundleExecutable SDL - CFBundleGetInfoString - http://www.libsdl.org CFBundleIdentifier - SDL + org.libsdl.SDL CFBundleInfoDictionaryVersion 6.0 CFBundleName - Simple DirectMedia Layer + SDL CFBundlePackageType FMWK CFBundleShortVersionString - 1.2.16 - CFBundleSignature - SDLX + 1.2.60 + CFBundleSupportedPlatforms + + MacOSX + CFBundleVersion - 1.2.16 + 1.2.60 DTCompiler - + com.apple.compilers.llvm.clang.1_0 DTPlatformBuild - 10M2518 + 14A400 + DTPlatformName + macosx DTPlatformVersion - PG + 12.3 DTSDKBuild - 10M2518 + 21E226 DTSDKName - macosx10.6 + macosx12.3 DTXcode - 0400 + 1401 DTXcodeBuild - 10M2518 + 14A400 + LSMinimumSystemVersion + 10.9 + NSHumanReadableCopyright + diff --git a/oslibs/macosx/SDL.framework/Versions/A/Resources/SDLMain.nib/objects.nib b/oslibs/macosx/SDL.framework/Versions/A/Resources/SDLMain.nib/objects.nib deleted file mode 100644 index 9f697b0ee..000000000 Binary files a/oslibs/macosx/SDL.framework/Versions/A/Resources/SDLMain.nib/objects.nib and /dev/null differ diff --git a/oslibs/macosx/SDL.framework/Versions/A/SDL b/oslibs/macosx/SDL.framework/Versions/A/SDL index aff4f5a7c..8487c6910 100755 Binary files a/oslibs/macosx/SDL.framework/Versions/A/SDL and b/oslibs/macosx/SDL.framework/Versions/A/SDL differ diff --git a/oslibs/macosx/SDL.framework/Versions/A/_CodeSignature/CodeResources b/oslibs/macosx/SDL.framework/Versions/A/_CodeSignature/CodeResources new file mode 100644 index 000000000..bf3538e11 --- /dev/null +++ b/oslibs/macosx/SDL.framework/Versions/A/_CodeSignature/CodeResources @@ -0,0 +1,506 @@ + + + + + files + + Resources/Info.plist + + nfqAUhXymy5DaKNWEoWnAQZtE8E= + + + files2 + + Headers/SDL.h + + hash + + UoAItmea8RmKH+T+dKl9ity7qcw= + + hash2 + + 5loIBxbfTGCe34kf+8synQV4oxbHO7236oLSnPnnU2k= + + + Headers/SDL_active.h + + hash + + 4h1SZ7lbkLW3yun07KV59UTJZoE= + + hash2 + + ASiZY86pef6g2213nz7LBCK9a0d7d2BAK3rU7QPU9Hs= + + + Headers/SDL_audio.h + + hash + + hrItWot3+RHhiHLDOdZajK9Ci9g= + + hash2 + + Cp3UXB+k7aDCbTu4Km2QR83IcsKd6mOLzD3r/72Lc1A= + + + Headers/SDL_byteorder.h + + hash + + HVUhzcn2S3IiSxojc60dU7e20mo= + + hash2 + + fg2s6Q6G/8kYAgZFekxoYRm/FjWepnja8hTRW+TJvXo= + + + Headers/SDL_cdrom.h + + hash + + mrmgX9K/qOR6vrUlvh8M5WOIVNk= + + hash2 + + ejHGXuE0AUGAYPLgZRLHW4xPVv91hAnNIbpAM6MmQGg= + + + Headers/SDL_config.h + + hash + + PuocHsI0nIJy/1hCh0kG/7rca7Q= + + hash2 + + 2jr6YmZYKWzmc6egQGdQ9/nqHMif11Qo6w62/9qEyhY= + + + Headers/SDL_copying.h + + hash + + B54HACURdnbpAi9MryhLZQCqSXQ= + + hash2 + + QWbajDY3nQJjvBaQcXEu2xgiZeVXpDTvr4mPp+09hQU= + + + Headers/SDL_cpuinfo.h + + hash + + MMBvZ8jZyicxtM658fvBhcAojn8= + + hash2 + + LrY9IIttdrYZO16i0SFfNlaZWNqFYw21R6IyapHZsaY= + + + Headers/SDL_endian.h + + hash + + hApi5fI8EcIi90TvG35ZsLqL0JQ= + + hash2 + + 7SQENZlMvQoQSoaMx8iy3VhFcldlfD6lW8zxLNe72OU= + + + Headers/SDL_error.h + + hash + + 5jfbs31LRB8I7kDFPwQaoa2pvE0= + + hash2 + + zJxmuSOsIsD+TFMPRs/zjd+w0hEB5hLGlZl18zgZbwc= + + + Headers/SDL_events.h + + hash + + C36raPZ4+3L9OGFopKf8ws6d/10= + + hash2 + + qHEo7vWtILaDJxR6YSfBK/LIF0uy5Av8YG6OJ+sKy5M= + + + Headers/SDL_getenv.h + + hash + + 46JuZ56KZnPc/Qc8/fF66h2uc54= + + hash2 + + VNC+wlE5fdwKJ5TO0jFo3wy4lHCUHalGZ56lewbonEs= + + + Headers/SDL_joystick.h + + hash + + BV5Xv7TiRmJRbb/Y4aGQeQswgLg= + + hash2 + + rtX7iDtf6aDwP8F2Vx1lMR8TX2cv8r/7An0CVtaS3OI= + + + Headers/SDL_keyboard.h + + hash + + 5XWPPY2rHR6eTMRxA+tf37wa1PQ= + + hash2 + + 0m5L28CGh71gQjiNxPEadRuANP9ottHAWZ8wVIqdDUw= + + + Headers/SDL_keysym.h + + hash + + rm4t1uK7I0Xf8lqSFFAN5ut27ms= + + hash2 + + 9mSFyurBnwvkx7nyhqwzBEiYEG5er0ryScTL0apXLKg= + + + Headers/SDL_loadso.h + + hash + + MP4NAM7EUTYGfVsglQmq2z2sFOU= + + hash2 + + STD4JP1eZMkBjbzPlZ/hpVT11vj2VYT0ntbJ5UhCX0E= + + + Headers/SDL_main.h + + hash + + 5Hzl5fYMxwIG4BBLY9nqZSdgC5A= + + hash2 + + MTEGYF3uiYwuvJMISFJ9hwr8TFia9syuqSdbyG/xCcc= + + + Headers/SDL_mouse.h + + hash + + eeetE/LWrOhGBZx5ofEuSIaHERY= + + hash2 + + RyarowLb5eQuLYUKQqpCizsKKC1lrOkXqfeiKHDw8DM= + + + Headers/SDL_mutex.h + + hash + + LIdfiKI3MzAHZU/SkBDqKJ7Pfr0= + + hash2 + + 2zAIPlWAA+117r8R+pi4Pv7qURlO9pkHdeem3/qxuNk= + + + Headers/SDL_name.h + + hash + + Rf/+OgVGfc1nv67pTPZ0v6QFoUw= + + hash2 + + 9t4rWeZVWtT+Ttq4Rg6wHFlWW9l5QpIcO/s3OLQCSkU= + + + Headers/SDL_opengl.h + + hash + + NPdbtd8bGflUvH9NUp9QLyVQWgY= + + hash2 + + w9Dyqrokb7TrTBCp0CNp+ak/9KFeVbfzUbxmKhIKYn8= + + + Headers/SDL_platform.h + + hash + + vWHj7/FpOrfnG3DAWQouMKc05G8= + + hash2 + + 9cns3Fj4O+FXQID9Y2DhDzqeaGf+zV4xsgRT/YM0nx4= + + + Headers/SDL_quit.h + + hash + + dI311eIOSkdpXCbZzVuCl+LS0jI= + + hash2 + + ue5hcPF9rxufP+8D+0G0Km+eWf4iiWytAsw+IdzMSqY= + + + Headers/SDL_rwops.h + + hash + + 7Ko8mAlLBbrFS57cY9JyC2zCaAg= + + hash2 + + vBgjE6Yju5U/OeLBDPPGW4j6pAyFYjfPyu9StESiRtM= + + + Headers/SDL_stdinc.h + + hash + + rsMNEPPv3G40CKLEfjrfJBKJLkg= + + hash2 + + iQDi0ASlwqt80dgAd50tb+J3ZVh1IqwSZWLmDc4YvWc= + + + Headers/SDL_syswm.h + + hash + + vpaJYcrfMdYghsPcTyi0n0HIctg= + + hash2 + + zoL4QE7ou3i0RxWFTARwGzVyway9hVfyc302Mzu/jwc= + + + Headers/SDL_thread.h + + hash + + CAxsavzVoK8yJiaQ/O78zdtbXlc= + + hash2 + + REmfiNraKPvkqgUz0ER9Q2iIlUnqjpNiXA/xNTHO4Kw= + + + Headers/SDL_timer.h + + hash + + 6ihy2iSp0DIdGwbHUbzZ2wFTBZ0= + + hash2 + + dbx7blTrjrvKZzKZ/1OluSjMA69quihNSWZnu37yGm0= + + + Headers/SDL_types.h + + hash + + 46JuZ56KZnPc/Qc8/fF66h2uc54= + + hash2 + + VNC+wlE5fdwKJ5TO0jFo3wy4lHCUHalGZ56lewbonEs= + + + Headers/SDL_version.h + + hash + + 5yBeAYYAPKhgAHa5vXIdpMhdVlM= + + hash2 + + Zap6piuS2Q6MxDxvDgN7NAq6H0q9vbMb+cXtb7LHQs4= + + + Headers/SDL_video.h + + hash + + vkJmrdlHIgp/bBmTKJtM2RQOKOM= + + hash2 + + HA/FitjLwa4RYq7G/BNIg17kabjf5UT4GMODdD+DQJ4= + + + Headers/begin_code.h + + hash + + 6Qi9+K24hV9Bo7Vm0EtnsQ2k1Ro= + + hash2 + + v+QAcvSNbPqxCel0/VxpQMc2zWc2otO1fYd7CeQRnS8= + + + Headers/close_code.h + + hash + + r1o5sOUkPYysoC4Ry4/RWAQBNXA= + + hash2 + + u5j21etojFychJHOvKj5mSKRRLJPz+4lv5XfqIlwbak= + + + Modules/module.modulemap + + hash + + UZtyOUPd412KSMZAz8A5MutfzFg= + + hash2 + + 7MJJM7nKkY0ah/3l4ue1yolAtPfQ2pkm8/AE7UpzElc= + + + Resources/Info.plist + + hash + + nfqAUhXymy5DaKNWEoWnAQZtE8E= + + hash2 + + BgzzOpHZh6gg0YpbaVcb8flnhoC8eITaHAxKZ5vHFZA= + + + + rules + + ^Resources/ + + ^Resources/.*\.lproj/ + + optional + + weight + 1000 + + ^Resources/.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Resources/Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ + + nested + + weight + 10 + + ^.* + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^Resources/ + + weight + 20 + + ^Resources/.*\.lproj/ + + optional + + weight + 1000 + + ^Resources/.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Resources/Base\.lproj/ + + weight + 1010 + + ^[^/]+$ + + nested + + weight + 10 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/oslibs/macosx/SDL.framework/Versions/A/devel-lite/ReadMeDevLite.txt b/oslibs/macosx/SDL.framework/Versions/A/devel-lite/ReadMeDevLite.txt deleted file mode 100644 index d2cd793c5..000000000 --- a/oslibs/macosx/SDL.framework/Versions/A/devel-lite/ReadMeDevLite.txt +++ /dev/null @@ -1,12 +0,0 @@ -This directory is for developers. This directory contains some basic essentials you will need for developing SDL based applications on OS X. The SDL-devel package contains all of this stuff plus more, so you can ignore this if you install the SDL-devel.pkg. The SDL-devel package contains Xcode templates, SDL documentation, and different variations of SDLmain and NIB files for SDL. - -To compile an SDL based application on OS X, SDLMain.m must be compiled into your program. (See the SDL FAQ). The SDL-devel.pkg includes Xcode templates which already do this for you. But for those who may not want to install the dev package, an SDLMain is provided here as a convenience. Be aware that there are different variations of SDLMain.m depending on what class of SDL application you make and they are intended to work with NIB files. Only one SDLMain variant is provided here and without any NIB files. You should look to the SDL-devel package for the others. We currently do not provide a SDLMain.a file, partly to call to attention that there are different variations of SDLmain. - -To build from the command line, your gcc line will look something like this: - -gcc -I/Library/Frameworks/SDL.framework/Headers MyProgram.c SDLmain.m -framework SDL -framework Cocoa - -An SDL/OpenGL based application might look like: - -gcc -I/Library/Frameworks/SDL.framework/Headers -I/System/Library/Frameworks/OpenGL.framework/Headers MyProgram.c SDLmain.m -framework SDL -framework Cocoa -framework OpenGL - diff --git a/oslibs/macosx/SDL.framework/Versions/A/devel-lite/SDLMain.h b/oslibs/macosx/SDL.framework/Versions/A/devel-lite/SDLMain.h deleted file mode 100644 index c56d90cbe..000000000 --- a/oslibs/macosx/SDL.framework/Versions/A/devel-lite/SDLMain.h +++ /dev/null @@ -1,16 +0,0 @@ -/* SDLMain.m - main entry point for our Cocoa-ized SDL app - Initial Version: Darrell Walisser - Non-NIB-Code & other changes: Max Horn - - Feel free to customize this file to suit your needs -*/ - -#ifndef _SDLMain_h_ -#define _SDLMain_h_ - -#import - -@interface SDLMain : NSObject -@end - -#endif /* _SDLMain_h_ */ diff --git a/oslibs/macosx/SDL.framework/Versions/A/devel-lite/SDLMain.m b/oslibs/macosx/SDL.framework/Versions/A/devel-lite/SDLMain.m deleted file mode 100644 index 07d392eef..000000000 --- a/oslibs/macosx/SDL.framework/Versions/A/devel-lite/SDLMain.m +++ /dev/null @@ -1,402 +0,0 @@ -/* SDLMain.m - main entry point for our Cocoa-ized SDL app - Initial Version: Darrell Walisser - Non-NIB-Code & other changes: Max Horn - - Feel free to customize this file to suit your needs -*/ - -#include "SDL.h" -#include "SDLMain.h" -#include /* for MAXPATHLEN */ -#include - -/* For some reaon, Apple removed setAppleMenu from the headers in 10.4, - but the method still is there and works. To avoid warnings, we declare - it ourselves here. */ -@interface NSApplication(SDL_Missing_Methods) -- (void)setAppleMenu:(NSMenu *)menu; -@end - -/* Use this flag to determine whether we use SDLMain.nib or not */ -#define SDL_USE_NIB_FILE 0 - -/* Use this flag to determine whether we use CPS (docking) or not */ -#define SDL_USE_CPS 1 -#ifdef SDL_USE_CPS -/* Portions of CPS.h */ -typedef struct CPSProcessSerNum -{ - UInt32 lo; - UInt32 hi; -} CPSProcessSerNum; - -extern OSErr CPSGetCurrentProcess( CPSProcessSerNum *psn); -extern OSErr CPSEnableForegroundOperation( CPSProcessSerNum *psn, UInt32 _arg2, UInt32 _arg3, UInt32 _arg4, UInt32 _arg5); -extern OSErr CPSSetFrontProcess( CPSProcessSerNum *psn); - -#endif /* SDL_USE_CPS */ - -static int gArgc; -static char **gArgv; -static BOOL gFinderLaunch; -static BOOL gCalledAppMainline = FALSE; - -static NSString *getApplicationName(void) -{ - const NSDictionary *dict; - NSString *appName = 0; - - /* Determine the application name */ - dict = (const NSDictionary *)CFBundleGetInfoDictionary(CFBundleGetMainBundle()); - if (dict) - appName = [dict objectForKey: @"CFBundleName"]; - - if (![appName length]) - appName = [[NSProcessInfo processInfo] processName]; - - return appName; -} - -#if SDL_USE_NIB_FILE -/* A helper category for NSString */ -@interface NSString (ReplaceSubString) -- (NSString *)stringByReplacingRange:(NSRange)aRange with:(NSString *)aString; -@end -#endif - -@interface NSApplication (SDLApplication) -@end - -@implementation NSApplication (SDLApplication) -/* Invoked from the Quit menu item */ -- (void)terminate:(id)sender -{ - /* Post a SDL_QUIT event */ - SDL_Event event; - event.type = SDL_QUIT; - SDL_PushEvent(&event); -} -@end - -/* The main class of the application, the application's delegate */ -@implementation SDLMain - -/* Set the working directory to the .app's parent directory */ -- (void) setupWorkingDirectory:(BOOL)shouldChdir -{ - if (shouldChdir) - { - char parentdir[MAXPATHLEN]; - CFURLRef url = CFBundleCopyBundleURL(CFBundleGetMainBundle()); - CFURLRef url2 = CFURLCreateCopyDeletingLastPathComponent(0, url); - if (CFURLGetFileSystemRepresentation(url2, 1, (UInt8 *)parentdir, MAXPATHLEN)) { - chdir(parentdir); /* chdir to the binary app's parent */ - } - CFRelease(url); - CFRelease(url2); - } -} - -#if SDL_USE_NIB_FILE - -/* Fix menu to contain the real app name instead of "SDL App" */ -- (void)fixMenu:(NSMenu *)aMenu withAppName:(NSString *)appName -{ - NSRange aRange; - NSEnumerator *enumerator; - NSMenuItem *menuItem; - - aRange = [[aMenu title] rangeOfString:@"SDL App"]; - if (aRange.length != 0) - [aMenu setTitle: [[aMenu title] stringByReplacingRange:aRange with:appName]]; - - enumerator = [[aMenu itemArray] objectEnumerator]; - while ((menuItem = [enumerator nextObject])) - { - aRange = [[menuItem title] rangeOfString:@"SDL App"]; - if (aRange.length != 0) - [menuItem setTitle: [[menuItem title] stringByReplacingRange:aRange with:appName]]; - if ([menuItem hasSubmenu]) - [self fixMenu:[menuItem submenu] withAppName:appName]; - } -} - -#else - -static void setApplicationMenu(void) -{ - /* warning: this code is very odd */ - NSMenu *appleMenu; - NSMenuItem *menuItem; - NSString *title; - NSString *appName; - - appName = getApplicationName(); - appleMenu = [[NSMenu alloc] initWithTitle:@""]; - - /* Add menu items */ - title = [@"About " stringByAppendingString:appName]; - [appleMenu addItemWithTitle:title action:@selector(orderFrontStandardAboutPanel:) keyEquivalent:@""]; - - [appleMenu addItem:[NSMenuItem separatorItem]]; - - title = [@"Hide " stringByAppendingString:appName]; - [appleMenu addItemWithTitle:title action:@selector(hide:) keyEquivalent:@"h"]; - - menuItem = (NSMenuItem *)[appleMenu addItemWithTitle:@"Hide Others" action:@selector(hideOtherApplications:) keyEquivalent:@"h"]; - [menuItem setKeyEquivalentModifierMask:(NSAlternateKeyMask|NSCommandKeyMask)]; - - [appleMenu addItemWithTitle:@"Show All" action:@selector(unhideAllApplications:) keyEquivalent:@""]; - - [appleMenu addItem:[NSMenuItem separatorItem]]; - - title = [@"Quit " stringByAppendingString:appName]; - [appleMenu addItemWithTitle:title action:@selector(terminate:) keyEquivalent:@"q"]; - - - /* Put menu into the menubar */ - menuItem = [[NSMenuItem alloc] initWithTitle:@"" action:nil keyEquivalent:@""]; - [menuItem setSubmenu:appleMenu]; - [[NSApp mainMenu] addItem:menuItem]; - - /* Tell the application object that this is now the application menu */ - [NSApp setAppleMenu:appleMenu]; - - /* Finally give up our references to the objects */ - [appleMenu release]; - [menuItem release]; -} - -/* Create a window menu */ -static void setupWindowMenu(void) -{ - NSMenu *windowMenu; - NSMenuItem *windowMenuItem; - NSMenuItem *menuItem; - - windowMenu = [[NSMenu alloc] initWithTitle:@"Window"]; - - /* "Minimize" item */ - menuItem = [[NSMenuItem alloc] initWithTitle:@"Minimize" action:@selector(performMiniaturize:) keyEquivalent:@"m"]; - [windowMenu addItem:menuItem]; - [menuItem release]; - - /* Put menu into the menubar */ - windowMenuItem = [[NSMenuItem alloc] initWithTitle:@"Window" action:nil keyEquivalent:@""]; - [windowMenuItem setSubmenu:windowMenu]; - [[NSApp mainMenu] addItem:windowMenuItem]; - - /* Tell the application object that this is now the window menu */ - [NSApp setWindowsMenu:windowMenu]; - - /* Finally give up our references to the objects */ - [windowMenu release]; - [windowMenuItem release]; -} - -/* Replacement for NSApplicationMain */ -static void CustomApplicationMain (int argc, char **argv) -{ - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - SDLMain *sdlMain; - - /* Ensure the application object is initialised */ - [NSApplication sharedApplication]; - -#ifdef SDL_USE_CPS - { - CPSProcessSerNum PSN; - /* Tell the dock about us */ - if (!CPSGetCurrentProcess(&PSN)) - if (!CPSEnableForegroundOperation(&PSN,0x03,0x3C,0x2C,0x1103)) - if (!CPSSetFrontProcess(&PSN)) - [NSApplication sharedApplication]; - } -#endif /* SDL_USE_CPS */ - - /* Set up the menubar */ - [NSApp setMainMenu:[[NSMenu alloc] init]]; - setApplicationMenu(); - setupWindowMenu(); - - /* Create SDLMain and make it the app delegate */ - sdlMain = [[SDLMain alloc] init]; - [NSApp setDelegate:sdlMain]; - - /* Start the main event loop */ - [NSApp run]; - - [sdlMain release]; - [pool release]; -} - -#endif - - -/* - * Catch document open requests...this lets us notice files when the app - * was launched by double-clicking a document, or when a document was - * dragged/dropped on the app's icon. You need to have a - * CFBundleDocumentsType section in your Info.plist to get this message, - * apparently. - * - * Files are added to gArgv, so to the app, they'll look like command line - * arguments. Previously, apps launched from the finder had nothing but - * an argv[0]. - * - * This message may be received multiple times to open several docs on launch. - * - * This message is ignored once the app's mainline has been called. - */ -- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename -{ - const char *temparg; - size_t arglen; - char *arg; - char **newargv; - - if (!gFinderLaunch) /* MacOS is passing command line args. */ - return FALSE; - - if (gCalledAppMainline) /* app has started, ignore this document. */ - return FALSE; - - temparg = [filename UTF8String]; - arglen = SDL_strlen(temparg) + 1; - arg = (char *) SDL_malloc(arglen); - if (arg == NULL) - return FALSE; - - newargv = (char **) realloc(gArgv, sizeof (char *) * (gArgc + 2)); - if (newargv == NULL) - { - SDL_free(arg); - return FALSE; - } - gArgv = newargv; - - SDL_strlcpy(arg, temparg, arglen); - gArgv[gArgc++] = arg; - gArgv[gArgc] = NULL; - return TRUE; -} - - -/* Called when the internal event loop has just started running */ -- (void) applicationDidFinishLaunching: (NSNotification *) note -{ - int status; - - /* Set the working directory to the .app's parent directory */ - [self setupWorkingDirectory:gFinderLaunch]; - -#if SDL_USE_NIB_FILE - /* Set the main menu to contain the real app name instead of "SDL App" */ - [self fixMenu:[NSApp mainMenu] withAppName:getApplicationName()]; -#endif - - /* Hand off to main application code */ - gCalledAppMainline = TRUE; - status = SDL_main (gArgc, gArgv); - - /* We're done, thank you for playing */ - exit(status); -} -@end - - -@implementation NSString (ReplaceSubString) - -- (NSString *)stringByReplacingRange:(NSRange)aRange with:(NSString *)aString -{ - unsigned int bufferSize; - unsigned int selfLen = [self length]; - unsigned int aStringLen = [aString length]; - unichar *buffer; - NSRange localRange; - NSString *result; - - bufferSize = selfLen + aStringLen - aRange.length; - buffer = (unichar *)NSAllocateMemoryPages(bufferSize*sizeof(unichar)); - - /* Get first part into buffer */ - localRange.location = 0; - localRange.length = aRange.location; - [self getCharacters:buffer range:localRange]; - - /* Get middle part into buffer */ - localRange.location = 0; - localRange.length = aStringLen; - [aString getCharacters:(buffer+aRange.location) range:localRange]; - - /* Get last part into buffer */ - localRange.location = aRange.location + aRange.length; - localRange.length = selfLen - localRange.location; - [self getCharacters:(buffer+aRange.location+aStringLen) range:localRange]; - - /* Build output string */ - result = [NSString stringWithCharacters:buffer length:bufferSize]; - - NSDeallocateMemoryPages(buffer, bufferSize); - - return result; -} - -@end - - - -#ifdef main -# undef main -#endif - - -static int IsRootCwd() -{ - char buf[MAXPATHLEN]; - char *cwd = getcwd(buf, sizeof (buf)); - return (cwd && (strcmp(cwd, "/") == 0)); -} - -static int IsFinderLaunch(const int argc, char **argv) -{ - /* -psn_XXX is passed if we are launched from Finder, SOMETIMES */ - if ( (argc >= 2) && (strncmp(argv[1], "-psn", 4) == 0) ) { - return 1; - } else if ((argc == 1) && IsRootCwd()) { - /* we might still be launched from the Finder; on 10.9+, you might not - get the -psn command line anymore. If there's no - command line, and if our current working directory is "/", it - might as well be a Finder launch. */ - return 1; - } - return 0; /* not a Finder launch. */ -} - -/* Main entry point to executable - should *not* be SDL_main! */ -int main (int argc, char **argv) -{ - /* Copy the arguments into a global variable */ - if (IsFinderLaunch(argc, argv)) { - gArgv = (char **) SDL_malloc(sizeof (char *) * 2); - gArgv[0] = argv[0]; - gArgv[1] = NULL; - gArgc = 1; - gFinderLaunch = YES; - } else { - int i; - gArgc = argc; - gArgv = (char **) SDL_malloc(sizeof (char *) * (argc+1)); - for (i = 0; i <= argc; i++) - gArgv[i] = argv[i]; - gFinderLaunch = NO; - } - -#if SDL_USE_NIB_FILE - NSApplicationMain (argc, argv); -#else - CustomApplicationMain (argc, argv); -#endif - return 0; -} -