diff --git a/BeefProj.toml b/BeefProj.toml index a994e90..f57a006 100644 --- a/BeefProj.toml +++ b/BeefProj.toml @@ -1,111 +1,83 @@ FileVersion = 1 -Dependencies = {corlib = "*", corlib = "*"} [Project] Name = "SDL3" TargetType = "BeefLib" StartupObject = "SDL3.Program" +[Dependencies] +corlib = "*" +corlib = "*" +"CxxBuildTool.git" = {Git = "https://git.unicon-gmbh.de/Rune/CxxBuildTool.git"} + [Configs.Debug.Win32] -LibPaths = ["$(BuildDir)/SDL3.lib"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] -PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"] +LibPaths = ["$(BuildDir)/SDL3-static.lib"] [Configs.Debug.Win64] -LibPaths = ["$(BuildDir)/SDL3.lib"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] -PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"] +LibPaths = ["$(BuildDir)/SDL3-static.lib"] [Configs.Debug.Linux32] -LibPaths = ["$(BuildDir)/SDL3.a"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] +LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Debug.Linux64] -LibPaths = ["$(BuildDir)/SDL3.a"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] +LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Debug.macOS] -LibPaths = ["$(BuildDir)/SDL3.a"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] +LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Debug.wasm] -LibPaths = ["$(BuildDir)/SDL3.a"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "c:\\Projects\\RandomStuff\\Cpp2Beef_dist\\CxxBuilder\\dist\\CxxBuilder.exe *.c */*.c */windows/*.c render/**.c -- \"cflags=-DSDL_PLATFORM_WINDOWS -I$(ProjectDir)/SDL/include -I$(ProjectDir)/SDL/include/build_config -I$(ProjectDir)/SDL/src\" output=SDL3 \"src=$(ProjectDir)/SDL/src\" \"builddir=$(BuildDir)\" target=$(TargetTriple)\""] +LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Release.Win32] -LibPaths = ["$(BuildDir)/SDL3.lib"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] -PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"] +LibPaths = ["$(BuildDir)/SDL3-static.lib"] [Configs.Release.Win64] -LibPaths = ["$(BuildDir)/SDL3.lib"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] -PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"] +LibPaths = ["$(BuildDir)/SDL3-static.lib"] [Configs.Release.Linux32] -LibPaths = ["$(BuildDir)/SDL3.a"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] +LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Release.Linux64] -LibPaths = ["$(BuildDir)/SDL3.a"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] +LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Release.macOS] -LibPaths = ["$(BuildDir)/SDL3.a"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] +LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Release.wasm] -LibPaths = ["$(BuildDir)/SDL3.a"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "c:\\Projects\\RandomStuff\\Cpp2Beef_dist\\CxxBuilder\\dist\\CxxBuilder.exe *.c */*.c */windows/*.c render/**.c -- \"cflags=-DSDL_PLATFORM_WINDOWS -I$(ProjectDir)/SDL/include -I$(ProjectDir)/SDL/include/build_config -I$(ProjectDir)/SDL/src\" output=SDL3 \"src=$(ProjectDir)/SDL/src\" \"builddir=$(BuildDir)\" target=$(TargetTriple)\""] +LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Paranoid.Win32] -LibPaths = ["$(BuildDir)/SDL3.lib"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] -PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"] +LibPaths = ["$(BuildDir)/SDL3-static.lib"] [Configs.Paranoid.Win64] -LibPaths = ["$(BuildDir)/SDL3.lib"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] -PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"] +LibPaths = ["$(BuildDir)/SDL3-static.lib"] [Configs.Paranoid.Linux32] -LibPaths = ["$(BuildDir)/SDL3.a"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] +LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Paranoid.Linux64] -LibPaths = ["$(BuildDir)/SDL3.a"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] +LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Paranoid.macOS] -LibPaths = ["$(BuildDir)/SDL3.a"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] +LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Paranoid.wasm] -LibPaths = ["$(BuildDir)/SDL3.a"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "c:\\Projects\\RandomStuff\\Cpp2Beef_dist\\CxxBuilder\\dist\\CxxBuilder.exe *.c */*.c */windows/*.c render/**.c -- \"cflags=-DSDL_PLATFORM_WINDOWS -I$(ProjectDir)/SDL/include -I$(ProjectDir)/SDL/include/build_config -I$(ProjectDir)/SDL/src\" output=SDL3 \"src=$(ProjectDir)/SDL/src\" \"builddir=$(BuildDir)\" target=$(TargetTriple)\""] +LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Test.Win32] -LibPaths = ["$(BuildDir)/SDL3.lib"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] -PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"] +LibPaths = ["$(BuildDir)/SDL3-static.lib"] [Configs.Test.Win64] -LibPaths = ["$(BuildDir)/SDL3.lib"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] -PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"] +LibPaths = ["$(BuildDir)/SDL3-static.lib"] [Configs.Test.Linux32] -LibPaths = ["$(BuildDir)/SDL3.a"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] +LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Test.Linux64] -LibPaths = ["$(BuildDir)/SDL3.a"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] +LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Test.macOS] -LibPaths = ["$(BuildDir)/SDL3.a"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"] +LibPaths = ["$(BuildDir)/SDL3-static.a"] [Configs.Test.wasm] -LibPaths = ["$(BuildDir)/SDL3.a"] -PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "c:\\Projects\\RandomStuff\\Cpp2Beef_dist\\CxxBuilder\\dist\\CxxBuilder.exe *.c */*.c */windows/*.c render/**.c -- \"cflags=-DSDL_PLATFORM_WINDOWS -I$(ProjectDir)/SDL/include -I$(ProjectDir)/SDL/include/build_config -I$(ProjectDir)/SDL/src\" output=SDL3 \"src=$(ProjectDir)/SDL/src\" \"builddir=$(BuildDir)\" target=$(TargetTriple)\""] +LibPaths = ["$(BuildDir)/SDL3-static.a"] diff --git a/BeefSpace.toml b/BeefSpace.toml index 511aace..6980d10 100644 --- a/BeefSpace.toml +++ b/BeefSpace.toml @@ -1,6 +1,9 @@ FileVersion = 1 -Projects = {SDL3 = {Path = "."}} ExtraPlatforms = ["Linux32", "Linux64", "macOS", "wasm"] [Workspace] StartupProject = "SDL3" + +[Projects] +SDL3 = {Path = "."} +"CxxBuildTool.git" = {Git = "https://git.unicon-gmbh.de/Rune/CxxBuildTool.git"} diff --git a/BeefSpace_Lock.toml b/BeefSpace_Lock.toml new file mode 100644 index 0000000..15da856 --- /dev/null +++ b/BeefSpace_Lock.toml @@ -0,0 +1,6 @@ +FileVersion = 1 + +[Locks."CxxBuildTool.git".Git] +URL = "https://git.unicon-gmbh.de/Rune/CxxBuildTool.git" +Tag = "" +Hash = "b64a6221b8cb235a5e040c8597365dabeef849ca" diff --git a/Setup/BeefProj.toml b/Setup/BeefProj.toml index 16fd960..3f958f5 100644 --- a/Setup/BeefProj.toml +++ b/Setup/BeefProj.toml @@ -1,66 +1,9 @@ FileVersion = 1 -Dependencies = {corlib = "*", "Cpp2Beef.git" = {Git = "https://git.unicon-gmbh.de/BeefBindings/Cpp2Beef.git"}} [Project] Name = "SDL3.Setup" StartupObject = "SDL3.Setup.Program" -[Configs.Debug.Win32] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Debug.Win64] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/CxxBuilderPath.txt $(WorkspaceDir)/../CxxBuilderPath.txt"] - -[Configs.Debug.Linux32] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Debug.Linux64] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Debug.macOS] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Release.Win32] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Release.Win64] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Release.Linux32] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Release.Linux64] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Release.macOS] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Paranoid.Win32] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Paranoid.Win64] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Paranoid.Linux32] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Paranoid.Linux64] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Paranoid.macOS] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Test.Win32] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Test.Win64] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Test.Linux32] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Test.Linux64] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] - -[Configs.Test.macOS] -PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"] +[Dependencies] +corlib = "*" +"Cpp2Beef.git" = {Git = "https://git.unicon-gmbh.de/Rune/Cpp2Beef.git"} diff --git a/Setup/BeefSpace.toml b/Setup/BeefSpace.toml index 5cff17f..bda46f3 100644 --- a/Setup/BeefSpace.toml +++ b/Setup/BeefSpace.toml @@ -1,6 +1,10 @@ FileVersion = 1 -Projects = {"SDL3.Setup" = {Path = "."}, "Clang-C.git" = {Git = "https://git.unicon-gmbh.de/BeefBindings/Clang-C.git"}, "Cpp2Beef.git" = {Git = "https://git.unicon-gmbh.de/BeefBindings/Cpp2Beef.git"}} ExtraPlatforms = ["Linux32", "Linux64", "macOS"] [Workspace] StartupProject = "SDL3.Setup" + +[Projects] +"SDL3.Setup" = {Path = "."} +"Clang-C.git" = {Git = "https://git.unicon-gmbh.de/BeefBindings/Clang-C.git"} +"Cpp2Beef.git" = {Git = "https://git.unicon-gmbh.de/Rune/Cpp2Beef.git"} diff --git a/Setup/src/Program.bf b/Setup/src/Program.bf index 0d719b1..8c74564 100644 --- a/Setup/src/Program.bf +++ b/Setup/src/Program.bf @@ -162,7 +162,6 @@ class SDL3Generator : Cpp2BeefGenerator, this(Span args) } BeginCursor(cursor); - if (spelling == "Button") str.Append("[AllowDuplicates] "); AccessSpecifier(cursor); str.Append("enum "); GetNameInBindings(cursor, str); @@ -179,6 +178,7 @@ class SDL3Generator : Cpp2BeefGenerator, this(Span args) fileInfo.queuedTokens = .None; } bool isSDL_GLContextFlag = spelling == "GlContext"; + bool isSDL_MouseButtonFlags = spelling == "Button"; { BeginBody!(cursor); for (let macro in this.[Friend]unitMacros) @@ -197,6 +197,11 @@ class SDL3Generator : Cpp2BeefGenerator, this(Span args) continue; macroSpelling.RemoveFromEnd(5); } + if (isSDL_MouseButtonFlags && macroSpelling.EndsWith("MASK")) + { + @macro.Remove(); + continue; + } macroSpelling.RemoveFromStart(prefix.Length); BeginCursor(macroCursor); FixCurly(); @@ -205,7 +210,9 @@ class SDL3Generator : Cpp2BeefGenerator, this(Span args) let tokens = ScopeTokenize!(macroCursor, unit); AllWhiteSpaceBetween(Clang.GetRangeEnd(Clang.GetTokenExtent(unit, tokens[0])), Clang.GetRangeStart(Clang.GetTokenExtent(unit, tokens[1]))); str.Append("= "); + if (isSDL_MouseButtonFlags) str.Append("1 << ("); WriteTokens(tokens[1...], Clang.GetNullLocation(), .Punctuation); + if (isSDL_MouseButtonFlags) str.Append("-1)"); str.Append(','); @macro.Remove(); WriteComments(Clang.GetCursorLocation(macroCursor)); diff --git a/src/Library.bf b/src/Library.bf index 0c29e97..d8d3488 100644 --- a/src/Library.bf +++ b/src/Library.bf @@ -1,4 +1,5 @@ using System; +using CxxBuildTool; namespace SDL3; @@ -10,7 +11,12 @@ static class SDL typealias CrcUint32 = Uint32; typealias CrcUint8 = Uint8; - private static Uint32 BUTTON_MASK(MouseButtonFlags X) => (.)(1u << (((Uint32)X)-1)); + [OnCompile(.TypeDone)] + private static void Build() + { + if (!Compiler.IsBuilding) return; + CxxBuildTool.CMake(Compiler.ProjectDir + "/SDL", Compiler.BuildDir + "/" + Compiler.ProjectName, "-DSDL_STATIC=ON -DSDL_SHARED=OFF -DSDL_TESTS=OFF"); + } } static class SDLTest diff --git a/src/SDL_assert.bf b/src/SDL_assert.bf index 7eca0ca..1aabd22 100644 --- a/src/SDL_assert.bf +++ b/src/SDL_assert.bf @@ -315,11 +315,11 @@ public const let NULL_WHILE_LOOP_CONDITION = (0,0); */ [AllowDuplicates] public enum AssertState : c_int { - Retry, /**< Retry the assert immediately. */ - Break, /**< Make the debugger trigger a breakpoint. */ - Abort, /**< Terminate the program. */ - Ignore, /**< Ignore the assert. */ - AlwaysIgnore, /**< Ignore the assert from now on. */ + Retry, /**< Retry the assert immediately. */ + Break, /**< Make the debugger trigger a breakpoint. */ + Abort, /**< Terminate the program. */ + Ignore, /**< Ignore the assert. */ + /**< Ignore the assert from now on. */ AlwaysIgnore, /**< Ignore the assert from now on. */ } /** diff --git a/src/SDL_asyncio.bf b/src/SDL_asyncio.bf index 773c09a..a1903bc 100644 --- a/src/SDL_asyncio.bf +++ b/src/SDL_asyncio.bf @@ -140,9 +140,9 @@ extension SDL */ [AllowDuplicates] public enum AsyncIOTaskType : c_int { - Read, /**< A read operation. */ - Write, /**< A write operation. */ - Close, /**< A close operation. */ + Read, /**< A read operation. */ + Write, /**< A write operation. */ + /**< A close operation. */ Close, /**< A close operation. */ } /** @@ -152,9 +152,9 @@ extension SDL */ [AllowDuplicates] public enum AsyncIOResult : c_int { - Complete, /**< request was completed without error */ - Failure, /**< request failed for some reason; check SDL_GetError()! */ - Canceled, /**< request was canceled before completing. */ + Complete, /**< request was completed without error */ + Failure, /**< request failed for some reason; check SDL_GetError()! */ + /**< request was canceled before completing. */ Canceled, /**< request was canceled before completing. */ } /** diff --git a/src/SDL_audio.bf b/src/SDL_audio.bf index 327e092..10736f4 100644 --- a/src/SDL_audio.bf +++ b/src/SDL_audio.bf @@ -230,29 +230,29 @@ public const let AUDIO_MASK_SIGNED = (1u<<15); */ [AllowDuplicates] public enum AudioFormat : c_int { - Unknown = 0x0000u, /**< Unspecified audio format */ - U8 = 0x0008u, /**< Unsigned 8-bit samples */ + Unknown = 0x0000u, /**< Unspecified audio format */ + U8 = 0x0008u, /**< Unsigned 8-bit samples */ /* SDL_DEFINE_AUDIO_FORMAT(0, 0, 0, 8), */ - S8 = 0x8008u, /**< Signed 8-bit samples */ + S8 = 0x8008u, /**< Signed 8-bit samples */ /* SDL_DEFINE_AUDIO_FORMAT(1, 0, 0, 8), */ - S16le = 0x8010u, /**< Signed 16-bit samples */ + S16le = 0x8010u, /**< Signed 16-bit samples */ /* SDL_DEFINE_AUDIO_FORMAT(1, 0, 0, 16), */ - S16be = 0x9010u, /**< As above, but big-endian byte order */ + S16be = 0x9010u, /**< As above, but big-endian byte order */ /* SDL_DEFINE_AUDIO_FORMAT(1, 1, 0, 16), */ - S32le = 0x8020u, /**< 32-bit integer samples */ + S32le = 0x8020u, /**< 32-bit integer samples */ /* SDL_DEFINE_AUDIO_FORMAT(1, 0, 0, 32), */ - S32be = 0x9020u, /**< As above, but big-endian byte order */ + S32be = 0x9020u, /**< As above, but big-endian byte order */ /* SDL_DEFINE_AUDIO_FORMAT(1, 1, 0, 32), */ - F32le = 0x8120u, /**< 32-bit floating point samples */ + F32le = 0x8120u, /**< 32-bit floating point samples */ /* SDL_DEFINE_AUDIO_FORMAT(1, 0, 1, 32), */ - F32be = 0x9120u, /**< As above, but big-endian byte order */ + F32be = 0x9120u, /**< As above, but big-endian byte order */ /* SDL_DEFINE_AUDIO_FORMAT(1, 1, 1, 32), */ /* These represent the current system's byteorder. */ - S16 = S16le, - S32 = S32le, - F32 = F32le, + S16 = S16le, + S32 = S32le, + F32 = F32le, diff --git a/src/SDL_blendmode.bf b/src/SDL_blendmode.bf index afc9419..6d9d992 100644 --- a/src/SDL_blendmode.bf +++ b/src/SDL_blendmode.bf @@ -86,11 +86,11 @@ public enum BlendMode : Uint32 */ [AllowDuplicates] public enum BlendOperation : c_int { - Add = 0x1, /**< dst + src: supported by all renderers */ - Subtract = 0x2, /**< src - dst : supported by D3D, OpenGL, OpenGLES, and Vulkan */ - RevSubtract = 0x3, /**< dst - src : supported by D3D, OpenGL, OpenGLES, and Vulkan */ - Minimum = 0x4, /**< min(dst, src) : supported by D3D, OpenGL, OpenGLES, and Vulkan */ - Maximum = 0x5, /**< max(dst, src) : supported by D3D, OpenGL, OpenGLES, and Vulkan */ + Add = 0x1, /**< dst + src: supported by all renderers */ + Subtract = 0x2, /**< src - dst : supported by D3D, OpenGL, OpenGLES, and Vulkan */ + RevSubtract = 0x3, /**< dst - src : supported by D3D, OpenGL, OpenGLES, and Vulkan */ + Minimum = 0x4, /**< min(dst, src) : supported by D3D, OpenGL, OpenGLES, and Vulkan */ + /**< max(dst, src) : supported by D3D, OpenGL, OpenGLES, and Vulkan */ Maximum = 0x5, /**< max(dst, src) : supported by D3D, OpenGL, OpenGLES, and Vulkan */ } /** @@ -105,16 +105,16 @@ public enum BlendMode : Uint32 */ [AllowDuplicates] public enum BlendFactor : c_int { - Zero = 0x1, /**< 0, 0, 0, 0 */ - One = 0x2, /**< 1, 1, 1, 1 */ - SrcColor = 0x3, /**< srcR, srcG, srcB, srcA */ - OneMinusSrcColor = 0x4, /**< 1-srcR, 1-srcG, 1-srcB, 1-srcA */ - SrcAlpha = 0x5, /**< srcA, srcA, srcA, srcA */ - OneMinusSrcAlpha = 0x6, /**< 1-srcA, 1-srcA, 1-srcA, 1-srcA */ - DstColor = 0x7, /**< dstR, dstG, dstB, dstA */ - OneMinusDstColor = 0x8, /**< 1-dstR, 1-dstG, 1-dstB, 1-dstA */ - DstAlpha = 0x9, /**< dstA, dstA, dstA, dstA */ - OneMinusDstAlpha = 0xA, /**< 1-dstA, 1-dstA, 1-dstA, 1-dstA */ + Zero = 0x1, /**< 0, 0, 0, 0 */ + One = 0x2, /**< 1, 1, 1, 1 */ + SrcColor = 0x3, /**< srcR, srcG, srcB, srcA */ + OneMinusSrcColor = 0x4, /**< 1-srcR, 1-srcG, 1-srcB, 1-srcA */ + SrcAlpha = 0x5, /**< srcA, srcA, srcA, srcA */ + OneMinusSrcAlpha = 0x6, /**< 1-srcA, 1-srcA, 1-srcA, 1-srcA */ + DstColor = 0x7, /**< dstR, dstG, dstB, dstA */ + OneMinusDstColor = 0x8, /**< 1-dstR, 1-dstG, 1-dstB, 1-dstA */ + DstAlpha = 0x9, /**< dstA, dstA, dstA, dstA */ + /**< 1-dstA, 1-dstA, 1-dstA, 1-dstA */ OneMinusDstAlpha = 0xA, /**< 1-dstA, 1-dstA, 1-dstA, 1-dstA */ } /** diff --git a/src/SDL_camera.bf b/src/SDL_camera.bf index d4bcb40..73ecab6 100644 --- a/src/SDL_camera.bf +++ b/src/SDL_camera.bf @@ -141,9 +141,9 @@ public typealias CameraID = Uint32; */ [AllowDuplicates] public enum CameraPosition : c_int { - Unknown, - FrontFacing, - BackFacing, + Unknown, + FrontFacing, + BackFacing, } /** @@ -155,9 +155,9 @@ public typealias CameraID = Uint32; */ [AllowDuplicates] public enum CameraPermissionState : c_int { - Denied = -1, - Pending, - Approved, + Denied = -1, + Pending, + Approved, } diff --git a/src/SDL_dialog.bf b/src/SDL_dialog.bf index 36c4cac..a8e80c1 100644 --- a/src/SDL_dialog.bf +++ b/src/SDL_dialog.bf @@ -281,9 +281,9 @@ public function void DialogFileCallback(void* userdata, c_char** filelist, c_int */ [AllowDuplicates] public enum FileDialogType : c_int { - Openfile, - Savefile, - Openfolder, + Openfile, + Savefile, + Openfolder, } /** diff --git a/src/SDL_events.bf b/src/SDL_events.bf index 54da7eb..54ac0e7 100644 --- a/src/SDL_events.bf +++ b/src/SDL_events.bf @@ -93,208 +93,208 @@ extension SDL */ [AllowDuplicates] public enum EventType : c_int { - First = 0, /**< Unused (do not remove) */ + First = 0, /**< Unused (do not remove) */ /* Application events */ - Quit = 0x100, /**< User-requested quit */ + Quit = 0x100, /**< User-requested quit */ /* These application events have special meaning on iOS and Android, see README-ios.md and README-android.md for details */ - erminating, /**< The application is being terminated by the OS. This event must be handled in a callback set with SDL_AddEventWatch(). + erminating, /**< The application is being terminated by the OS. This event must be handled in a callback set with SDL_AddEventWatch(). Called on iOS in applicationWillTerminate() Called on Android in onDestroy() */ - LowMemory, /**< The application is low on memory, free memory if possible. This event must be handled in a callback set with SDL_AddEventWatch(). + LowMemory, /**< The application is low on memory, free memory if possible. This event must be handled in a callback set with SDL_AddEventWatch(). Called on iOS in applicationDidReceiveMemoryWarning() Called on Android in onTrimMemory() */ - WillEnterBackground, /**< The application is about to enter the background. This event must be handled in a callback set with SDL_AddEventWatch(). + WillEnterBackground, /**< The application is about to enter the background. This event must be handled in a callback set with SDL_AddEventWatch(). Called on iOS in applicationWillResignActive() Called on Android in onPause() */ - DidEnterBackground, /**< The application did enter the background and may not get CPU for some time. This event must be handled in a callback set with SDL_AddEventWatch(). + DidEnterBackground, /**< The application did enter the background and may not get CPU for some time. This event must be handled in a callback set with SDL_AddEventWatch(). Called on iOS in applicationDidEnterBackground() Called on Android in onPause() */ - WillEnterForeground, /**< The application is about to enter the foreground. This event must be handled in a callback set with SDL_AddEventWatch(). + WillEnterForeground, /**< The application is about to enter the foreground. This event must be handled in a callback set with SDL_AddEventWatch(). Called on iOS in applicationWillEnterForeground() Called on Android in onResume() */ - DidEnterForeground, /**< The application is now interactive. This event must be handled in a callback set with SDL_AddEventWatch(). + DidEnterForeground, /**< The application is now interactive. This event must be handled in a callback set with SDL_AddEventWatch(). Called on iOS in applicationDidBecomeActive() Called on Android in onResume() */ - LocaleChanged, /**< The user's locale preferences have changed. */ + LocaleChanged, /**< The user's locale preferences have changed. */ - SystemThemeChanged, /**< The system theme changed */ + SystemThemeChanged, /**< The system theme changed */ /* Display events */ /* 0x150 was SDL_DISPLAYEVENT, reserve the number for sdl2-compat */ - DisplayOrientation = 0x151, /**< Display orientation has changed to data1 */ - DisplayAdded, /**< Display has been added to the system */ - DisplayRemoved, /**< Display has been removed from the system */ - DisplayMoved, /**< Display has changed position */ - DisplayDesktopModeChanged, /**< Display has changed desktop mode */ - DisplayCurrentModeChanged, /**< Display has changed current mode */ - DisplayContentScaleChanged, /**< Display has changed content scale */ - DisplayUsableBoundsChanged, /**< Display has changed usable bounds */ - DisplayFirst = DisplayOrientation, - DisplayLast = DisplayUsableBoundsChanged, + DisplayOrientation = 0x151, /**< Display orientation has changed to data1 */ + DisplayAdded, /**< Display has been added to the system */ + DisplayRemoved, /**< Display has been removed from the system */ + DisplayMoved, /**< Display has changed position */ + DisplayDesktopModeChanged, /**< Display has changed desktop mode */ + DisplayCurrentModeChanged, /**< Display has changed current mode */ + DisplayContentScaleChanged, /**< Display has changed content scale */ + DisplayUsableBoundsChanged, /**< Display has changed usable bounds */ + DisplayFirst = DisplayOrientation, + DisplayLast = DisplayUsableBoundsChanged, /* Window events */ /* 0x200 was SDL_WINDOWEVENT, reserve the number for sdl2-compat */ /* 0x201 was SDL_SYSWMEVENT, reserve the number for sdl2-compat */ - WindowShown = 0x202, /**< Window has been shown */ - WindowHidden, /**< Window has been hidden */ - WindowExposed, /**< Window has been exposed and should be redrawn, and can be redrawn directly from event watchers for this event. + WindowShown = 0x202, /**< Window has been shown */ + WindowHidden, /**< Window has been hidden */ + WindowExposed, /**< Window has been exposed and should be redrawn, and can be redrawn directly from event watchers for this event. data1 is 1 for live-resize expose events, 0 otherwise. */ - WindowMoved, /**< Window has been moved to data1, data2 */ - WindowResized, /**< Window has been resized to data1xdata2 */ - WindowPixelSizeChanged,/**< The pixel size of the window has changed to data1xdata2 */ - WindowMetalViewResized,/**< The pixel size of a Metal view associated with the window has changed */ - WindowMinimized, /**< Window has been minimized */ - WindowMaximized, /**< Window has been maximized */ - WindowRestored, /**< Window has been restored to normal size and position */ - WindowMouseEnter, /**< Window has gained mouse focus */ - WindowMouseLeave, /**< Window has lost mouse focus */ - WindowFocusGained, /**< Window has gained keyboard focus */ - WindowFocusLost, /**< Window has lost keyboard focus */ - WindowCloseRequested, /**< The window manager requests that the window be closed */ - WindowHitTest, /**< Window had a hit test that wasn't SDL_HITTEST_NORMAL */ - WindowIccprofChanged, /**< The ICC profile of the window's display has changed */ - WindowDisplayChanged, /**< Window has been moved to display data1 */ - WindowDisplayScaleChanged, /**< Window display scale has been changed */ - WindowSafeAreaChanged, /**< The window safe area has been changed */ - WindowOccluded, /**< The window has been occluded */ - WindowEnterFullscreen, /**< The window has entered fullscreen mode */ - WindowLeaveFullscreen, /**< The window has left fullscreen mode */ - WindowDestroyed, /**< The window with the associated ID is being or has been destroyed. If this message is being handled + WindowMoved, /**< Window has been moved to data1, data2 */ + WindowResized, /**< Window has been resized to data1xdata2 */ + WindowPixelSizeChanged,/**< The pixel size of the window has changed to data1xdata2 */ + WindowMetalViewResized,/**< The pixel size of a Metal view associated with the window has changed */ + WindowMinimized, /**< Window has been minimized */ + WindowMaximized, /**< Window has been maximized */ + WindowRestored, /**< Window has been restored to normal size and position */ + WindowMouseEnter, /**< Window has gained mouse focus */ + WindowMouseLeave, /**< Window has lost mouse focus */ + WindowFocusGained, /**< Window has gained keyboard focus */ + WindowFocusLost, /**< Window has lost keyboard focus */ + WindowCloseRequested, /**< The window manager requests that the window be closed */ + WindowHitTest, /**< Window had a hit test that wasn't SDL_HITTEST_NORMAL */ + WindowIccprofChanged, /**< The ICC profile of the window's display has changed */ + WindowDisplayChanged, /**< Window has been moved to display data1 */ + WindowDisplayScaleChanged, /**< Window display scale has been changed */ + WindowSafeAreaChanged, /**< The window safe area has been changed */ + WindowOccluded, /**< The window has been occluded */ + WindowEnterFullscreen, /**< The window has entered fullscreen mode */ + WindowLeaveFullscreen, /**< The window has left fullscreen mode */ + WindowDestroyed, /**< The window with the associated ID is being or has been destroyed. If this message is being handled in an event watcher, the window handle is still valid and can still be used to retrieve any properties associated with the window. Otherwise, the handle has already been destroyed and all resources associated with it are invalid */ - WindowHdrStateChanged, /**< Window HDR properties have changed */ - WindowFirst = WindowShown, - WindowLast = WindowHdrStateChanged, + WindowHdrStateChanged, /**< Window HDR properties have changed */ + WindowFirst = WindowShown, + WindowLast = WindowHdrStateChanged, /* Keyboard events */ - KeyDown = 0x300, /**< Key pressed */ - KeyUp, /**< Key released */ - extEditing, /**< Keyboard text editing (composition) */ - extInput, /**< Keyboard text input */ - KeymapChanged, /**< Keymap changed due to a system event such as an + KeyDown = 0x300, /**< Key pressed */ + KeyUp, /**< Key released */ + extEditing, /**< Keyboard text editing (composition) */ + extInput, /**< Keyboard text input */ + KeymapChanged, /**< Keymap changed due to a system event such as an input language or keyboard layout change. */ - KeyboardAdded, /**< A new keyboard has been inserted into the system */ - KeyboardRemoved, /**< A keyboard has been removed */ - extEditingCandidates, /**< Keyboard text editing candidates */ - ScreenKeyboardShown, /**< The on-screen keyboard has been shown */ - ScreenKeyboardHidden, /**< The on-screen keyboard has been hidden */ + KeyboardAdded, /**< A new keyboard has been inserted into the system */ + KeyboardRemoved, /**< A keyboard has been removed */ + extEditingCandidates, /**< Keyboard text editing candidates */ + ScreenKeyboardShown, /**< The on-screen keyboard has been shown */ + ScreenKeyboardHidden, /**< The on-screen keyboard has been hidden */ /* Mouse events */ - MouseMotion = 0x400, /**< Mouse moved */ - MouseButtonDown, /**< Mouse button pressed */ - MouseButtonUp, /**< Mouse button released */ - MouseWheel, /**< Mouse wheel motion */ - MouseAdded, /**< A new mouse has been inserted into the system */ - MouseRemoved, /**< A mouse has been removed */ + MouseMotion = 0x400, /**< Mouse moved */ + MouseButtonDown, /**< Mouse button pressed */ + MouseButtonUp, /**< Mouse button released */ + MouseWheel, /**< Mouse wheel motion */ + MouseAdded, /**< A new mouse has been inserted into the system */ + MouseRemoved, /**< A mouse has been removed */ /* Joystick events */ - JoystickAxisMotion = 0x600, /**< Joystick axis motion */ - JoystickBallMotion, /**< Joystick trackball motion */ - JoystickHatMotion, /**< Joystick hat position change */ - JoystickButtonDown, /**< Joystick button pressed */ - JoystickButtonUp, /**< Joystick button released */ - JoystickAdded, /**< A new joystick has been inserted into the system */ - JoystickRemoved, /**< An opened joystick has been removed */ - JoystickBatteryUpdated, /**< Joystick battery level change */ - JoystickUpdateComplete, /**< Joystick update is complete */ + JoystickAxisMotion = 0x600, /**< Joystick axis motion */ + JoystickBallMotion, /**< Joystick trackball motion */ + JoystickHatMotion, /**< Joystick hat position change */ + JoystickButtonDown, /**< Joystick button pressed */ + JoystickButtonUp, /**< Joystick button released */ + JoystickAdded, /**< A new joystick has been inserted into the system */ + JoystickRemoved, /**< An opened joystick has been removed */ + JoystickBatteryUpdated, /**< Joystick battery level change */ + JoystickUpdateComplete, /**< Joystick update is complete */ /* Gamepad events */ - GamepadAxisMotion = 0x650, /**< Gamepad axis motion */ - GamepadButtonDown, /**< Gamepad button pressed */ - GamepadButtonUp, /**< Gamepad button released */ - GamepadAdded, /**< A new gamepad has been inserted into the system */ - GamepadRemoved, /**< A gamepad has been removed */ - GamepadRemapped, /**< The gamepad mapping was updated */ - GamepadTouchpadDown, /**< Gamepad touchpad was touched */ - GamepadTouchpadMotion, /**< Gamepad touchpad finger was moved */ - GamepadTouchpadUp, /**< Gamepad touchpad finger was lifted */ - GamepadSensorUpdate, /**< Gamepad sensor was updated */ - GamepadUpdateComplete, /**< Gamepad update is complete */ - GamepadSteamHandleUpdated, /**< Gamepad Steam handle has changed */ + GamepadAxisMotion = 0x650, /**< Gamepad axis motion */ + GamepadButtonDown, /**< Gamepad button pressed */ + GamepadButtonUp, /**< Gamepad button released */ + GamepadAdded, /**< A new gamepad has been inserted into the system */ + GamepadRemoved, /**< A gamepad has been removed */ + GamepadRemapped, /**< The gamepad mapping was updated */ + GamepadTouchpadDown, /**< Gamepad touchpad was touched */ + GamepadTouchpadMotion, /**< Gamepad touchpad finger was moved */ + GamepadTouchpadUp, /**< Gamepad touchpad finger was lifted */ + GamepadSensorUpdate, /**< Gamepad sensor was updated */ + GamepadUpdateComplete, /**< Gamepad update is complete */ + GamepadSteamHandleUpdated, /**< Gamepad Steam handle has changed */ /* Touch events */ - FingerDown = 0x700, - FingerUp, - FingerMotion, - FingerCanceled, + FingerDown = 0x700, + FingerUp, + FingerMotion, + FingerCanceled, /* Pinch events */ - PinchBegin = 0x710, /**< Pinch gesture started */ - PinchUpdate, /**< Pinch gesture updated */ - PinchEnd, /**< Pinch gesture ended */ + PinchBegin = 0x710, /**< Pinch gesture started */ + PinchUpdate, /**< Pinch gesture updated */ + PinchEnd, /**< Pinch gesture ended */ /* 0x800, 0x801, and 0x802 were the Gesture events from SDL2. Do not reuse these values! sdl2-compat needs them! */ /* Clipboard events */ - ClipboardUpdate = 0x900, /**< The clipboard changed */ + ClipboardUpdate = 0x900, /**< The clipboard changed */ /* Drag and drop events */ - DropFile = 0x1000, /**< The system requests a file open */ - DropText, /**< text/plain drag-and-drop event */ - DropBegin, /**< A new set of drops is beginning (NULL filename) */ - DropComplete, /**< Current set of drops is now complete (NULL filename) */ - DropPosition, /**< Position while moving over the window */ + DropFile = 0x1000, /**< The system requests a file open */ + DropText, /**< text/plain drag-and-drop event */ + DropBegin, /**< A new set of drops is beginning (NULL filename) */ + DropComplete, /**< Current set of drops is now complete (NULL filename) */ + DropPosition, /**< Position while moving over the window */ /* Audio hotplug events */ - AudioDeviceAdded = 0x1100, /**< A new audio device is available */ - AudioDeviceRemoved, /**< An audio device has been removed. */ - AudioDeviceFormatChanged, /**< An audio device's format has been changed by the system. */ + AudioDeviceAdded = 0x1100, /**< A new audio device is available */ + AudioDeviceRemoved, /**< An audio device has been removed. */ + AudioDeviceFormatChanged, /**< An audio device's format has been changed by the system. */ /* Sensor events */ - SensorUpdate = 0x1200, /**< A sensor was updated */ + SensorUpdate = 0x1200, /**< A sensor was updated */ /* Pressure-sensitive pen events */ - PenProximityIn = 0x1300, /**< Pressure-sensitive pen has become available */ - PenProximityOut, /**< Pressure-sensitive pen has become unavailable */ - PenDown, /**< Pressure-sensitive pen touched drawing surface */ - PenUp, /**< Pressure-sensitive pen stopped touching drawing surface */ - PenButtonDown, /**< Pressure-sensitive pen button pressed */ - PenButtonUp, /**< Pressure-sensitive pen button released */ - PenMotion, /**< Pressure-sensitive pen is moving on the tablet */ - PenAxis, /**< Pressure-sensitive pen angle/pressure/etc changed */ + PenProximityIn = 0x1300, /**< Pressure-sensitive pen has become available */ + PenProximityOut, /**< Pressure-sensitive pen has become unavailable */ + PenDown, /**< Pressure-sensitive pen touched drawing surface */ + PenUp, /**< Pressure-sensitive pen stopped touching drawing surface */ + PenButtonDown, /**< Pressure-sensitive pen button pressed */ + PenButtonUp, /**< Pressure-sensitive pen button released */ + PenMotion, /**< Pressure-sensitive pen is moving on the tablet */ + PenAxis, /**< Pressure-sensitive pen angle/pressure/etc changed */ /* Camera hotplug events */ - CameraDeviceAdded = 0x1400, /**< A new camera device is available */ - CameraDeviceRemoved, /**< A camera device has been removed. */ - CameraDeviceApproved, /**< A camera device has been approved for use by the user. */ - CameraDeviceDenied, /**< A camera device has been denied for use by the user. */ + CameraDeviceAdded = 0x1400, /**< A new camera device is available */ + CameraDeviceRemoved, /**< A camera device has been removed. */ + CameraDeviceApproved, /**< A camera device has been approved for use by the user. */ + CameraDeviceDenied, /**< A camera device has been denied for use by the user. */ /* Render events */ - RenderTargetsReset = 0x2000, /**< The render targets have been reset and their contents need to be updated */ - RenderDeviceReset, /**< The device has been reset and all textures need to be recreated */ - RenderDeviceLost, /**< The device has been lost and can't be recovered. */ + RenderTargetsReset = 0x2000, /**< The render targets have been reset and their contents need to be updated */ + RenderDeviceReset, /**< The device has been reset and all textures need to be recreated */ + RenderDeviceLost, /**< The device has been lost and can't be recovered. */ /* Reserved events for private platforms */ - Private0 = 0x4000, - Private1, - Private2, - Private3, + Private0 = 0x4000, + Private1, + Private2, + Private3, /* Internal events */ - PollSentinel = 0x7F00, /**< Signals the end of an event poll cycle */ + PollSentinel = 0x7F00, /**< Signals the end of an event poll cycle */ /** Events SDL_EVENT_USER through SDL_EVENT_LAST are for your use, * and should be allocated with SDL_RegisterEvents() */ - User = 0x8000, + User = 0x8000, /** * This last event is only for bounding internal arrays */ - Last = 0xFFFF, + Last = 0xFFFF, /* This just makes sure the enum is the size of Uint32 */ - EnumPadding = 0x7FFFFFFF, + EnumPadding = 0x7FFFFFFF, } @@ -1118,9 +1118,9 @@ extension SDL */ [AllowDuplicates] public enum EventAction : c_int { - Addevent, /**< Add events to the back of the queue. */ - Peekevent, /**< Check but don't remove events from the queue front. */ - Getevent, /**< Retrieve/remove events from the front of the queue. */ + Addevent, /**< Add events to the back of the queue. */ + Peekevent, /**< Check but don't remove events from the queue front. */ + /**< Retrieve/remove events from the front of the queue. */ Getevent, /**< Retrieve/remove events from the front of the queue. */ } /** diff --git a/src/SDL_filesystem.bf b/src/SDL_filesystem.bf index 31d1a85..2d353d1 100644 --- a/src/SDL_filesystem.bf +++ b/src/SDL_filesystem.bf @@ -204,18 +204,18 @@ extension SDL */ [AllowDuplicates] public enum Folder : c_int { - Home, /**< The folder which contains all of the current user's data, preferences, and documents. It usually contains most of the other folders. If a requested folder does not exist, the home folder can be considered a safe fallback to store a user's documents. */ - Desktop, /**< The folder of files that are displayed on the desktop. Note that the existence of a desktop folder does not guarantee that the system does show icons on its desktop; certain GNU/Linux distros with a graphical environment may not have desktop icons. */ - Documents, /**< User document files, possibly application-specific. This is a good place to save a user's projects. */ - Downloads, /**< Standard folder for user files downloaded from the internet. */ - Music, /**< Music files that can be played using a standard music player (mp3, ogg...). */ - Pictures, /**< Image files that can be displayed using a standard viewer (png, jpg...). */ - Publicshare, /**< Files that are meant to be shared with other users on the same computer. */ - Savedgames, /**< Save files for games. */ - Screenshots, /**< Application screenshots. */ - Templates, /**< Template files to be used when the user requests the desktop environment to create a new file in a certain folder, such as "New Text File.txt". Any file in the Templates folder can be used as a starting point for a new file. */ - Videos, /**< Video files that can be played using a standard video player (mp4, webm...). */ - Count, /**< Total number of types in this enum, not a folder type by itself. */ + Home, /**< The folder which contains all of the current user's data, preferences, and documents. It usually contains most of the other folders. If a requested folder does not exist, the home folder can be considered a safe fallback to store a user's documents. */ + Desktop, /**< The folder of files that are displayed on the desktop. Note that the existence of a desktop folder does not guarantee that the system does show icons on its desktop; certain GNU/Linux distros with a graphical environment may not have desktop icons. */ + Documents, /**< User document files, possibly application-specific. This is a good place to save a user's projects. */ + Downloads, /**< Standard folder for user files downloaded from the internet. */ + Music, /**< Music files that can be played using a standard music player (mp3, ogg...). */ + Pictures, /**< Image files that can be displayed using a standard viewer (png, jpg...). */ + Publicshare, /**< Files that are meant to be shared with other users on the same computer. */ + Savedgames, /**< Save files for games. */ + Screenshots, /**< Application screenshots. */ + Templates, /**< Template files to be used when the user requests the desktop environment to create a new file in a certain folder, such as "New Text File.txt". Any file in the Templates folder can be used as a starting point for a new file. */ + Videos, /**< Video files that can be played using a standard video player (mp4, webm...). */ + /**< Total number of types in this enum, not a folder type by itself. */ Count, /**< Total number of types in this enum, not a folder type by itself. */ } /** @@ -260,10 +260,10 @@ extension SDL */ [AllowDuplicates] public enum PathType : c_int { - None, /**< path does not exist */ - File, /**< a normal file */ - Directory, /**< a directory */ - Other, /**< something completely different like a device node (not a symlink, those are always followed) */ + None, /**< path does not exist */ + File, /**< a normal file */ + Directory, /**< a directory */ + /**< something completely different like a device node (not a symlink, those are always followed) */ Other, /**< something completely different like a device node (not a symlink, those are always followed) */ } /** @@ -341,9 +341,9 @@ public enum GlobFlags : Uint32 */ [AllowDuplicates] public enum EnumerationResult : c_int { - Continue, /**< Value that requests that enumeration continue. */ - Success, /**< Value that requests that enumeration stop, successfully. */ - Failure, /**< Value that requests that enumeration stop, as a failure. */ + Continue, /**< Value that requests that enumeration continue. */ + Success, /**< Value that requests that enumeration stop, successfully. */ + /**< Value that requests that enumeration stop, as a failure. */ Failure, /**< Value that requests that enumeration stop, as a failure. */ } /** diff --git a/src/SDL_gamepad.bf b/src/SDL_gamepad.bf index 59c7b06..386822c 100644 --- a/src/SDL_gamepad.bf +++ b/src/SDL_gamepad.bf @@ -120,19 +120,19 @@ extension SDL */ [AllowDuplicates] public enum GamepadType : c_int { - Unknown = 0, - Standard, - Xbox360, - Xboxone, - Ps3, - Ps4, - Ps5, - NintendoSwitchPro, - NintendoSwitchJoyconLeft, - NintendoSwitchJoyconRight, - NintendoSwitchJoyconPair, - Gamecube, - Count, + Unknown = 0, + Standard, + Xbox360, + Xboxone, + Ps3, + Ps4, + Ps5, + NintendoSwitchPro, + NintendoSwitchJoyconLeft, + NintendoSwitchJoyconRight, + NintendoSwitchJoyconPair, + Gamecube, + Count, } /** @@ -161,34 +161,34 @@ extension SDL */ [AllowDuplicates] public enum GamepadButton : c_int { - Invalid = -1, - South, /**< Bottom face button (e.g. Xbox A button) */ - East, /**< Right face button (e.g. Xbox B button) */ - West, /**< Left face button (e.g. Xbox X button) */ - North, /**< Top face button (e.g. Xbox Y button) */ - Back, - Guide, - Start, - LeftStick, - RightStick, - LeftShoulder, - RightShoulder, - DpadUp, - DpadDown, - DpadLeft, - DpadRight, - Misc1, /**< Additional button (e.g. Xbox Series X share button, PS5 microphone button, Nintendo Switch Pro capture button, Amazon Luna microphone button, Google Stadia capture button) */ - RightPaddle1, /**< Upper or primary paddle, under your right hand (e.g. Xbox Elite paddle P1, DualSense Edge RB button, Right Joy-Con SR button) */ - LeftPaddle1, /**< Upper or primary paddle, under your left hand (e.g. Xbox Elite paddle P3, DualSense Edge LB button, Left Joy-Con SL button) */ - RightPaddle2, /**< Lower or secondary paddle, under your right hand (e.g. Xbox Elite paddle P2, DualSense Edge right Fn button, Right Joy-Con SL button) */ - LeftPaddle2, /**< Lower or secondary paddle, under your left hand (e.g. Xbox Elite paddle P4, DualSense Edge left Fn button, Left Joy-Con SR button) */ - Touchpad, /**< PS4/PS5 touchpad button */ - Misc2, /**< Additional button */ - Misc3, /**< Additional button (e.g. Nintendo GameCube left trigger click) */ - Misc4, /**< Additional button (e.g. Nintendo GameCube right trigger click) */ - Misc5, /**< Additional button */ - Misc6, /**< Additional button */ - Count, + Invalid = -1, + South, /**< Bottom face button (e.g. Xbox A button) */ + East, /**< Right face button (e.g. Xbox B button) */ + West, /**< Left face button (e.g. Xbox X button) */ + North, /**< Top face button (e.g. Xbox Y button) */ + Back, + Guide, + Start, + LeftStick, + RightStick, + LeftShoulder, + RightShoulder, + DpadUp, + DpadDown, + DpadLeft, + DpadRight, + Misc1, /**< Additional button (e.g. Xbox Series X share button, PS5 microphone button, Nintendo Switch Pro capture button, Amazon Luna microphone button, Google Stadia capture button) */ + RightPaddle1, /**< Upper or primary paddle, under your right hand (e.g. Xbox Elite paddle P1, DualSense Edge RB button, Right Joy-Con SR button) */ + LeftPaddle1, /**< Upper or primary paddle, under your left hand (e.g. Xbox Elite paddle P3, DualSense Edge LB button, Left Joy-Con SL button) */ + RightPaddle2, /**< Lower or secondary paddle, under your right hand (e.g. Xbox Elite paddle P2, DualSense Edge right Fn button, Right Joy-Con SL button) */ + LeftPaddle2, /**< Lower or secondary paddle, under your left hand (e.g. Xbox Elite paddle P4, DualSense Edge left Fn button, Left Joy-Con SR button) */ + Touchpad, /**< PS4/PS5 touchpad button */ + Misc2, /**< Additional button */ + Misc3, /**< Additional button (e.g. Nintendo GameCube left trigger click) */ + Misc4, /**< Additional button (e.g. Nintendo GameCube right trigger click) */ + Misc5, /**< Additional button */ + Misc6, /**< Additional button */ + Count, } /** @@ -204,15 +204,15 @@ extension SDL */ [AllowDuplicates] public enum GamepadButtonLabel : c_int { - Unknown, - A, - B, - X, - Y, - Cross, - Circle, - Square, - Triangle, + Unknown, + A, + B, + X, + Y, + Cross, + Circle, + Square, + Triangle, } /** @@ -231,14 +231,14 @@ extension SDL */ [AllowDuplicates] public enum GamepadAxis : c_int { - Invalid = -1, - Leftx, - Lefty, - Rightx, - Righty, - LeftTrigger, - RightTrigger, - Count, + Invalid = -1, + Leftx, + Lefty, + Rightx, + Righty, + LeftTrigger, + RightTrigger, + Count, } /** @@ -253,10 +253,10 @@ extension SDL */ [AllowDuplicates] public enum GamepadBindingType : c_int { - None = 0, - Button, - Axis, - Hat, + None = 0, + Button, + Axis, + Hat, } /** diff --git a/src/SDL_gpu.bf b/src/SDL_gpu.bf index 0742120..444ffd5 100644 --- a/src/SDL_gpu.bf +++ b/src/SDL_gpu.bf @@ -630,11 +630,11 @@ extension SDL */ [AllowDuplicates] public enum GPUPrimitiveType : c_int { - Trianglelist, /**< A series of separate triangles. */ - Trianglestrip, /**< A series of connected triangles. */ - Linelist, /**< A series of separate lines. */ - Linestrip, /**< A series of connected lines. */ - Pointlist, /**< A series of separate points. */ + Trianglelist, /**< A series of separate triangles. */ + Trianglestrip, /**< A series of connected triangles. */ + Linelist, /**< A series of separate lines. */ + Linestrip, /**< A series of connected lines. */ + /**< A series of separate points. */ Pointlist, /**< A series of separate points. */ } /** @@ -647,9 +647,9 @@ extension SDL */ [AllowDuplicates] public enum GPULoadOp : c_int { - Load, /**< The previous contents of the texture will be preserved. */ - Clear, /**< The contents of the texture will be cleared to a color. */ - DontCare, /**< The previous contents of the texture need not be preserved. The contents will be undefined. */ + Load, /**< The previous contents of the texture will be preserved. */ + Clear, /**< The contents of the texture will be cleared to a color. */ + /**< The previous contents of the texture need not be preserved. The contents will be undefined. */ DontCare, /**< The previous contents of the texture need not be preserved. The contents will be undefined. */ } /** @@ -662,10 +662,10 @@ extension SDL */ [AllowDuplicates] public enum GPUStoreOp : c_int { - Store, /**< The contents generated during the render pass will be written to memory. */ - DontCare, /**< The contents generated during the render pass are not needed and may be discarded. The contents will be undefined. */ - Resolve, /**< The multisample contents generated during the render pass will be resolved to a non-multisample texture. The contents in the multisample texture may then be discarded and will be undefined. */ - ResolveAndStore, /**< The multisample contents generated during the render pass will be resolved to a non-multisample texture. The contents in the multisample texture will be written to memory. */ + Store, /**< The contents generated during the render pass will be written to memory. */ + DontCare, /**< The contents generated during the render pass are not needed and may be discarded. The contents will be undefined. */ + Resolve, /**< The multisample contents generated during the render pass will be resolved to a non-multisample texture. The contents in the multisample texture may then be discarded and will be undefined. */ + /**< The multisample contents generated during the render pass will be resolved to a non-multisample texture. The contents in the multisample texture will be written to memory. */ ResolveAndStore, /**< The multisample contents generated during the render pass will be resolved to a non-multisample texture. The contents in the multisample texture will be written to memory. */ } /** @@ -677,8 +677,8 @@ extension SDL */ [AllowDuplicates] public enum GPUIndexElementSize : c_int { - _16bit, /**< The index elements are 16-bit. */ - _32bit, /**< The index elements are 32-bit. */ + _16bit, /**< The index elements are 16-bit. */ + /**< The index elements are 32-bit. */ _32bit, /**< The index elements are 32-bit. */ } /** @@ -768,127 +768,127 @@ extension SDL */ [AllowDuplicates] public enum GPUTextureFormat : c_int { - INVALID, + INVALID, /* Unsigned Normalized Float Color Formats */ - A8_UNORM, - R8_UNORM, - R8G8_UNORM, - R8G8B8A8_UNORM, - R16_UNORM, - R16G16_UNORM, - R16G16B16A16_UNORM, - R10G10B10A2_UNORM, - B5G6R5_UNORM, - B5G5R5A1_UNORM, - B4G4R4A4_UNORM, - B8G8R8A8_UNORM, + A8_UNORM, + R8_UNORM, + R8G8_UNORM, + R8G8B8A8_UNORM, + R16_UNORM, + R16G16_UNORM, + R16G16B16A16_UNORM, + R10G10B10A2_UNORM, + B5G6R5_UNORM, + B5G5R5A1_UNORM, + B4G4R4A4_UNORM, + B8G8R8A8_UNORM, /* Compressed Unsigned Normalized Float Color Formats */ - BC1_RGBA_UNORM, - BC2_RGBA_UNORM, - BC3_RGBA_UNORM, - BC4_R_UNORM, - BC5_RG_UNORM, - BC7_RGBA_UNORM, + BC1_RGBA_UNORM, + BC2_RGBA_UNORM, + BC3_RGBA_UNORM, + BC4_R_UNORM, + BC5_RG_UNORM, + BC7_RGBA_UNORM, /* Compressed Signed Float Color Formats */ - BC6H_RGB_FLOAT, + BC6H_RGB_FLOAT, /* Compressed Unsigned Float Color Formats */ - BC6H_RGB_UFLOAT, + BC6H_RGB_UFLOAT, /* Signed Normalized Float Color Formats */ - R8_SNORM, - R8G8_SNORM, - R8G8B8A8_SNORM, - R16_SNORM, - R16G16_SNORM, - R16G16B16A16_SNORM, + R8_SNORM, + R8G8_SNORM, + R8G8B8A8_SNORM, + R16_SNORM, + R16G16_SNORM, + R16G16B16A16_SNORM, /* Signed Float Color Formats */ - R16_FLOAT, - R16G16_FLOAT, - R16G16B16A16_FLOAT, - R32_FLOAT, - R32G32_FLOAT, - R32G32B32A32_FLOAT, + R16_FLOAT, + R16G16_FLOAT, + R16G16B16A16_FLOAT, + R32_FLOAT, + R32G32_FLOAT, + R32G32B32A32_FLOAT, /* Unsigned Float Color Formats */ - R11G11B10_UFLOAT, + R11G11B10_UFLOAT, /* Unsigned Integer Color Formats */ - R8_UINT, - R8G8_UINT, - R8G8B8A8_UINT, - R16_UINT, - R16G16_UINT, - R16G16B16A16_UINT, - R32_UINT, - R32G32_UINT, - R32G32B32A32_UINT, + R8_UINT, + R8G8_UINT, + R8G8B8A8_UINT, + R16_UINT, + R16G16_UINT, + R16G16B16A16_UINT, + R32_UINT, + R32G32_UINT, + R32G32B32A32_UINT, /* Signed Integer Color Formats */ - R8_INT, - R8G8_INT, - R8G8B8A8_INT, - R16_INT, - R16G16_INT, - R16G16B16A16_INT, - R32_INT, - R32G32_INT, - R32G32B32A32_INT, + R8_INT, + R8G8_INT, + R8G8B8A8_INT, + R16_INT, + R16G16_INT, + R16G16B16A16_INT, + R32_INT, + R32G32_INT, + R32G32B32A32_INT, /* SRGB Unsigned Normalized Color Formats */ - R8G8B8A8_UNORM_SRGB, - B8G8R8A8_UNORM_SRGB, + R8G8B8A8_UNORM_SRGB, + B8G8R8A8_UNORM_SRGB, /* Compressed SRGB Unsigned Normalized Color Formats */ - BC1_RGBA_UNORM_SRGB, - BC2_RGBA_UNORM_SRGB, - BC3_RGBA_UNORM_SRGB, - BC7_RGBA_UNORM_SRGB, + BC1_RGBA_UNORM_SRGB, + BC2_RGBA_UNORM_SRGB, + BC3_RGBA_UNORM_SRGB, + BC7_RGBA_UNORM_SRGB, /* Depth Formats */ - D16_UNORM, - D24_UNORM, - D32_FLOAT, - D24_UNORM_S8_UINT, - D32_FLOAT_S8_UINT, + D16_UNORM, + D24_UNORM, + D32_FLOAT, + D24_UNORM_S8_UINT, + D32_FLOAT_S8_UINT, /* Compressed ASTC Normalized Float Color Formats*/ - ASTC_4x4_UNORM, - ASTC_5x4_UNORM, - ASTC_5x5_UNORM, - ASTC_6x5_UNORM, - ASTC_6x6_UNORM, - ASTC_8x5_UNORM, - ASTC_8x6_UNORM, - ASTC_8x8_UNORM, - ASTC_10x5_UNORM, - ASTC_10x6_UNORM, - ASTC_10x8_UNORM, - ASTC_10x10_UNORM, - ASTC_12x10_UNORM, - ASTC_12x12_UNORM, + ASTC_4x4_UNORM, + ASTC_5x4_UNORM, + ASTC_5x5_UNORM, + ASTC_6x5_UNORM, + ASTC_6x6_UNORM, + ASTC_8x5_UNORM, + ASTC_8x6_UNORM, + ASTC_8x8_UNORM, + ASTC_10x5_UNORM, + ASTC_10x6_UNORM, + ASTC_10x8_UNORM, + ASTC_10x10_UNORM, + ASTC_12x10_UNORM, + ASTC_12x12_UNORM, /* Compressed SRGB ASTC Normalized Float Color Formats*/ - ASTC_4x4_UNORM_SRGB, - ASTC_5x4_UNORM_SRGB, - ASTC_5x5_UNORM_SRGB, - ASTC_6x5_UNORM_SRGB, - ASTC_6x6_UNORM_SRGB, - ASTC_8x5_UNORM_SRGB, - ASTC_8x6_UNORM_SRGB, - ASTC_8x8_UNORM_SRGB, - ASTC_10x5_UNORM_SRGB, - ASTC_10x6_UNORM_SRGB, - ASTC_10x8_UNORM_SRGB, - ASTC_10x10_UNORM_SRGB, - ASTC_12x10_UNORM_SRGB, - ASTC_12x12_UNORM_SRGB, + ASTC_4x4_UNORM_SRGB, + ASTC_5x4_UNORM_SRGB, + ASTC_5x5_UNORM_SRGB, + ASTC_6x5_UNORM_SRGB, + ASTC_6x6_UNORM_SRGB, + ASTC_8x5_UNORM_SRGB, + ASTC_8x6_UNORM_SRGB, + ASTC_8x8_UNORM_SRGB, + ASTC_10x5_UNORM_SRGB, + ASTC_10x6_UNORM_SRGB, + ASTC_10x8_UNORM_SRGB, + ASTC_10x10_UNORM_SRGB, + ASTC_12x10_UNORM_SRGB, + ASTC_12x12_UNORM_SRGB, /* Compressed ASTC Signed Float Color Formats*/ - ASTC_4x4_FLOAT, - ASTC_5x4_FLOAT, - ASTC_5x5_FLOAT, - ASTC_6x5_FLOAT, - ASTC_6x6_FLOAT, - ASTC_8x5_FLOAT, - ASTC_8x6_FLOAT, - ASTC_8x8_FLOAT, - ASTC_10x5_FLOAT, - ASTC_10x6_FLOAT, - ASTC_10x8_FLOAT, - ASTC_10x10_FLOAT, - ASTC_12x10_FLOAT, - ASTC_12x12_FLOAT, + ASTC_4x4_FLOAT, + ASTC_5x4_FLOAT, + ASTC_5x5_FLOAT, + ASTC_6x5_FLOAT, + ASTC_6x6_FLOAT, + ASTC_8x5_FLOAT, + ASTC_8x6_FLOAT, + ASTC_8x8_FLOAT, + ASTC_10x5_FLOAT, + ASTC_10x6_FLOAT, + ASTC_10x8_FLOAT, + ASTC_10x10_FLOAT, + ASTC_12x10_FLOAT, + ASTC_12x12_FLOAT, } /** @@ -931,11 +931,11 @@ public enum GPUTextureUsageFlags : Uint32 */ [AllowDuplicates] public enum GPUTextureType : c_int { - _2d, /**< The texture is a 2-dimensional image. */ - _2dArray, /**< The texture is a 2-dimensional array image. */ - _3d, /**< The texture is a 3-dimensional image. */ - Cube, /**< The texture is a cube image. */ - CubeArray, /**< The texture is a cube array image. */ + _2d, /**< The texture is a 2-dimensional image. */ + _2dArray, /**< The texture is a 2-dimensional array image. */ + _3d, /**< The texture is a 3-dimensional image. */ + Cube, /**< The texture is a cube image. */ + /**< The texture is a cube array image. */ CubeArray, /**< The texture is a cube array image. */ } /** @@ -951,10 +951,10 @@ public enum GPUTextureUsageFlags : Uint32 */ [AllowDuplicates] public enum GPUSampleCount : c_int { - _1, /**< No multisampling. */ - _2, /**< MSAA 2x */ - _4, /**< MSAA 4x */ - _8, /**< MSAA 8x */ + _1, /**< No multisampling. */ + _2, /**< MSAA 2x */ + _4, /**< MSAA 4x */ + /**< MSAA 8x */ _8, /**< MSAA 8x */ } @@ -967,12 +967,12 @@ public enum GPUTextureUsageFlags : Uint32 */ [AllowDuplicates] public enum GPUCubeMapFace : c_int { - Positivex, - Negativex, - Positivey, - Negativey, - Positivez, - Negativez, + Positivex, + Negativex, + Positivey, + Negativey, + Positivez, + Negativez, } /** @@ -1014,8 +1014,8 @@ public enum GPUBufferUsageFlags : Uint32 */ [AllowDuplicates] public enum GPUTransferBufferUsage : c_int { - Upload, - Download, + Upload, + Download, } /** @@ -1027,8 +1027,8 @@ public enum GPUBufferUsageFlags : Uint32 */ [AllowDuplicates] public enum GPUShaderStage : c_int { - Vertex, - Fragment, + Vertex, + Fragment, } /** @@ -1060,61 +1060,61 @@ public enum GPUShaderFormat : Uint32 */ [AllowDuplicates] public enum GPUVertexElementFormat : c_int { - Invalid, + Invalid, /* 32-bit Signed Integers */ - Int, - Int2, - Int3, - Int4, + Int, + Int2, + Int3, + Int4, /* 32-bit Unsigned Integers */ - Uint, - Uint2, - Uint3, - Uint4, + Uint, + Uint2, + Uint3, + Uint4, /* 32-bit Floats */ - Float, - Float2, - Float3, - Float4, + Float, + Float2, + Float3, + Float4, /* 8-bit Signed Integers */ - Byte2, - Byte4, + Byte2, + Byte4, /* 8-bit Unsigned Integers */ - Ubyte2, - Ubyte4, + Ubyte2, + Ubyte4, /* 8-bit Signed Normalized */ - Byte2Norm, - Byte4Norm, + Byte2Norm, + Byte4Norm, /* 8-bit Unsigned Normalized */ - Ubyte2Norm, - Ubyte4Norm, + Ubyte2Norm, + Ubyte4Norm, /* 16-bit Signed Integers */ - Short2, - Short4, + Short2, + Short4, /* 16-bit Unsigned Integers */ - Ushort2, - Ushort4, + Ushort2, + Ushort4, /* 16-bit Signed Normalized */ - Short2Norm, - Short4Norm, + Short2Norm, + Short4Norm, /* 16-bit Unsigned Normalized */ - Ushort2Norm, - Ushort4Norm, + Ushort2Norm, + Ushort4Norm, /* 16-bit Floats */ - Half2, - Half4, + Half2, + Half4, } /** @@ -1126,8 +1126,8 @@ public enum GPUShaderFormat : Uint32 */ [AllowDuplicates] public enum GPUVertexInputRate : c_int { - Vertex, /**< Attribute addressing is a function of the vertex index. */ - Instance, /**< Attribute addressing is a function of the instance index. */ + Vertex, /**< Attribute addressing is a function of the vertex index. */ + /**< Attribute addressing is a function of the instance index. */ Instance, /**< Attribute addressing is a function of the instance index. */ } /** @@ -1139,8 +1139,8 @@ public enum GPUShaderFormat : Uint32 */ [AllowDuplicates] public enum GPUFillMode : c_int { - Fill, /**< Polygons will be rendered via rasterization. */ - Line, /**< Polygon edges will be drawn as line segments. */ + Fill, /**< Polygons will be rendered via rasterization. */ + /**< Polygon edges will be drawn as line segments. */ Line, /**< Polygon edges will be drawn as line segments. */ } /** @@ -1152,9 +1152,9 @@ public enum GPUShaderFormat : Uint32 */ [AllowDuplicates] public enum GPUCullMode : c_int { - None, /**< No triangles are culled. */ - Front, /**< Front-facing triangles are culled. */ - Back, /**< Back-facing triangles are culled. */ + None, /**< No triangles are culled. */ + Front, /**< Front-facing triangles are culled. */ + /**< Back-facing triangles are culled. */ Back, /**< Back-facing triangles are culled. */ } /** @@ -1167,8 +1167,8 @@ public enum GPUShaderFormat : Uint32 */ [AllowDuplicates] public enum GPUFrontFace : c_int { - CounterClockwise, /**< A triangle with counter-clockwise vertex winding will be considered front-facing. */ - Clockwise, /**< A triangle with clockwise vertex winding will be considered front-facing. */ + CounterClockwise, /**< A triangle with counter-clockwise vertex winding will be considered front-facing. */ + /**< A triangle with clockwise vertex winding will be considered front-facing. */ Clockwise, /**< A triangle with clockwise vertex winding will be considered front-facing. */ } /** @@ -1180,15 +1180,15 @@ public enum GPUShaderFormat : Uint32 */ [AllowDuplicates] public enum GPUCompareOp : c_int { - Invalid, - Never, /**< The comparison always evaluates false. */ - Less, /**< The comparison evaluates reference < test. */ - Equal, /**< The comparison evaluates reference == test. */ - LessOrEqual, /**< The comparison evaluates reference <= test. */ - Greater, /**< The comparison evaluates reference > test. */ - NotEqual, /**< The comparison evaluates reference != test. */ - GreaterOrEqual, /**< The comparison evaluates reference >= test. */ - Always, /**< The comparison always evaluates true. */ + Invalid, + Never, /**< The comparison always evaluates false. */ + Less, /**< The comparison evaluates reference < test. */ + Equal, /**< The comparison evaluates reference == test. */ + LessOrEqual, /**< The comparison evaluates reference <= test. */ + Greater, /**< The comparison evaluates reference > test. */ + NotEqual, /**< The comparison evaluates reference != test. */ + GreaterOrEqual, /**< The comparison evaluates reference >= test. */ + /**< The comparison always evaluates true. */ Always, /**< The comparison always evaluates true. */ } /** @@ -1201,15 +1201,15 @@ public enum GPUShaderFormat : Uint32 */ [AllowDuplicates] public enum GPUStencilOp : c_int { - Invalid, - Keep, /**< Keeps the current value. */ - Zero, /**< Sets the value to 0. */ - Replace, /**< Sets the value to reference. */ - IncrementAndClamp, /**< Increments the current value and clamps to the maximum value. */ - DecrementAndClamp, /**< Decrements the current value and clamps to 0. */ - Invert, /**< Bitwise-inverts the current value. */ - IncrementAndWrap, /**< Increments the current value and wraps back to 0. */ - DecrementAndWrap, /**< Decrements the current value and wraps to the maximum value. */ + Invalid, + Keep, /**< Keeps the current value. */ + Zero, /**< Sets the value to 0. */ + Replace, /**< Sets the value to reference. */ + IncrementAndClamp, /**< Increments the current value and clamps to the maximum value. */ + DecrementAndClamp, /**< Decrements the current value and clamps to 0. */ + Invert, /**< Bitwise-inverts the current value. */ + IncrementAndWrap, /**< Increments the current value and wraps back to 0. */ + /**< Decrements the current value and wraps to the maximum value. */ DecrementAndWrap, /**< Decrements the current value and wraps to the maximum value. */ } /** @@ -1225,12 +1225,12 @@ public enum GPUShaderFormat : Uint32 */ [AllowDuplicates] public enum GPUBlendOp : c_int { - Invalid, - Add, /**< (source * source_factor) + (destination * destination_factor) */ - Subtract, /**< (source * source_factor) - (destination * destination_factor) */ - ReverseSubtract, /**< (destination * destination_factor) - (source * source_factor) */ - Min, /**< min(source, destination) */ - Max, /**< max(source, destination) */ + Invalid, + Add, /**< (source * source_factor) + (destination * destination_factor) */ + Subtract, /**< (source * source_factor) - (destination * destination_factor) */ + ReverseSubtract, /**< (destination * destination_factor) - (source * source_factor) */ + Min, /**< min(source, destination) */ + /**< max(source, destination) */ Max, /**< max(source, destination) */ } /** @@ -1246,20 +1246,20 @@ public enum GPUShaderFormat : Uint32 */ [AllowDuplicates] public enum GPUBlendFactor : c_int { - Invalid, - Zero, /**< 0 */ - One, /**< 1 */ - SrcColor, /**< source color */ - OneMinusSrcColor, /**< 1 - source color */ - DstColor, /**< destination color */ - OneMinusDstColor, /**< 1 - destination color */ - SrcAlpha, /**< source alpha */ - OneMinusSrcAlpha, /**< 1 - source alpha */ - DstAlpha, /**< destination alpha */ - OneMinusDstAlpha, /**< 1 - destination alpha */ - ConstantColor, /**< blend constant */ - OneMinusConstantColor, /**< 1 - blend constant */ - SrcAlphaSaturate, /**< min(source alpha, 1 - destination alpha) */ + Invalid, + Zero, /**< 0 */ + One, /**< 1 */ + SrcColor, /**< source color */ + OneMinusSrcColor, /**< 1 - source color */ + DstColor, /**< destination color */ + OneMinusDstColor, /**< 1 - destination color */ + SrcAlpha, /**< source alpha */ + OneMinusSrcAlpha, /**< 1 - source alpha */ + DstAlpha, /**< destination alpha */ + OneMinusDstAlpha, /**< 1 - destination alpha */ + ConstantColor, /**< blend constant */ + OneMinusConstantColor, /**< 1 - blend constant */ + /**< min(source alpha, 1 - destination alpha) */ SrcAlphaSaturate, /**< min(source alpha, 1 - destination alpha) */ } /** @@ -1286,8 +1286,8 @@ public enum GPUColorComponentFlags : Uint8 */ [AllowDuplicates] public enum GPUFilter : c_int { - Nearest, /**< Point filtering. */ - Linear, /**< Linear filtering. */ + Nearest, /**< Point filtering. */ + /**< Linear filtering. */ Linear, /**< Linear filtering. */ } /** @@ -1299,8 +1299,8 @@ public enum GPUColorComponentFlags : Uint8 */ [AllowDuplicates] public enum GPUSamplerMipmapMode : c_int { - Nearest, /**< Point filtering. */ - Linear, /**< Linear filtering. */ + Nearest, /**< Point filtering. */ + /**< Linear filtering. */ Linear, /**< Linear filtering. */ } /** @@ -1313,9 +1313,9 @@ public enum GPUColorComponentFlags : Uint8 */ [AllowDuplicates] public enum GPUSamplerAddressMode : c_int { - Repeat, /**< Specifies that the coordinates will wrap around. */ - MirroredRepeat, /**< Specifies that the coordinates will wrap around mirrored. */ - ClampToEdge, /**< Specifies that the coordinates will clamp to the 0-1 range. */ + Repeat, /**< Specifies that the coordinates will wrap around. */ + MirroredRepeat, /**< Specifies that the coordinates will wrap around mirrored. */ + /**< Specifies that the coordinates will clamp to the 0-1 range. */ ClampToEdge, /**< Specifies that the coordinates will clamp to the 0-1 range. */ } /** @@ -1345,9 +1345,9 @@ public enum GPUColorComponentFlags : Uint8 */ [AllowDuplicates] public enum GPUPresentMode : c_int { - Vsync, - Immediate, - Mailbox, + Vsync, + Immediate, + Mailbox, } /** @@ -1378,10 +1378,10 @@ public enum GPUColorComponentFlags : Uint8 */ [AllowDuplicates] public enum GPUSwapchainComposition : c_int { - Sdr, - SdrLinear, - HdrExtendedLinear, - Hdr10St2084, + Sdr, + SdrLinear, + HdrExtendedLinear, + Hdr10St2084, } /* Structures */ diff --git a/src/SDL_hidapi.bf b/src/SDL_hidapi.bf index 7dc37f2..8816d20 100644 --- a/src/SDL_hidapi.bf +++ b/src/SDL_hidapi.bf @@ -87,29 +87,29 @@ extension SDL */ [AllowDuplicates] public enum hid_bus_type : c_int { /** Unknown bus type */ - ApiBusUnknown = 0x00, + ApiBusUnknown = 0x00, /** USB bus Specifications: https://usb.org/hid */ - ApiBusUsb = 0x01, + ApiBusUsb = 0x01, /** Bluetooth or Bluetooth LE bus Specifications: https://www.bluetooth.com/specifications/specs/human-interface-device-profile-1-1-1/ https://www.bluetooth.com/specifications/specs/hid-service-1-0/ https://www.bluetooth.com/specifications/specs/hid-over-gatt-profile-1-0/ */ - ApiBusBluetooth = 0x02, + ApiBusBluetooth = 0x02, /** I2C bus Specifications: https://docs.microsoft.com/previous-versions/windows/hardware/design/dn642101(v=vs.85) */ - ApiBusI2c = 0x03, + ApiBusI2c = 0x03, /** SPI bus Specifications: https://www.microsoft.com/download/details.aspx?id=103325 */ - ApiBusSpi = 0x04, + ApiBusSpi = 0x04, } diff --git a/src/SDL_hints.bf b/src/SDL_hints.bf index fde62a2..2c07a13 100644 --- a/src/SDL_hints.bf +++ b/src/SDL_hints.bf @@ -4771,9 +4771,9 @@ public const let HINT_PEN_TOUCH_EVENTS = "SDL_PEN_TOUCH_EVENTS"; */ [AllowDuplicates] public enum HintPriority : c_int { - Default, - Normal, - Override, + Default, + Normal, + Override, } /** diff --git a/src/SDL_init.bf b/src/SDL_init.bf index bf0ea63..34e44bd 100644 --- a/src/SDL_init.bf +++ b/src/SDL_init.bf @@ -119,9 +119,9 @@ public enum InitFlags : Uint32 */ [AllowDuplicates] public enum AppResult : c_int { - Continue, /**< Value that requests that the app continue from the main callbacks. */ - Success, /**< Value that requests termination with success from the main callbacks. */ - Failure, /**< Value that requests termination with error from the main callbacks. */ + Continue, /**< Value that requests that the app continue from the main callbacks. */ + Success, /**< Value that requests termination with success from the main callbacks. */ + /**< Value that requests termination with error from the main callbacks. */ Failure, /**< Value that requests termination with error from the main callbacks. */ } /** diff --git a/src/SDL_iostream.bf b/src/SDL_iostream.bf index 5450eb6..bb7d003 100644 --- a/src/SDL_iostream.bf +++ b/src/SDL_iostream.bf @@ -62,12 +62,12 @@ extension SDL */ [AllowDuplicates] public enum IOStatus : c_int { - Ready, /**< Everything is ready (no errors and not EOF). */ - Error, /**< Read or write I/O error */ - Eof, /**< End of file */ - NotReady, /**< Non blocking I/O, not ready */ - Readonly, /**< Tried to write a read-only buffer */ - Writeonly, /**< Tried to read a write-only buffer */ + Ready, /**< Everything is ready (no errors and not EOF). */ + Error, /**< Read or write I/O error */ + Eof, /**< End of file */ + NotReady, /**< Non blocking I/O, not ready */ + Readonly, /**< Tried to write a read-only buffer */ + /**< Tried to read a write-only buffer */ Writeonly, /**< Tried to read a write-only buffer */ } /** @@ -80,9 +80,9 @@ extension SDL */ [AllowDuplicates] public enum IOWhence : c_int { - SeekSet, /**< Seek from the beginning of data */ - SeekCur, /**< Seek relative to current read point */ - SeekEnd, /**< Seek relative to the end of data */ + SeekSet, /**< Seek from the beginning of data */ + SeekCur, /**< Seek relative to current read point */ + /**< Seek relative to the end of data */ SeekEnd, /**< Seek relative to the end of data */ } /** diff --git a/src/SDL_joystick.bf b/src/SDL_joystick.bf index 0d325b6..335a671 100644 --- a/src/SDL_joystick.bf +++ b/src/SDL_joystick.bf @@ -133,17 +133,17 @@ public typealias JoystickID = Uint32; */ [AllowDuplicates] public enum JoystickType : c_int { - Unknown, - Gamepad, - Wheel, - ArcadeStick, - FlightStick, - DancePad, - Guitar, - DrumKit, - ArcadePad, - Throttle, - Count, + Unknown, + Gamepad, + Wheel, + ArcadeStick, + FlightStick, + DancePad, + Guitar, + DrumKit, + ArcadePad, + Throttle, + Count, } /** @@ -156,10 +156,10 @@ public typealias JoystickID = Uint32; */ [AllowDuplicates] public enum JoystickConnectionState : c_int { - Invalid = -1, - Unknown, - Wired, - Wireless, + Invalid = -1, + Unknown, + Wired, + Wireless, } /** diff --git a/src/SDL_keyboard.bf b/src/SDL_keyboard.bf index e16c3c8..b6b3fd1 100644 --- a/src/SDL_keyboard.bf +++ b/src/SDL_keyboard.bf @@ -400,15 +400,15 @@ public typealias KeyboardID = Uint32; */ [AllowDuplicates] public enum TextInputType : c_int { - Text, /**< The input is text */ - TextName, /**< The input is a person's name */ - TextEmail, /**< The input is an e-mail address */ - TextUsername, /**< The input is a username */ - TextPasswordHidden, /**< The input is a secure password that is hidden */ - TextPasswordVisible, /**< The input is a secure password that is visible */ - Number, /**< The input is a number */ - NumberPasswordHidden, /**< The input is a secure PIN that is hidden */ - NumberPasswordVisible, /**< The input is a secure PIN that is visible */ + Text, /**< The input is text */ + TextName, /**< The input is a person's name */ + TextEmail, /**< The input is an e-mail address */ + TextUsername, /**< The input is a username */ + TextPasswordHidden, /**< The input is a secure password that is hidden */ + TextPasswordVisible, /**< The input is a secure password that is visible */ + Number, /**< The input is a number */ + NumberPasswordHidden, /**< The input is a secure PIN that is hidden */ + /**< The input is a secure PIN that is visible */ NumberPasswordVisible, /**< The input is a secure PIN that is visible */ } /** @@ -424,10 +424,10 @@ public typealias KeyboardID = Uint32; */ [AllowDuplicates] public enum Capitalization : c_int { - eNone, /**< No auto-capitalization will be done */ - eSentences, /**< The first letter of sentences will be capitalized */ - eWords, /**< The first letter of words will be capitalized */ - eLetters, /**< All letters will be capitalized */ + eNone, /**< No auto-capitalization will be done */ + eSentences, /**< The first letter of sentences will be capitalized */ + eWords, /**< The first letter of words will be capitalized */ + /**< All letters will be capitalized */ eLetters, /**< All letters will be capitalized */ } /** diff --git a/src/SDL_log.bf b/src/SDL_log.bf index f0f015d..6707b42 100644 --- a/src/SDL_log.bf +++ b/src/SDL_log.bf @@ -99,27 +99,27 @@ extension SDL */ [AllowDuplicates] public enum LogCategory : c_int { - Application, - Error, - Assert, - System, - Audio, - Video, - Render, - Input, - Test, - Gpu, + Application, + Error, + Assert, + System, + Audio, + Video, + Render, + Input, + Test, + Gpu, /* Reserved for future SDL library use */ - Reserved2, - Reserved3, - Reserved4, - Reserved5, - Reserved6, - Reserved7, - Reserved8, - Reserved9, - Reserved10, + Reserved2, + Reserved3, + Reserved4, + Reserved5, + Reserved6, + Reserved7, + Reserved8, + Reserved9, + Reserved10, /* Beyond this point is reserved for application use, e.g. enum { @@ -129,7 +129,7 @@ extension SDL ... }; */ - Custom, + Custom, } /** @@ -139,15 +139,15 @@ extension SDL */ [AllowDuplicates] public enum LogPriority : c_int { - Invalid, - Trace, - Verbose, - Debug, - Info, - Warn, - Error, - Critical, - Count, + Invalid, + Trace, + Verbose, + Debug, + Info, + Warn, + Error, + Critical, + Count, } diff --git a/src/SDL_messagebox.bf b/src/SDL_messagebox.bf index 43a7ca7..98f9763 100644 --- a/src/SDL_messagebox.bf +++ b/src/SDL_messagebox.bf @@ -114,12 +114,12 @@ public const let MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT = 0x00000002u;/**< Marks th */ [AllowDuplicates] public enum MessageBoxColorType : c_int { - Background, - ext, - ButtonBorder, - ButtonBackground, - ButtonSelected, - Count, /**< Size of the colors array of SDL_MessageBoxColorScheme. */ + Background, + ext, + ButtonBorder, + ButtonBackground, + ButtonSelected, + /**< Size of the colors array of SDL_MessageBoxColorScheme. */ Count, /**< Size of the colors array of SDL_MessageBoxColorScheme. */ } /** diff --git a/src/SDL_mouse.bf b/src/SDL_mouse.bf index 58ec8d8..80e67d9 100644 --- a/src/SDL_mouse.bf +++ b/src/SDL_mouse.bf @@ -106,27 +106,27 @@ public typealias MouseID = Uint32; */ [AllowDuplicates] public enum SystemCursor : c_int { - Default, /**< Default cursor. Usually an arrow. */ - Text, /**< Text selection. Usually an I-beam. */ - Wait, /**< Wait. Usually an hourglass or watch or spinning ball. */ - Crosshair, /**< Crosshair. */ - Progress, /**< Program is busy but still interactive. Usually it's WAIT with an arrow. */ - NwseResize, /**< Double arrow pointing northwest and southeast. */ - NeswResize, /**< Double arrow pointing northeast and southwest. */ - EwResize, /**< Double arrow pointing west and east. */ - NsResize, /**< Double arrow pointing north and south. */ - Move, /**< Four pointed arrow pointing north, south, east, and west. */ - NotAllowed, /**< Not permitted. Usually a slashed circle or crossbones. */ - Pointer, /**< Pointer that indicates a link. Usually a pointing hand. */ - NwResize, /**< Window resize top-left. This may be a single arrow or a double arrow like NWSE_RESIZE. */ - NResize, /**< Window resize top. May be NS_RESIZE. */ - NeResize, /**< Window resize top-right. May be NESW_RESIZE. */ - EResize, /**< Window resize right. May be EW_RESIZE. */ - SeResize, /**< Window resize bottom-right. May be NWSE_RESIZE. */ - SResize, /**< Window resize bottom. May be NS_RESIZE. */ - SwResize, /**< Window resize bottom-left. May be NESW_RESIZE. */ - WResize, /**< Window resize left. May be EW_RESIZE. */ - Count, + Default, /**< Default cursor. Usually an arrow. */ + Text, /**< Text selection. Usually an I-beam. */ + Wait, /**< Wait. Usually an hourglass or watch or spinning ball. */ + Crosshair, /**< Crosshair. */ + Progress, /**< Program is busy but still interactive. Usually it's WAIT with an arrow. */ + NwseResize, /**< Double arrow pointing northwest and southeast. */ + NeswResize, /**< Double arrow pointing northeast and southwest. */ + EwResize, /**< Double arrow pointing west and east. */ + NsResize, /**< Double arrow pointing north and south. */ + Move, /**< Four pointed arrow pointing north, south, east, and west. */ + NotAllowed, /**< Not permitted. Usually a slashed circle or crossbones. */ + Pointer, /**< Pointer that indicates a link. Usually a pointing hand. */ + NwResize, /**< Window resize top-left. This may be a single arrow or a double arrow like NWSE_RESIZE. */ + NResize, /**< Window resize top. May be NS_RESIZE. */ + NeResize, /**< Window resize top-right. May be NESW_RESIZE. */ + EResize, /**< Window resize right. May be EW_RESIZE. */ + SeResize, /**< Window resize bottom-right. May be NWSE_RESIZE. */ + SResize, /**< Window resize bottom. May be NS_RESIZE. */ + SwResize, /**< Window resize bottom-left. May be NESW_RESIZE. */ + WResize, /**< Window resize left. May be EW_RESIZE. */ + Count, } /** @@ -136,8 +136,8 @@ public typealias MouseID = Uint32; */ [AllowDuplicates] public enum MouseWheelDirection : c_int { - Normal, /**< The scroll direction is normal */ - Flipped, /**< The scroll direction is flipped / natural */ + Normal, /**< The scroll direction is normal */ + /**< The scroll direction is flipped / natural */ Flipped, /**< The scroll direction is flipped / natural */ } /** @@ -166,52 +166,22 @@ public typealias MouseID = Uint32; * \sa SDL_GetGlobalMouseState * \sa SDL_GetRelativeMouseState */ -[AllowDuplicates] public enum MouseButtonFlags : Uint32 +public enum MouseButtonFlags : Uint32 { - Left = 1, - Middle = 2, - Right = 3, - X1 = 4, - X2 = 5, - Lmask = BUTTON_MASK(Left), - Mmask = BUTTON_MASK(Middle), - Rmask = BUTTON_MASK(Right), - X1mask = BUTTON_MASK(X1), - X2mask = BUTTON_MASK(X2), - -/** - * A callback used to transform mouse motion delta from raw values. - * - * This is called during SDL's handling of platform mouse events to scale the - * values of the resulting motion delta. - * - * \param userdata what was passed as `userdata` to - * SDL_SetRelativeMouseTransform(). - * \param timestamp the associated time at which this mouse motion event was - * received. - * \param window the associated window to which this mouse motion event was - * addressed. - * \param mouseID the associated mouse from which this mouse motion event was - * emitted. - * \param x pointer to a variable that will be treated as the resulting x-axis - * motion. - * \param y pointer to a variable that will be treated as the resulting y-axis - * motion. - * - * \threadsafety This callback is called by SDL's internal mouse input - * processing procedure, which may be a thread separate from the - * main event loop that is run at realtime priority. Stalling - * this thread with too much work in the callback can therefore - * potentially freeze the entire system. Care should be taken - * with proper synchronization practices when adding other side - * effects beyond mutation of the x and y values. - * - * \since This datatype is available since SDL 3.4.0. - * - * \sa SDL_SetRelativeMouseTransform - */ + Left = 1 << (1-1), + Middle = 1 << (2-1), + Right = 1 << (3-1), + X1 = 1 << (4-1), + X2 = 1 << (5-1), } + + + + + + + /** * A callback used to transform mouse motion delta from raw values. * diff --git a/src/SDL_mutex.bf b/src/SDL_mutex.bf index f5a454f..6f41ec7 100644 --- a/src/SDL_mutex.bf +++ b/src/SDL_mutex.bf @@ -983,10 +983,10 @@ extension SDL */ [AllowDuplicates] public enum InitStatus : c_int { - Uninitialized, - Initializing, - Initialized, - Uninitializing, + Uninitialized, + Initializing, + Initialized, + Uninitializing, } /** diff --git a/src/SDL_openxr.bf b/src/SDL_openxr.bf index a9b2e03..055c0d7 100644 --- a/src/SDL_openxr.bf +++ b/src/SDL_openxr.bf @@ -63,8 +63,8 @@ public const let XR_NULL_HANDLE = 0; /* XR_DEFINE_HANDLE */ [AllowDuplicates] public enum XrStructureType : c_int { - XR_TYPE_SESSION_CREATE_INFO = 8, - XR_TYPE_SWAPCHAIN_CREATE_INFO = 9, + XR_TYPE_SESSION_CREATE_INFO = 8, + XR_TYPE_SWAPCHAIN_CREATE_INFO = 9, } public typealias XrInstance = Uint64; @@ -82,8 +82,8 @@ public typealias XrSwapchain = Uint64; } [AllowDuplicates] public enum XrResult : c_int { - XR_ERROR_FUNCTION_UNSUPPORTED = -7, - XR_ERROR_HANDLE_INVALID = -12, + XR_ERROR_FUNCTION_UNSUPPORTED = -7, + XR_ERROR_HANDLE_INVALID = -12, } public typealias PFN_xrGetInstanceProcAddr = SDL.FunctionPointer; diff --git a/src/SDL_pen.bf b/src/SDL_pen.bf index 980584a..d13bfec 100644 --- a/src/SDL_pen.bf +++ b/src/SDL_pen.bf @@ -150,14 +150,14 @@ public enum PenInputFlags : Uint32 */ [AllowDuplicates] public enum PenAxis : c_int { - Pressure, /**< Pen pressure. Unidirectional: 0 to 1.0 */ - Xtilt, /**< Pen horizontal tilt angle. Bidirectional: -90.0 to 90.0 (left-to-right). */ - Ytilt, /**< Pen vertical tilt angle. Bidirectional: -90.0 to 90.0 (top-to-down). */ - Distance, /**< Pen distance to drawing surface. Unidirectional: 0.0 to 1.0 */ - Rotation, /**< Pen barrel rotation. Bidirectional: -180 to 179.9 (clockwise, 0 is facing up, -180.0 is facing down). */ - Slider, /**< Pen finger wheel or slider (e.g., Airbrush Pen). Unidirectional: 0 to 1.0 */ - TangentialPressure, /**< Pressure from squeezing the pen ("barrel pressure"). */ - Count, /**< Total known pen axis types in this version of SDL. This number may grow in future releases! */ + Pressure, /**< Pen pressure. Unidirectional: 0 to 1.0 */ + Xtilt, /**< Pen horizontal tilt angle. Bidirectional: -90.0 to 90.0 (left-to-right). */ + Ytilt, /**< Pen vertical tilt angle. Bidirectional: -90.0 to 90.0 (top-to-down). */ + Distance, /**< Pen distance to drawing surface. Unidirectional: 0.0 to 1.0 */ + Rotation, /**< Pen barrel rotation. Bidirectional: -180 to 179.9 (clockwise, 0 is facing up, -180.0 is facing down). */ + Slider, /**< Pen finger wheel or slider (e.g., Airbrush Pen). Unidirectional: 0 to 1.0 */ + TangentialPressure, /**< Pressure from squeezing the pen ("barrel pressure"). */ + /**< Total known pen axis types in this version of SDL. This number may grow in future releases! */ Count, /**< Total known pen axis types in this version of SDL. This number may grow in future releases! */ } /** @@ -177,10 +177,10 @@ public enum PenInputFlags : Uint32 */ [AllowDuplicates] public enum PenDeviceType : c_int { - Invalid = -1, /**< Not a valid pen device. */ - Unknown, /**< Don't know specifics of this pen. */ - Direct, /**< Pen touches display. */ - Indirect, /**< Pen touches something that isn't the display. */ + Invalid = -1, /**< Not a valid pen device. */ + Unknown, /**< Don't know specifics of this pen. */ + Direct, /**< Pen touches display. */ + /**< Pen touches something that isn't the display. */ Indirect, /**< Pen touches something that isn't the display. */ } /** diff --git a/src/SDL_pixels.bf b/src/SDL_pixels.bf index 6106212..4e14d06 100644 --- a/src/SDL_pixels.bf +++ b/src/SDL_pixels.bf @@ -143,20 +143,20 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; */ [AllowDuplicates] public enum PixelType : c_int { - Unknown, - Index1, - Index4, - Index8, - Packed8, - Packed16, - Packed32, - Arrayu8, - Arrayu16, - Arrayu32, - Arrayf16, - Arrayf32, + Unknown, + Index1, + Index4, + Index8, + Packed8, + Packed16, + Packed32, + Arrayu8, + Arrayu16, + Arrayu32, + Arrayf16, + Arrayf32, /* appended at the end for compatibility with sdl2-compat: */ - Index2, + Index2, } /** @@ -166,9 +166,9 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; */ [AllowDuplicates] public enum BitmapOrder : c_int { - None, - _4321, - _1234, + None, + _4321, + _1234, } /** @@ -178,15 +178,15 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; */ [AllowDuplicates] public enum PackedOrder : c_int { - None, - Xrgb, - Rgbx, - Argb, - Rgba, - Xbgr, - Bgrx, - Abgr, - Bgra, + None, + Xrgb, + Rgbx, + Argb, + Rgba, + Xbgr, + Bgrx, + Abgr, + Bgra, } /** @@ -196,13 +196,13 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; */ [AllowDuplicates] public enum ArrayOrder : c_int { - None, - Rgb, - Rgba, - Argb, - Bgr, - Bgra, - Abgr, + None, + Rgb, + Rgba, + Argb, + Bgr, + Bgra, + Abgr, } /** @@ -212,15 +212,15 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; */ [AllowDuplicates] public enum PackedLayout : c_int { - None, - _332, - _4444, - _1555, - _5551, - _565, - _8888, - _2101010, - _1010102, + None, + _332, + _4444, + _1555, + _5551, + _565, + _8888, + _2101010, + _1010102, } /** @@ -557,148 +557,148 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; */ [AllowDuplicates] public enum PixelFormat : c_int { - Unknown = 0, - Index1lsb = 0x11100100u, + Unknown = 0, + Index1lsb = 0x11100100u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX1, SDL_BITMAPORDER_4321, 0, 1, 0), */ - Index1msb = 0x11200100u, + Index1msb = 0x11200100u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX1, SDL_BITMAPORDER_1234, 0, 1, 0), */ - Index2lsb = 0x1c100200u, + Index2lsb = 0x1c100200u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX2, SDL_BITMAPORDER_4321, 0, 2, 0), */ - Index2msb = 0x1c200200u, + Index2msb = 0x1c200200u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX2, SDL_BITMAPORDER_1234, 0, 2, 0), */ - Index4lsb = 0x12100400u, + Index4lsb = 0x12100400u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX4, SDL_BITMAPORDER_4321, 0, 4, 0), */ - Index4msb = 0x12200400u, + Index4msb = 0x12200400u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX4, SDL_BITMAPORDER_1234, 0, 4, 0), */ - Index8 = 0x13000801u, + Index8 = 0x13000801u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX8, 0, 0, 8, 1), */ - Rgb332 = 0x14110801u, + Rgb332 = 0x14110801u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED8, SDL_PACKEDORDER_XRGB, SDL_PACKEDLAYOUT_332, 8, 1), */ - Xrgb4444 = 0x15120c02u, + Xrgb4444 = 0x15120c02u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XRGB, SDL_PACKEDLAYOUT_4444, 12, 2), */ - Xbgr4444 = 0x15520c02u, + Xbgr4444 = 0x15520c02u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XBGR, SDL_PACKEDLAYOUT_4444, 12, 2), */ - Xrgb1555 = 0x15130f02u, + Xrgb1555 = 0x15130f02u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XRGB, SDL_PACKEDLAYOUT_1555, 15, 2), */ - Xbgr1555 = 0x15530f02u, + Xbgr1555 = 0x15530f02u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XBGR, SDL_PACKEDLAYOUT_1555, 15, 2), */ - Argb4444 = 0x15321002u, + Argb4444 = 0x15321002u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_ARGB, SDL_PACKEDLAYOUT_4444, 16, 2), */ - Rgba4444 = 0x15421002u, + Rgba4444 = 0x15421002u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_RGBA, SDL_PACKEDLAYOUT_4444, 16, 2), */ - Abgr4444 = 0x15721002u, + Abgr4444 = 0x15721002u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_ABGR, SDL_PACKEDLAYOUT_4444, 16, 2), */ - Bgra4444 = 0x15821002u, + Bgra4444 = 0x15821002u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_BGRA, SDL_PACKEDLAYOUT_4444, 16, 2), */ - Argb1555 = 0x15331002u, + Argb1555 = 0x15331002u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_ARGB, SDL_PACKEDLAYOUT_1555, 16, 2), */ - Rgba5551 = 0x15441002u, + Rgba5551 = 0x15441002u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_RGBA, SDL_PACKEDLAYOUT_5551, 16, 2), */ - Abgr1555 = 0x15731002u, + Abgr1555 = 0x15731002u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_ABGR, SDL_PACKEDLAYOUT_1555, 16, 2), */ - Bgra5551 = 0x15841002u, + Bgra5551 = 0x15841002u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_BGRA, SDL_PACKEDLAYOUT_5551, 16, 2), */ - Rgb565 = 0x15151002u, + Rgb565 = 0x15151002u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XRGB, SDL_PACKEDLAYOUT_565, 16, 2), */ - Bgr565 = 0x15551002u, + Bgr565 = 0x15551002u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XBGR, SDL_PACKEDLAYOUT_565, 16, 2), */ - Rgb24 = 0x17101803u, + Rgb24 = 0x17101803u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYU8, SDL_ARRAYORDER_RGB, 0, 24, 3), */ - Bgr24 = 0x17401803u, + Bgr24 = 0x17401803u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYU8, SDL_ARRAYORDER_BGR, 0, 24, 3), */ - Xrgb8888 = 0x16161804u, + Xrgb8888 = 0x16161804u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_XRGB, SDL_PACKEDLAYOUT_8888, 24, 4), */ - Rgbx8888 = 0x16261804u, + Rgbx8888 = 0x16261804u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_RGBX, SDL_PACKEDLAYOUT_8888, 24, 4), */ - Xbgr8888 = 0x16561804u, + Xbgr8888 = 0x16561804u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_XBGR, SDL_PACKEDLAYOUT_8888, 24, 4), */ - Bgrx8888 = 0x16661804u, + Bgrx8888 = 0x16661804u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_BGRX, SDL_PACKEDLAYOUT_8888, 24, 4), */ - Argb8888 = 0x16362004u, + Argb8888 = 0x16362004u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_ARGB, SDL_PACKEDLAYOUT_8888, 32, 4), */ - Rgba8888 = 0x16462004u, + Rgba8888 = 0x16462004u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_RGBA, SDL_PACKEDLAYOUT_8888, 32, 4), */ - Abgr8888 = 0x16762004u, + Abgr8888 = 0x16762004u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_ABGR, SDL_PACKEDLAYOUT_8888, 32, 4), */ - Bgra8888 = 0x16862004u, + Bgra8888 = 0x16862004u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_BGRA, SDL_PACKEDLAYOUT_8888, 32, 4), */ - Xrgb2101010 = 0x16172004u, + Xrgb2101010 = 0x16172004u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_XRGB, SDL_PACKEDLAYOUT_2101010, 32, 4), */ - Xbgr2101010 = 0x16572004u, + Xbgr2101010 = 0x16572004u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_XBGR, SDL_PACKEDLAYOUT_2101010, 32, 4), */ - Argb2101010 = 0x16372004u, + Argb2101010 = 0x16372004u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_ARGB, SDL_PACKEDLAYOUT_2101010, 32, 4), */ - Abgr2101010 = 0x16772004u, + Abgr2101010 = 0x16772004u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_ABGR, SDL_PACKEDLAYOUT_2101010, 32, 4), */ - Rgb48 = 0x18103006u, + Rgb48 = 0x18103006u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYU16, SDL_ARRAYORDER_RGB, 0, 48, 6), */ - Bgr48 = 0x18403006u, + Bgr48 = 0x18403006u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYU16, SDL_ARRAYORDER_BGR, 0, 48, 6), */ - Rgba64 = 0x18204008u, + Rgba64 = 0x18204008u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYU16, SDL_ARRAYORDER_RGBA, 0, 64, 8), */ - Argb64 = 0x18304008u, + Argb64 = 0x18304008u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYU16, SDL_ARRAYORDER_ARGB, 0, 64, 8), */ - Bgra64 = 0x18504008u, + Bgra64 = 0x18504008u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYU16, SDL_ARRAYORDER_BGRA, 0, 64, 8), */ - Abgr64 = 0x18604008u, + Abgr64 = 0x18604008u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYU16, SDL_ARRAYORDER_ABGR, 0, 64, 8), */ - Rgb48Float = 0x1a103006u, + Rgb48Float = 0x1a103006u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYF16, SDL_ARRAYORDER_RGB, 0, 48, 6), */ - Bgr48Float = 0x1a403006u, + Bgr48Float = 0x1a403006u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYF16, SDL_ARRAYORDER_BGR, 0, 48, 6), */ - Rgba64Float = 0x1a204008u, + Rgba64Float = 0x1a204008u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYF16, SDL_ARRAYORDER_RGBA, 0, 64, 8), */ - Argb64Float = 0x1a304008u, + Argb64Float = 0x1a304008u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYF16, SDL_ARRAYORDER_ARGB, 0, 64, 8), */ - Bgra64Float = 0x1a504008u, + Bgra64Float = 0x1a504008u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYF16, SDL_ARRAYORDER_BGRA, 0, 64, 8), */ - Abgr64Float = 0x1a604008u, + Abgr64Float = 0x1a604008u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYF16, SDL_ARRAYORDER_ABGR, 0, 64, 8), */ - Rgb96Float = 0x1b10600cu, + Rgb96Float = 0x1b10600cu, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYF32, SDL_ARRAYORDER_RGB, 0, 96, 12), */ - Bgr96Float = 0x1b40600cu, + Bgr96Float = 0x1b40600cu, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYF32, SDL_ARRAYORDER_BGR, 0, 96, 12), */ - Rgba128Float = 0x1b208010u, + Rgba128Float = 0x1b208010u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYF32, SDL_ARRAYORDER_RGBA, 0, 128, 16), */ - Argb128Float = 0x1b308010u, + Argb128Float = 0x1b308010u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYF32, SDL_ARRAYORDER_ARGB, 0, 128, 16), */ - Bgra128Float = 0x1b508010u, + Bgra128Float = 0x1b508010u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYF32, SDL_ARRAYORDER_BGRA, 0, 128, 16), */ - Abgr128Float = 0x1b608010u, + Abgr128Float = 0x1b608010u, /* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYF32, SDL_ARRAYORDER_ABGR, 0, 128, 16), */ - Yv12 = 0x32315659u, /**< Planar mode: Y + V + U (3 planes) */ + Yv12 = 0x32315659u, /**< Planar mode: Y + V + U (3 planes) */ /* SDL_DEFINE_PIXELFOURCC('Y', 'V', '1', '2'), */ - Iyuv = 0x56555949u, /**< Planar mode: Y + U + V (3 planes) */ + Iyuv = 0x56555949u, /**< Planar mode: Y + U + V (3 planes) */ /* SDL_DEFINE_PIXELFOURCC('I', 'Y', 'U', 'V'), */ - Yuy2 = 0x32595559u, /**< Packed mode: Y0+U0+Y1+V0 (1 plane) */ + Yuy2 = 0x32595559u, /**< Packed mode: Y0+U0+Y1+V0 (1 plane) */ /* SDL_DEFINE_PIXELFOURCC('Y', 'U', 'Y', '2'), */ - Uyvy = 0x59565955u, /**< Packed mode: U0+Y0+V0+Y1 (1 plane) */ + Uyvy = 0x59565955u, /**< Packed mode: U0+Y0+V0+Y1 (1 plane) */ /* SDL_DEFINE_PIXELFOURCC('U', 'Y', 'V', 'Y'), */ - Yvyu = 0x55595659u, /**< Packed mode: Y0+V0+Y1+U0 (1 plane) */ + Yvyu = 0x55595659u, /**< Packed mode: Y0+V0+Y1+U0 (1 plane) */ /* SDL_DEFINE_PIXELFOURCC('Y', 'V', 'Y', 'U'), */ - Nv12 = 0x3231564eu, /**< Planar mode: Y + U/V interleaved (2 planes) */ + Nv12 = 0x3231564eu, /**< Planar mode: Y + U/V interleaved (2 planes) */ /* SDL_DEFINE_PIXELFOURCC('N', 'V', '1', '2'), */ - Nv21 = 0x3132564eu, /**< Planar mode: Y + V/U interleaved (2 planes) */ + Nv21 = 0x3132564eu, /**< Planar mode: Y + V/U interleaved (2 planes) */ /* SDL_DEFINE_PIXELFOURCC('N', 'V', '2', '1'), */ - P010 = 0x30313050u, /**< Planar mode: Y + U/V interleaved (2 planes) */ + P010 = 0x30313050u, /**< Planar mode: Y + U/V interleaved (2 planes) */ /* SDL_DEFINE_PIXELFOURCC('P', '0', '1', '0'), */ - ExternalOes = 0x2053454fu, /**< Android video texture format */ + ExternalOes = 0x2053454fu, /**< Android video texture format */ /* SDL_DEFINE_PIXELFOURCC('O', 'E', 'S', ' ') */ - Mjpg = 0x47504a4du, /**< Motion JPEG */ + Mjpg = 0x47504a4du, /**< Motion JPEG */ /* SDL_DEFINE_PIXELFOURCC('M', 'J', 'P', 'G') */ /* Aliases for RGBA byte arrays of color data, for the current platform */ - Rgba32 = Rgba8888, - Argb32 = Argb8888, - Bgra32 = Bgra8888, - Abgr32 = Abgr8888, - Rgbx32 = Rgbx8888, - Xrgb32 = Xrgb8888, - Bgrx32 = Bgrx8888, - Xbgr32 = Xbgr8888, + Rgba32 = Rgba8888, + Argb32 = Argb8888, + Bgra32 = Bgra8888, + Abgr32 = Abgr8888, + Rgbx32 = Rgbx8888, + Xrgb32 = Xrgb8888, + Bgrx32 = Bgrx8888, + Xbgr32 = Xbgr8888, @@ -718,9 +718,9 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; */ [AllowDuplicates] public enum ColorType : c_int { - Unknown = 0, - Rgb = 1, - Ycbcr = 2, + Unknown = 0, + Rgb = 1, + Ycbcr = 2, } /** @@ -731,9 +731,9 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; */ [AllowDuplicates] public enum ColorRange : c_int { - Unknown = 0, - Limited = 1, /**< Narrow range, e.g. 16-235 for 8-bit RGB and luma, and 16-240 for 8-bit chroma */ - Full = 2, /**< Full range, e.g. 0-255 for 8-bit RGB and luma, and 1-255 for 8-bit chroma */ + Unknown = 0, + Limited = 1, /**< Narrow range, e.g. 16-235 for 8-bit RGB and luma, and 16-240 for 8-bit chroma */ + /**< Full range, e.g. 0-255 for 8-bit RGB and luma, and 1-255 for 8-bit chroma */ Full = 2, /**< Full range, e.g. 0-255 for 8-bit RGB and luma, and 1-255 for 8-bit chroma */ } /** @@ -744,20 +744,20 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; */ [AllowDuplicates] public enum ColorPrimaries : c_int { - Unknown = 0, - Bt709 = 1, /**< ITU-R BT.709-6 */ - Unspecified = 2, - Bt470m = 4, /**< ITU-R BT.470-6 System M */ - Bt470bg = 5, /**< ITU-R BT.470-6 System B, G / ITU-R BT.601-7 625 */ - Bt601 = 6, /**< ITU-R BT.601-7 525, SMPTE 170M */ - Smpte240 = 7, /**< SMPTE 240M, functionally the same as SDL_COLOR_PRIMARIES_BT601 */ - GenericFilm = 8, /**< Generic film (color filters using Illuminant C) */ - Bt2020 = 9, /**< ITU-R BT.2020-2 / ITU-R BT.2100-0 */ - Xyz = 10, /**< SMPTE ST 428-1 */ - Smpte431 = 11, /**< SMPTE RP 431-2 */ - Smpte432 = 12, /**< SMPTE EG 432-1 / DCI P3 */ - Ebu3213 = 22, /**< EBU Tech. 3213-E */ - Custom = 31, + Unknown = 0, + Bt709 = 1, /**< ITU-R BT.709-6 */ + Unspecified = 2, + Bt470m = 4, /**< ITU-R BT.470-6 System M */ + Bt470bg = 5, /**< ITU-R BT.470-6 System B, G / ITU-R BT.601-7 625 */ + Bt601 = 6, /**< ITU-R BT.601-7 525, SMPTE 170M */ + Smpte240 = 7, /**< SMPTE 240M, functionally the same as SDL_COLOR_PRIMARIES_BT601 */ + GenericFilm = 8, /**< Generic film (color filters using Illuminant C) */ + Bt2020 = 9, /**< ITU-R BT.2020-2 / ITU-R BT.2100-0 */ + Xyz = 10, /**< SMPTE ST 428-1 */ + Smpte431 = 11, /**< SMPTE RP 431-2 */ + Smpte432 = 12, /**< SMPTE EG 432-1 / DCI P3 */ + Ebu3213 = 22, /**< EBU Tech. 3213-E */ + Custom = 31, } /** @@ -769,25 +769,25 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; */ [AllowDuplicates] public enum TransferCharacteristics : c_int { - Unknown = 0, - Bt709 = 1, /**< Rec. ITU-R BT.709-6 / ITU-R BT1361 */ - Unspecified = 2, - Gamma22 = 4, /**< ITU-R BT.470-6 System M / ITU-R BT1700 625 PAL & SECAM */ - Gamma28 = 5, /**< ITU-R BT.470-6 System B, G */ - Bt601 = 6, /**< SMPTE ST 170M / ITU-R BT.601-7 525 or 625 */ - Smpte240 = 7, /**< SMPTE ST 240M */ - Linear = 8, - Log100 = 9, - Log100Sqrt10 = 10, - Iec61966 = 11, /**< IEC 61966-2-4 */ - Bt1361 = 12, /**< ITU-R BT1361 Extended Colour Gamut */ - Srgb = 13, /**< IEC 61966-2-1 (sRGB or sYCC) */ - Bt202010bit = 14, /**< ITU-R BT2020 for 10-bit system */ - Bt202012bit = 15, /**< ITU-R BT2020 for 12-bit system */ - Pq = 16, /**< SMPTE ST 2084 for 10-, 12-, 14- and 16-bit systems */ - Smpte428 = 17, /**< SMPTE ST 428-1 */ - Hlg = 18, /**< ARIB STD-B67, known as "hybrid log-gamma" (HLG) */ - Custom = 31, + Unknown = 0, + Bt709 = 1, /**< Rec. ITU-R BT.709-6 / ITU-R BT1361 */ + Unspecified = 2, + Gamma22 = 4, /**< ITU-R BT.470-6 System M / ITU-R BT1700 625 PAL & SECAM */ + Gamma28 = 5, /**< ITU-R BT.470-6 System B, G */ + Bt601 = 6, /**< SMPTE ST 170M / ITU-R BT.601-7 525 or 625 */ + Smpte240 = 7, /**< SMPTE ST 240M */ + Linear = 8, + Log100 = 9, + Log100Sqrt10 = 10, + Iec61966 = 11, /**< IEC 61966-2-4 */ + Bt1361 = 12, /**< ITU-R BT1361 Extended Colour Gamut */ + Srgb = 13, /**< IEC 61966-2-1 (sRGB or sYCC) */ + Bt202010bit = 14, /**< ITU-R BT2020 for 10-bit system */ + Bt202012bit = 15, /**< ITU-R BT2020 for 12-bit system */ + Pq = 16, /**< SMPTE ST 2084 for 10-, 12-, 14- and 16-bit systems */ + Smpte428 = 17, /**< SMPTE ST 428-1 */ + Hlg = 18, /**< ARIB STD-B67, known as "hybrid log-gamma" (HLG) */ + Custom = 31, } /** @@ -799,21 +799,21 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; */ [AllowDuplicates] public enum MatrixCoefficients : c_int { - Identity = 0, - Bt709 = 1, /**< ITU-R BT.709-6 */ - Unspecified = 2, - Fcc = 4, /**< US FCC Title 47 */ - Bt470bg = 5, /**< ITU-R BT.470-6 System B, G / ITU-R BT.601-7 625, functionally the same as SDL_MATRIX_COEFFICIENTS_BT601 */ - Bt601 = 6, /**< ITU-R BT.601-7 525 */ - Smpte240 = 7, /**< SMPTE 240M */ - Ycgco = 8, - Bt2020Ncl = 9, /**< ITU-R BT.2020-2 non-constant luminance */ - Bt2020Cl = 10, /**< ITU-R BT.2020-2 constant luminance */ - Smpte2085 = 11, /**< SMPTE ST 2085 */ - ChromaDerivedNcl = 12, - ChromaDerivedCl = 13, - Ictcp = 14, /**< ITU-R BT.2100-0 ICTCP */ - Custom = 31, + Identity = 0, + Bt709 = 1, /**< ITU-R BT.709-6 */ + Unspecified = 2, + Fcc = 4, /**< US FCC Title 47 */ + Bt470bg = 5, /**< ITU-R BT.470-6 System B, G / ITU-R BT.601-7 625, functionally the same as SDL_MATRIX_COEFFICIENTS_BT601 */ + Bt601 = 6, /**< ITU-R BT.601-7 525 */ + Smpte240 = 7, /**< SMPTE 240M */ + Ycgco = 8, + Bt2020Ncl = 9, /**< ITU-R BT.2020-2 non-constant luminance */ + Bt2020Cl = 10, /**< ITU-R BT.2020-2 constant luminance */ + Smpte2085 = 11, /**< SMPTE ST 2085 */ + ChromaDerivedNcl = 12, + ChromaDerivedCl = 13, + Ictcp = 14, /**< ITU-R BT.2100-0 ICTCP */ + Custom = 31, } /** @@ -823,10 +823,10 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; */ [AllowDuplicates] public enum ChromaLocation : c_int { - None = 0, /**< RGB, no chroma sampling */ - Left = 1, /**< In MPEG-2, MPEG-4, and AVC, Cb and Cr are taken on midpoint of the left-edge of the 2x2 square. In other words, they have the same horizontal location as the top-left pixel, but is shifted one-half pixel down vertically. */ - Center = 2, /**< In JPEG/JFIF, H.261, and MPEG-1, Cb and Cr are taken at the center of the 2x2 square. In other words, they are offset one-half pixel to the right and one-half pixel down compared to the top-left pixel. */ - Topleft = 3, /**< In HEVC for BT.2020 and BT.2100 content (in particular on Blu-rays), Cb and Cr are sampled at the same location as the group's top-left Y pixel ("co-sited", "co-located"). */ + None = 0, /**< RGB, no chroma sampling */ + Left = 1, /**< In MPEG-2, MPEG-4, and AVC, Cb and Cr are taken on midpoint of the left-edge of the 2x2 square. In other words, they have the same horizontal location as the top-left pixel, but is shifted one-half pixel down vertically. */ + Center = 2, /**< In JPEG/JFIF, H.261, and MPEG-1, Cb and Cr are taken at the center of the 2x2 square. In other words, they are offset one-half pixel to the right and one-half pixel down compared to the top-left pixel. */ + /**< In HEVC for BT.2020 and BT.2100 content (in particular on Blu-rays), Cb and Cr are sampled at the same location as the group's top-left Y pixel ("co-sited", "co-located"). */ Topleft = 3, /**< In HEVC for BT.2020 and BT.2100 content (in particular on Blu-rays), Cb and Cr are sampled at the same location as the group's top-left Y pixel ("co-sited", "co-located"). */ } @@ -1020,10 +1020,10 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; */ [AllowDuplicates] public enum Colorspace : c_int { - Unknown = 0, + Unknown = 0, /* sRGB is a gamma corrected colorspace, and the default colorspace for SDL rendering and 8-bit RGB surfaces */ - Srgb = 0x120005a0u, /**< Equivalent to DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 */ + Srgb = 0x120005a0u, /**< Equivalent to DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 */ /* SDL_DEFINE_COLORSPACE(SDL_COLOR_TYPE_RGB, SDL_COLOR_RANGE_FULL, SDL_COLOR_PRIMARIES_BT709, @@ -1032,7 +1032,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; SDL_CHROMA_LOCATION_NONE), */ /* This is a linear colorspace and the default colorspace for floating point surfaces. On Windows this is the scRGB colorspace, and on Apple platforms this is kCGColorSpaceExtendedLinearSRGB for EDR content */ - SrgbLinear = 0x12000500u, /**< Equivalent to DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709 */ + SrgbLinear = 0x12000500u, /**< Equivalent to DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709 */ /* SDL_DEFINE_COLORSPACE(SDL_COLOR_TYPE_RGB, SDL_COLOR_RANGE_FULL, SDL_COLOR_PRIMARIES_BT709, @@ -1041,7 +1041,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; SDL_CHROMA_LOCATION_NONE), */ /* HDR10 is a non-linear HDR colorspace and the default colorspace for 10-bit surfaces */ - Hdr10 = 0x12002600u, /**< Equivalent to DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020 */ + Hdr10 = 0x12002600u, /**< Equivalent to DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020 */ /* SDL_DEFINE_COLORSPACE(SDL_COLOR_TYPE_RGB, SDL_COLOR_RANGE_FULL, SDL_COLOR_PRIMARIES_BT2020, @@ -1049,7 +1049,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; SDL_MATRIX_COEFFICIENTS_IDENTITY, SDL_CHROMA_LOCATION_NONE), */ - Jpeg = 0x220004c6u, /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_FULL_G22_NONE_P709_X601 */ + Jpeg = 0x220004c6u, /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_FULL_G22_NONE_P709_X601 */ /* SDL_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR, SDL_COLOR_RANGE_FULL, SDL_COLOR_PRIMARIES_BT709, @@ -1057,7 +1057,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; SDL_MATRIX_COEFFICIENTS_BT601, SDL_CHROMA_LOCATION_NONE), */ - Bt601Limited = 0x211018c6u, /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601 */ + Bt601Limited = 0x211018c6u, /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601 */ /* SDL_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR, SDL_COLOR_RANGE_LIMITED, SDL_COLOR_PRIMARIES_BT601, @@ -1065,7 +1065,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; SDL_MATRIX_COEFFICIENTS_BT601, SDL_CHROMA_LOCATION_LEFT), */ - Bt601Full = 0x221018c6u, /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601 */ + Bt601Full = 0x221018c6u, /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601 */ /* SDL_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR, SDL_COLOR_RANGE_FULL, SDL_COLOR_PRIMARIES_BT601, @@ -1073,7 +1073,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; SDL_MATRIX_COEFFICIENTS_BT601, SDL_CHROMA_LOCATION_LEFT), */ - Bt709Limited = 0x21100421u, /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709 */ + Bt709Limited = 0x21100421u, /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709 */ /* SDL_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR, SDL_COLOR_RANGE_LIMITED, SDL_COLOR_PRIMARIES_BT709, @@ -1081,7 +1081,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; SDL_MATRIX_COEFFICIENTS_BT709, SDL_CHROMA_LOCATION_LEFT), */ - Bt709Full = 0x22100421u, /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709 */ + Bt709Full = 0x22100421u, /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709 */ /* SDL_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR, SDL_COLOR_RANGE_FULL, SDL_COLOR_PRIMARIES_BT709, @@ -1089,7 +1089,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; SDL_MATRIX_COEFFICIENTS_BT709, SDL_CHROMA_LOCATION_LEFT), */ - Bt2020Limited = 0x21102609u, /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P2020 */ + Bt2020Limited = 0x21102609u, /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P2020 */ /* SDL_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR, SDL_COLOR_RANGE_LIMITED, SDL_COLOR_PRIMARIES_BT2020, @@ -1097,7 +1097,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; SDL_MATRIX_COEFFICIENTS_BT2020_NCL, SDL_CHROMA_LOCATION_LEFT), */ - Bt2020Full = 0x22102609u, /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P2020 */ + Bt2020Full = 0x22102609u, /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P2020 */ /* SDL_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR, SDL_COLOR_RANGE_FULL, SDL_COLOR_PRIMARIES_BT2020, @@ -1105,8 +1105,8 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f; SDL_MATRIX_COEFFICIENTS_BT2020_NCL, SDL_CHROMA_LOCATION_LEFT), */ - RgbDefault = Srgb, /**< The default colorspace for RGB surfaces if no colorspace is specified */ - YuvDefault = Bt601Limited, /**< The default colorspace for YUV surfaces if no colorspace is specified */ + RgbDefault = Srgb, /**< The default colorspace for RGB surfaces if no colorspace is specified */ + /**< The default colorspace for YUV surfaces if no colorspace is specified */ YuvDefault = Bt601Limited, /**< The default colorspace for YUV surfaces if no colorspace is specified */ } /** diff --git a/src/SDL_power.bf b/src/SDL_power.bf index 570a6d3..c3146f9 100644 --- a/src/SDL_power.bf +++ b/src/SDL_power.bf @@ -65,12 +65,12 @@ extension SDL */ [AllowDuplicates] public enum PowerState : c_int { - Error = -1, /**< error determining power status */ - Unknown, /**< cannot determine power status */ - OnBattery, /**< Not plugged in, running on the battery */ - NoBattery, /**< Plugged in, no battery available */ - Charging, /**< Plugged in, charging battery */ - Charged, /**< Plugged in, battery charged */ + Error = -1, /**< error determining power status */ + Unknown, /**< cannot determine power status */ + OnBattery, /**< Not plugged in, running on the battery */ + NoBattery, /**< Plugged in, no battery available */ + Charging, /**< Plugged in, charging battery */ + /**< Plugged in, battery charged */ Charged, /**< Plugged in, battery charged */ } /** diff --git a/src/SDL_process.bf b/src/SDL_process.bf index 8b95caa..bf6bea5 100644 --- a/src/SDL_process.bf +++ b/src/SDL_process.bf @@ -159,10 +159,10 @@ extension SDL */ [AllowDuplicates] public enum ProcessIO : c_int { - StdioInherited, /**< The I/O stream is inherited from the application. */ - StdioNull, /**< The I/O stream is ignored. */ - StdioApp, /**< The I/O stream is connected to a new SDL_IOStream that the application can read or write */ - StdioRedirect, /**< The I/O stream is redirected to an existing SDL_IOStream. */ + StdioInherited, /**< The I/O stream is inherited from the application. */ + StdioNull, /**< The I/O stream is ignored. */ + StdioApp, /**< The I/O stream is connected to a new SDL_IOStream that the application can read or write */ + /**< The I/O stream is redirected to an existing SDL_IOStream. */ StdioRedirect, /**< The I/O stream is redirected to an existing SDL_IOStream. */ } /** diff --git a/src/SDL_properties.bf b/src/SDL_properties.bf index e7cf915..78677fe 100644 --- a/src/SDL_properties.bf +++ b/src/SDL_properties.bf @@ -82,12 +82,12 @@ public typealias PropertiesID = Uint32; */ [AllowDuplicates] public enum PropertyType : c_int { - Invalid, - Pointer, - String, - Number, - Float, - Boolean, + Invalid, + Pointer, + String, + Number, + Float, + Boolean, } /** diff --git a/src/SDL_render.bf b/src/SDL_render.bf index 8e0faf5..32c3944 100644 --- a/src/SDL_render.bf +++ b/src/SDL_render.bf @@ -110,9 +110,9 @@ public const let GPU_RENDERER = "gpu"; */ [AllowDuplicates] public enum TextureAccess : c_int { - Static, /**< Changes rarely, not lockable */ - Streaming, /**< Changes frequently, lockable */ - Target, /**< Texture can be used as a render target */ + Static, /**< Changes rarely, not lockable */ + Streaming, /**< Changes frequently, lockable */ + /**< Texture can be used as a render target */ Target, /**< Texture can be used as a render target */ } /** @@ -128,10 +128,10 @@ public const let GPU_RENDERER = "gpu"; */ [AllowDuplicates] public enum TextureAddressMode : c_int { - Invalid = -1, - Auto, /**< Wrapping is enabled if texture coordinates are outside [0, 1], this is the default */ - Clamp, /**< Texture coordinates are clamped to the [0, 1] range */ - Wrap, /**< The texture is repeated (tiled) */ + Invalid = -1, + Auto, /**< Wrapping is enabled if texture coordinates are outside [0, 1], this is the default */ + Clamp, /**< Texture coordinates are clamped to the [0, 1] range */ + /**< The texture is repeated (tiled) */ Wrap, /**< The texture is repeated (tiled) */ } /** @@ -141,11 +141,11 @@ public const let GPU_RENDERER = "gpu"; */ [AllowDuplicates] public enum RendererLogicalPresentation : c_int { - Disabled, /**< There is no logical size in effect */ - Stretch, /**< The rendered content is stretched to the output resolution */ - Letterbox, /**< The rendered content is fit to the largest dimension and the other dimension is letterboxed with the clear color */ - Overscan, /**< The rendered content is fit to the smallest dimension and the other dimension extends beyond the output bounds */ - IntegerScale, /**< The rendered content is scaled up by integer multiples to fit the output resolution */ + Disabled, /**< There is no logical size in effect */ + Stretch, /**< The rendered content is stretched to the output resolution */ + Letterbox, /**< The rendered content is fit to the largest dimension and the other dimension is letterboxed with the clear color */ + Overscan, /**< The rendered content is fit to the smallest dimension and the other dimension extends beyond the output bounds */ + /**< The rendered content is scaled up by integer multiples to fit the output resolution */ IntegerScale, /**< The rendered content is scaled up by integer multiples to fit the output resolution */ } /** diff --git a/src/SDL_scancode.bf b/src/SDL_scancode.bf index 7b49d40..88332b0 100644 --- a/src/SDL_scancode.bf +++ b/src/SDL_scancode.bf @@ -61,7 +61,7 @@ extension SDL */ [AllowDuplicates] public enum Scancode : c_int { - Unknown = 0, + Unknown = 0, /** * \name Usage page 0x07 @@ -70,55 +70,55 @@ extension SDL */ /* @{ */ - A = 4, - B = 5, - C = 6, - D = 7, - E = 8, - F = 9, - G = 10, - H = 11, - I = 12, - J = 13, - K = 14, - L = 15, - M = 16, - N = 17, - O = 18, - P = 19, - Q = 20, - R = 21, - S = 22, - T = 23, - U = 24, - V = 25, - W = 26, - X = 27, - Y = 28, - Z = 29, + A = 4, + B = 5, + C = 6, + D = 7, + E = 8, + F = 9, + G = 10, + H = 11, + I = 12, + J = 13, + K = 14, + L = 15, + M = 16, + N = 17, + O = 18, + P = 19, + Q = 20, + R = 21, + S = 22, + T = 23, + U = 24, + V = 25, + W = 26, + X = 27, + Y = 28, + Z = 29, - _1 = 30, - _2 = 31, - _3 = 32, - _4 = 33, - _5 = 34, - _6 = 35, - _7 = 36, - _8 = 37, - _9 = 38, - _0 = 39, + _1 = 30, + _2 = 31, + _3 = 32, + _4 = 33, + _5 = 34, + _6 = 35, + _7 = 36, + _8 = 37, + _9 = 38, + _0 = 39, - Return = 40, - Escape = 41, - Backspace = 42, - Tab = 43, - Space = 44, + Return = 40, + Escape = 41, + Backspace = 42, + Tab = 43, + Space = 44, - Minus = 45, - Equals = 46, - Leftbracket = 47, - Rightbracket = 48, - Backslash = 49, /**< Located at the lower left of the return + Minus = 45, + Equals = 46, + Leftbracket = 47, + Rightbracket = 48, + Backslash = 49, /**< Located at the lower left of the return * key on ISO keyboards and at the right end * of the QWERTY row on ANSI keyboards. * Produces REVERSE SOLIDUS (backslash) and @@ -132,7 +132,7 @@ extension SDL * layout, and ASTERISK and MICRO SIGN in a * French Windows layout. */ - Nonushash = 50, /**< ISO USB keyboards actually use this code + Nonushash = 50, /**< ISO USB keyboards actually use this code * instead of 49 for the same key, but all * OSes I've seen treat the two codes * identically. So, as an implementer, unless @@ -144,9 +144,9 @@ extension SDL * will never generate it with most (all?) * keyboards. */ - Semicolon = 51, - Apostrophe = 52, - Grave = 53, /**< Located in the top left corner (on both ANSI + Semicolon = 51, + Apostrophe = 52, + Grave = 53, /**< Located in the top left corner (on both ANSI * and ISO keyboards). Produces GRAVE ACCENT and * TILDE in a US Windows layout and in US and UK * Mac layouts on ANSI keyboards, GRAVE ACCENT @@ -163,60 +163,60 @@ extension SDL * SIGN in a Swiss German, German, or French Mac * layout on ANSI keyboards. */ - Comma = 54, - Period = 55, - Slash = 56, + Comma = 54, + Period = 55, + Slash = 56, - Capslock = 57, + Capslock = 57, - F1 = 58, - F2 = 59, - F3 = 60, - F4 = 61, - F5 = 62, - F6 = 63, - F7 = 64, - F8 = 65, - F9 = 66, - F10 = 67, - F11 = 68, - F12 = 69, + F1 = 58, + F2 = 59, + F3 = 60, + F4 = 61, + F5 = 62, + F6 = 63, + F7 = 64, + F8 = 65, + F9 = 66, + F10 = 67, + F11 = 68, + F12 = 69, - Printscreen = 70, - Scrolllock = 71, - Pause = 72, - Insert = 73, /**< insert on PC, help on some Mac keyboards (but + Printscreen = 70, + Scrolllock = 71, + Pause = 72, + Insert = 73, /**< insert on PC, help on some Mac keyboards (but does send code 73, not 117) */ - Home = 74, - Pageup = 75, - Delete = 76, - End = 77, - Pagedown = 78, - Right = 79, - Left = 80, - Down = 81, - Up = 82, + Home = 74, + Pageup = 75, + Delete = 76, + End = 77, + Pagedown = 78, + Right = 79, + Left = 80, + Down = 81, + Up = 82, - Numlockclear = 83, /**< num lock on PC, clear on Mac keyboards + Numlockclear = 83, /**< num lock on PC, clear on Mac keyboards */ - KpDivide = 84, - KpMultiply = 85, - KpMinus = 86, - KpPlus = 87, - KpEnter = 88, - Kp1 = 89, - Kp2 = 90, - Kp3 = 91, - Kp4 = 92, - Kp5 = 93, - Kp6 = 94, - Kp7 = 95, - Kp8 = 96, - Kp9 = 97, - Kp0 = 98, - KpPeriod = 99, + KpDivide = 84, + KpMultiply = 85, + KpMinus = 86, + KpPlus = 87, + KpEnter = 88, + Kp1 = 89, + Kp2 = 90, + Kp3 = 91, + Kp4 = 92, + Kp5 = 93, + Kp6 = 94, + Kp7 = 95, + Kp8 = 96, + Kp9 = 97, + Kp0 = 98, + KpPeriod = 99, - Nonusbackslash = 100, /**< This is the additional key that ISO + Nonusbackslash = 100, /**< This is the additional key that ISO * keyboards have over ANSI ones, * located between left shift and Z. * Produces GRAVE ACCENT and TILDE in a @@ -226,134 +226,134 @@ extension SDL * LESS-THAN SIGN and GREATER-THAN SIGN * in a Swiss German, German, or French * layout. */ - Application = 101, /**< windows contextual menu, compose */ - Power = 102, /**< The USB document says this is a status flag, + Application = 101, /**< windows contextual menu, compose */ + Power = 102, /**< The USB document says this is a status flag, * not a physical key - but some Mac keyboards * do have a power key. */ - KpEquals = 103, - F13 = 104, - F14 = 105, - F15 = 106, - F16 = 107, - F17 = 108, - F18 = 109, - F19 = 110, - F20 = 111, - F21 = 112, - F22 = 113, - F23 = 114, - F24 = 115, - Execute = 116, - Help = 117, /**< AL Integrated Help Center */ - Menu = 118, /**< Menu (show menu) */ - Select = 119, - Stop = 120, /**< AC Stop */ - Again = 121, /**< AC Redo/Repeat */ - Undo = 122, /**< AC Undo */ - Cut = 123, /**< AC Cut */ - Copy = 124, /**< AC Copy */ - Paste = 125, /**< AC Paste */ - Find = 126, /**< AC Find */ - Mute = 127, - Volumeup = 128, - Volumedown = 129, + KpEquals = 103, + F13 = 104, + F14 = 105, + F15 = 106, + F16 = 107, + F17 = 108, + F18 = 109, + F19 = 110, + F20 = 111, + F21 = 112, + F22 = 113, + F23 = 114, + F24 = 115, + Execute = 116, + Help = 117, /**< AL Integrated Help Center */ + Menu = 118, /**< Menu (show menu) */ + Select = 119, + Stop = 120, /**< AC Stop */ + Again = 121, /**< AC Redo/Repeat */ + Undo = 122, /**< AC Undo */ + Cut = 123, /**< AC Cut */ + Copy = 124, /**< AC Copy */ + Paste = 125, /**< AC Paste */ + Find = 126, /**< AC Find */ + Mute = 127, + Volumeup = 128, + Volumedown = 129, /* not sure whether there's a reason to enable these */ /* SDL_SCANCODE_LOCKINGCAPSLOCK = 130, */ /* SDL_SCANCODE_LOCKINGNUMLOCK = 131, */ /* SDL_SCANCODE_LOCKINGSCROLLLOCK = 132, */ - KpComma = 133, - KpEqualsas400 = 134, + KpComma = 133, + KpEqualsas400 = 134, - International1 = 135, /**< used on Asian keyboards, see + International1 = 135, /**< used on Asian keyboards, see footnotes in USB doc */ - International2 = 136, - International3 = 137, /**< Yen */ - International4 = 138, - International5 = 139, - International6 = 140, - International7 = 141, - International8 = 142, - International9 = 143, - Lang1 = 144, /**< Hangul/English toggle */ - Lang2 = 145, /**< Hanja conversion */ - Lang3 = 146, /**< Katakana */ - Lang4 = 147, /**< Hiragana */ - Lang5 = 148, /**< Zenkaku/Hankaku */ - Lang6 = 149, /**< reserved */ - Lang7 = 150, /**< reserved */ - Lang8 = 151, /**< reserved */ - Lang9 = 152, /**< reserved */ + International2 = 136, + International3 = 137, /**< Yen */ + International4 = 138, + International5 = 139, + International6 = 140, + International7 = 141, + International8 = 142, + International9 = 143, + Lang1 = 144, /**< Hangul/English toggle */ + Lang2 = 145, /**< Hanja conversion */ + Lang3 = 146, /**< Katakana */ + Lang4 = 147, /**< Hiragana */ + Lang5 = 148, /**< Zenkaku/Hankaku */ + Lang6 = 149, /**< reserved */ + Lang7 = 150, /**< reserved */ + Lang8 = 151, /**< reserved */ + Lang9 = 152, /**< reserved */ - Alterase = 153, /**< Erase-Eaze */ - Sysreq = 154, - Cancel = 155, /**< AC Cancel */ - Clear = 156, - Prior = 157, - Return2 = 158, - Separator = 159, - Out = 160, - Oper = 161, - Clearagain = 162, - Crsel = 163, - Exsel = 164, + Alterase = 153, /**< Erase-Eaze */ + Sysreq = 154, + Cancel = 155, /**< AC Cancel */ + Clear = 156, + Prior = 157, + Return2 = 158, + Separator = 159, + Out = 160, + Oper = 161, + Clearagain = 162, + Crsel = 163, + Exsel = 164, - Kp00 = 176, - Kp000 = 177, - Thousandsseparator = 178, - Decimalseparator = 179, - Currencyunit = 180, - Currencysubunit = 181, - KpLeftparen = 182, - KpRightparen = 183, - KpLeftbrace = 184, - KpRightbrace = 185, - KpTab = 186, - KpBackspace = 187, - KpA = 188, - KpB = 189, - KpC = 190, - KpD = 191, - KpE = 192, - KpF = 193, - KpXor = 194, - KpPower = 195, - KpPercent = 196, - KpLess = 197, - KpGreater = 198, - KpAmpersand = 199, - KpDblampersand = 200, - KpVerticalbar = 201, - KpDblverticalbar = 202, - KpColon = 203, - KpHash = 204, - KpSpace = 205, - KpAt = 206, - KpExclam = 207, - KpMemstore = 208, - KpMemrecall = 209, - KpMemclear = 210, - KpMemadd = 211, - KpMemsubtract = 212, - KpMemmultiply = 213, - KpMemdivide = 214, - KpPlusminus = 215, - KpClear = 216, - KpClearentry = 217, - KpBinary = 218, - KpOctal = 219, - KpDecimal = 220, - KpHexadecimal = 221, + Kp00 = 176, + Kp000 = 177, + Thousandsseparator = 178, + Decimalseparator = 179, + Currencyunit = 180, + Currencysubunit = 181, + KpLeftparen = 182, + KpRightparen = 183, + KpLeftbrace = 184, + KpRightbrace = 185, + KpTab = 186, + KpBackspace = 187, + KpA = 188, + KpB = 189, + KpC = 190, + KpD = 191, + KpE = 192, + KpF = 193, + KpXor = 194, + KpPower = 195, + KpPercent = 196, + KpLess = 197, + KpGreater = 198, + KpAmpersand = 199, + KpDblampersand = 200, + KpVerticalbar = 201, + KpDblverticalbar = 202, + KpColon = 203, + KpHash = 204, + KpSpace = 205, + KpAt = 206, + KpExclam = 207, + KpMemstore = 208, + KpMemrecall = 209, + KpMemclear = 210, + KpMemadd = 211, + KpMemsubtract = 212, + KpMemmultiply = 213, + KpMemdivide = 214, + KpPlusminus = 215, + KpClear = 216, + KpClearentry = 217, + KpBinary = 218, + KpOctal = 219, + KpDecimal = 220, + KpHexadecimal = 221, - Lctrl = 224, - Lshift = 225, - Lalt = 226, /**< alt, option */ - Lgui = 227, /**< windows, command (apple), meta */ - Rctrl = 228, - Rshift = 229, - Ralt = 230, /**< alt gr, option */ - Rgui = 231, /**< windows, command (apple), meta */ + Lctrl = 224, + Lshift = 225, + Lalt = 226, /**< alt, option */ + Lgui = 227, /**< windows, command (apple), meta */ + Rctrl = 228, + Rshift = 229, + Ralt = 230, /**< alt gr, option */ + Rgui = 231, /**< windows, command (apple), meta */ - Mode = 257, /**< I'm not sure if this is really not covered + Mode = 257, /**< I'm not sure if this is really not covered * by any of the above, but since there's a * special SDL_KMOD_MODE for it I'm adding it here */ @@ -371,39 +371,39 @@ extension SDL */ /* @{ */ - Sleep = 258, /**< Sleep */ - Wake = 259, /**< Wake */ + Sleep = 258, /**< Sleep */ + Wake = 259, /**< Wake */ - ChannelIncrement = 260, /**< Channel Increment */ - ChannelDecrement = 261, /**< Channel Decrement */ + ChannelIncrement = 260, /**< Channel Increment */ + ChannelDecrement = 261, /**< Channel Decrement */ - MediaPlay = 262, /**< Play */ - MediaPause = 263, /**< Pause */ - MediaRecord = 264, /**< Record */ - MediaFastForward = 265, /**< Fast Forward */ - MediaRewind = 266, /**< Rewind */ - MediaNextTrack = 267, /**< Next Track */ - MediaPreviousTrack = 268, /**< Previous Track */ - MediaStop = 269, /**< Stop */ - MediaEject = 270, /**< Eject */ - MediaPlayPause = 271, /**< Play / Pause */ - MediaSelect = 272, /* Media Select */ + MediaPlay = 262, /**< Play */ + MediaPause = 263, /**< Pause */ + MediaRecord = 264, /**< Record */ + MediaFastForward = 265, /**< Fast Forward */ + MediaRewind = 266, /**< Rewind */ + MediaNextTrack = 267, /**< Next Track */ + MediaPreviousTrack = 268, /**< Previous Track */ + MediaStop = 269, /**< Stop */ + MediaEject = 270, /**< Eject */ + MediaPlayPause = 271, /**< Play / Pause */ + MediaSelect = 272, /* Media Select */ - AcNew = 273, /**< AC New */ - AcOpen = 274, /**< AC Open */ - AcClose = 275, /**< AC Close */ - AcExit = 276, /**< AC Exit */ - AcSave = 277, /**< AC Save */ - AcPrint = 278, /**< AC Print */ - AcProperties = 279, /**< AC Properties */ + AcNew = 273, /**< AC New */ + AcOpen = 274, /**< AC Open */ + AcClose = 275, /**< AC Close */ + AcExit = 276, /**< AC Exit */ + AcSave = 277, /**< AC Save */ + AcPrint = 278, /**< AC Print */ + AcProperties = 279, /**< AC Properties */ - AcSearch = 280, /**< AC Search */ - AcHome = 281, /**< AC Home */ - AcBack = 282, /**< AC Back */ - AcForward = 283, /**< AC Forward */ - AcStop = 284, /**< AC Stop */ - AcRefresh = 285, /**< AC Refresh */ - AcBookmarks = 286, /**< AC Bookmarks */ + AcSearch = 280, /**< AC Search */ + AcHome = 281, /**< AC Home */ + AcBack = 282, /**< AC Back */ + AcForward = 283, /**< AC Forward */ + AcStop = 284, /**< AC Stop */ + AcRefresh = 285, /**< AC Refresh */ + AcBookmarks = 286, /**< AC Bookmarks */ /* @} */ /* Usage page 0x0C */ @@ -415,24 +415,24 @@ extension SDL */ /* @{ */ - Softleft = 287, /**< Usually situated below the display on phones and + Softleft = 287, /**< Usually situated below the display on phones and used as a multi-function feature key for selecting a software defined function shown on the bottom left of the display. */ - Softright = 288, /**< Usually situated below the display on phones and + Softright = 288, /**< Usually situated below the display on phones and used as a multi-function feature key for selecting a software defined function shown on the bottom right of the display. */ - Call = 289, /**< Used for accepting phone calls. */ - Endcall = 290, /**< Used for rejecting phone calls. */ + Call = 289, /**< Used for accepting phone calls. */ + Endcall = 290, /**< Used for rejecting phone calls. */ /* @} */ /* Mobile keys */ /* Add any other keys here. */ - Reserved = 400, /**< 400-500 reserved for dynamic keycodes */ + Reserved = 400, /**< 400-500 reserved for dynamic keycodes */ - Count = 512, /**< not a key, just marks the number of scancodes for array bounds */ + /**< not a key, just marks the number of scancodes for array bounds */ Count = 512, /**< not a key, just marks the number of scancodes for array bounds */ } diff --git a/src/SDL_sensor.bf b/src/SDL_sensor.bf index 4bbf4ce..4731ee7 100644 --- a/src/SDL_sensor.bf +++ b/src/SDL_sensor.bf @@ -141,15 +141,15 @@ public const let STANDARD_GRAVITY = 9.80665f; */ [AllowDuplicates] public enum SensorType : c_int { - Invalid = -1, /**< Returned for an invalid sensor */ - Unknown, /**< Unknown sensor type */ - Accel, /**< Accelerometer */ - Gyro, /**< Gyroscope */ - AccelL, /**< Accelerometer for left Joy-Con controller and Wii nunchuk */ - GyroL, /**< Gyroscope for left Joy-Con controller */ - AccelR, /**< Accelerometer for right Joy-Con controller */ - GyroR, /**< Gyroscope for right Joy-Con controller */ - Count, + Invalid = -1, /**< Returned for an invalid sensor */ + Unknown, /**< Unknown sensor type */ + Accel, /**< Accelerometer */ + Gyro, /**< Gyroscope */ + AccelL, /**< Accelerometer for left Joy-Con controller and Wii nunchuk */ + GyroL, /**< Gyroscope for left Joy-Con controller */ + AccelR, /**< Accelerometer for right Joy-Con controller */ + GyroR, /**< Gyroscope for right Joy-Con controller */ + Count, } diff --git a/src/SDL_stdinc.bf b/src/SDL_stdinc.bf index e62564c..493bd4d 100644 --- a/src/SDL_stdinc.bf +++ b/src/SDL_stdinc.bf @@ -1211,7 +1211,7 @@ public const let FLT_EPSILON = 1.1920928955078125e-07F;/* 0x0.000002p0 */ /* TODO: include/SDL_stdinc.h:390: error: size of array 'SDL_dummy_enum' is negative */ [AllowDuplicates] public enum DUMMY_ENUM : c_int { - DUMMY_ENUM_VALUE, + DUMMY_ENUM_VALUE, } diff --git a/src/SDL_surface.bf b/src/SDL_surface.bf index 08c49bb..5287967 100644 --- a/src/SDL_surface.bf +++ b/src/SDL_surface.bf @@ -97,10 +97,10 @@ public enum SurfaceFlags : Uint32 */ [AllowDuplicates] public enum ScaleMode : c_int { - Invalid = -1, - Nearest, /**< nearest pixel sampling */ - Linear, /**< linear filtering */ - Pixelart, /**< nearest pixel sampling with improved scaling for pixel art, available since SDL 3.4.0 */ + Invalid = -1, + Nearest, /**< nearest pixel sampling */ + Linear, /**< linear filtering */ + /**< nearest pixel sampling with improved scaling for pixel art, available since SDL 3.4.0 */ Pixelart, /**< nearest pixel sampling with improved scaling for pixel art, available since SDL 3.4.0 */ } /** @@ -110,10 +110,10 @@ public enum SurfaceFlags : Uint32 */ [AllowDuplicates] public enum FlipMode : c_int { - None, /**< Do not flip */ - Horizontal, /**< flip horizontally */ - Vertical, /**< flip vertically */ - HorizontalAndVertical = (Horizontal | Vertical), /**< flip horizontally and vertically (not a diagonal flip) */ + None, /**< Do not flip */ + Horizontal, /**< flip horizontally */ + Vertical, /**< flip vertically */ + /**< flip horizontally and vertically (not a diagonal flip) */ HorizontalAndVertical = (Horizontal | Vertical), /**< flip horizontally and vertically (not a diagonal flip) */ } diff --git a/src/SDL_system.bf b/src/SDL_system.bf index 43bebfe..2b70281 100644 --- a/src/SDL_system.bf +++ b/src/SDL_system.bf @@ -659,11 +659,11 @@ public function bool X11EventHook(void* userdata, XEvent* xevent); */ [AllowDuplicates] public enum Sandbox : c_int { - None = 0, - UnknownContainer, - Flatpak, - Snap, - Macos, + None = 0, + UnknownContainer, + Flatpak, + Snap, + Macos, } /** diff --git a/src/SDL_thread.bf b/src/SDL_thread.bf index d84da2d..a489c5d 100644 --- a/src/SDL_thread.bf +++ b/src/SDL_thread.bf @@ -119,10 +119,10 @@ public typealias TLSID = AtomicInt; * \since This enum is available since SDL 3.2.0. */ [AllowDuplicates] public enum ThreadPriority : c_int { - Low, - Normal, - High, - TimeCritical, + Low, + Normal, + High, + TimeCritical, } /** @@ -136,10 +136,10 @@ public typealias TLSID = AtomicInt; */ [AllowDuplicates] public enum ThreadState : c_int { - Unknown, /**< The thread is not valid */ - Alive, /**< The thread is currently running */ - Detached, /**< The thread is detached and can't be waited on */ - Complete, /**< The thread has finished and should be cleaned up with SDL_WaitThread() */ + Unknown, /**< The thread is not valid */ + Alive, /**< The thread is currently running */ + Detached, /**< The thread is detached and can't be waited on */ + /**< The thread has finished and should be cleaned up with SDL_WaitThread() */ Complete, /**< The thread has finished and should be cleaned up with SDL_WaitThread() */ } /** diff --git a/src/SDL_time.bf b/src/SDL_time.bf index 3afa864..cf267ef 100644 --- a/src/SDL_time.bf +++ b/src/SDL_time.bf @@ -83,9 +83,9 @@ freely, subject to the following restrictions: */ [AllowDuplicates] public enum DateFormat : c_int { - Yyyymmdd = 0, /**< Year/Month/Day */ - Ddmmyyyy = 1, /**< Day/Month/Year */ - Mmddyyyy = 2, /**< Month/Day/Year */ + Yyyymmdd = 0, /**< Year/Month/Day */ + Ddmmyyyy = 1, /**< Day/Month/Year */ + /**< Month/Day/Year */ Mmddyyyy = 2, /**< Month/Day/Year */ } /** @@ -97,8 +97,8 @@ freely, subject to the following restrictions: */ [AllowDuplicates] public enum TimeFormat : c_int { - _24hr = 0, /**< 24 hour time */ - _12hr = 1, /**< 12 hour time */ + _24hr = 0, /**< 24 hour time */ + /**< 12 hour time */ _12hr = 1, /**< 12 hour time */ } /** diff --git a/src/SDL_touch.bf b/src/SDL_touch.bf index d9a5ba2..67c757a 100644 --- a/src/SDL_touch.bf +++ b/src/SDL_touch.bf @@ -92,10 +92,10 @@ public typealias FingerID = Uint64; */ [AllowDuplicates] public enum TouchDeviceType : c_int { - Invalid = -1, - Direct, /**< touch screen with window-relative coordinates */ - IndirectAbsolute, /**< trackpad with absolute device coordinates */ - IndirectRelative, /**< trackpad with screen cursor-relative coordinates */ + Invalid = -1, + Direct, /**< touch screen with window-relative coordinates */ + IndirectAbsolute, /**< trackpad with absolute device coordinates */ + /**< trackpad with screen cursor-relative coordinates */ IndirectRelative, /**< trackpad with screen cursor-relative coordinates */ } /** diff --git a/src/SDL_video.bf b/src/SDL_video.bf index 091e9de..774bad1 100644 --- a/src/SDL_video.bf +++ b/src/SDL_video.bf @@ -119,9 +119,9 @@ public const let PROP_GLOBAL_VIDEO_WAYLAND_WL_DISPLAY_POINTER = "SDL.video.wayla */ [AllowDuplicates] public enum SystemTheme : c_int { - Unknown, /**< Unknown system theme */ - Light, /**< Light colored system theme */ - Dark, /**< Dark colored system theme */ + Unknown, /**< Unknown system theme */ + Light, /**< Light colored system theme */ + /**< Dark colored system theme */ Dark, /**< Dark colored system theme */ } /** @@ -168,11 +168,11 @@ public const let PROP_GLOBAL_VIDEO_WAYLAND_WL_DISPLAY_POINTER = "SDL.video.wayla */ [AllowDuplicates] public enum DisplayOrientation : c_int { - OrientationUnknown, /**< The display orientation can't be determined */ - OrientationLandscape, /**< The display is in landscape mode, with the right side up, relative to portrait mode */ - OrientationLandscapeFlipped, /**< The display is in landscape mode, with the left side up, relative to portrait mode */ - OrientationPortrait, /**< The display is in portrait mode */ - OrientationPortraitFlipped, /**< The display is in portrait mode, upside down */ + OrientationUnknown, /**< The display orientation can't be determined */ + OrientationLandscape, /**< The display is in landscape mode, with the right side up, relative to portrait mode */ + OrientationLandscapeFlipped, /**< The display is in landscape mode, with the left side up, relative to portrait mode */ + OrientationPortrait, /**< The display is in portrait mode */ + /**< The display is in portrait mode, upside down */ OrientationPortraitFlipped, /**< The display is in portrait mode, upside down */ } /** @@ -250,9 +250,9 @@ public enum WindowFlags : Uint64 */ }[AllowDuplicates] public enum FlashOperation : c_int { - Cancel, /**< Cancel any window flash state */ - Briefly, /**< Flash the window briefly to get attention */ - UntilFocused, /**< Flash the window until it gets focus */ + Cancel, /**< Cancel any window flash state */ + Briefly, /**< Flash the window briefly to get attention */ + /**< Flash the window until it gets focus */ UntilFocused, /**< Flash the window until it gets focus */ } /** @@ -262,12 +262,12 @@ public enum WindowFlags : Uint64 */ [AllowDuplicates] public enum ProgressState : c_int { - Invalid = -1, /**< An invalid progress state indicating an error; check SDL_GetError() */ - None, /**< No progress bar is shown */ - Indeterminate, /**< The progress bar is shown in a indeterminate state */ - Normal, /**< The progress bar is shown in a normal state */ - Paused, /**< The progress bar is shown in a paused state */ - Error, /**< The progress bar is shown in a state indicating the application had an error */ + Invalid = -1, /**< An invalid progress state indicating an error; check SDL_GetError() */ + None, /**< No progress bar is shown */ + Indeterminate, /**< The progress bar is shown in a indeterminate state */ + Normal, /**< The progress bar is shown in a normal state */ + Paused, /**< The progress bar is shown in a paused state */ + /**< The progress bar is shown in a state indicating the application had an error */ Error, /**< The progress bar is shown in a state indicating the application had an error */ } /** @@ -392,34 +392,34 @@ public function EGLint* EGLIntArrayCallback(void* userdata, EGLDisplay display, */ [AllowDuplicates] public enum GLAttr : c_int { - RedSize, /**< the minimum number of bits for the red channel of the color buffer; defaults to 8. */ - GreenSize, /**< the minimum number of bits for the green channel of the color buffer; defaults to 8. */ - BlueSize, /**< the minimum number of bits for the blue channel of the color buffer; defaults to 8. */ - lphaSize, /**< the minimum number of bits for the alpha channel of the color buffer; defaults to 8. */ - BufferSize, /**< the minimum number of bits for frame buffer size; defaults to 0. */ - Doublebuffer, /**< whether the output is single or double buffered; defaults to double buffering on. */ - DepthSize, /**< the minimum number of bits in the depth buffer; defaults to 16. */ - StencilSize, /**< the minimum number of bits in the stencil buffer; defaults to 0. */ - ccumRedSize, /**< the minimum number of bits for the red channel of the accumulation buffer; defaults to 0. */ - ccumGreenSize, /**< the minimum number of bits for the green channel of the accumulation buffer; defaults to 0. */ - ccumBlueSize, /**< the minimum number of bits for the blue channel of the accumulation buffer; defaults to 0. */ - ccumAlphaSize, /**< the minimum number of bits for the alpha channel of the accumulation buffer; defaults to 0. */ - Stereo, /**< whether the output is stereo 3D; defaults to off. */ - Multisamplebuffers, /**< the number of buffers used for multisample anti-aliasing; defaults to 0. */ - Multisamplesamples, /**< the number of samples used around the current pixel used for multisample anti-aliasing. */ - cceleratedVisual, /**< set to 1 to require hardware acceleration, set to 0 to force software rendering; defaults to allow either. */ - RetainedBacking, /**< not used (deprecated). */ - ContextMajorVersion, /**< OpenGL context major version. */ - ContextMinorVersion, /**< OpenGL context minor version. */ - ContextFlags, /**< some combination of 0 or more of elements of the SDL_GLContextFlag enumeration; defaults to 0. */ - ContextProfileMask, /**< type of GL context (Core, Compatibility, ES). See SDL_GLProfile; default value depends on platform. */ - ShareWithCurrentContext, /**< OpenGL context sharing; defaults to 0. */ - FramebufferSrgbCapable, /**< requests sRGB capable visual; defaults to 0. */ - ContextReleaseBehavior, /**< sets context the release behavior. See SDL_GLContextReleaseFlag; defaults to FLUSH. */ - ContextResetNotification, /**< set context reset notification. See SDL_GLContextResetNotification; defaults to NO_NOTIFICATION. */ - ContextNoError, - Floatbuffers, - EglPlatform, + RedSize, /**< the minimum number of bits for the red channel of the color buffer; defaults to 8. */ + GreenSize, /**< the minimum number of bits for the green channel of the color buffer; defaults to 8. */ + BlueSize, /**< the minimum number of bits for the blue channel of the color buffer; defaults to 8. */ + lphaSize, /**< the minimum number of bits for the alpha channel of the color buffer; defaults to 8. */ + BufferSize, /**< the minimum number of bits for frame buffer size; defaults to 0. */ + Doublebuffer, /**< whether the output is single or double buffered; defaults to double buffering on. */ + DepthSize, /**< the minimum number of bits in the depth buffer; defaults to 16. */ + StencilSize, /**< the minimum number of bits in the stencil buffer; defaults to 0. */ + ccumRedSize, /**< the minimum number of bits for the red channel of the accumulation buffer; defaults to 0. */ + ccumGreenSize, /**< the minimum number of bits for the green channel of the accumulation buffer; defaults to 0. */ + ccumBlueSize, /**< the minimum number of bits for the blue channel of the accumulation buffer; defaults to 0. */ + ccumAlphaSize, /**< the minimum number of bits for the alpha channel of the accumulation buffer; defaults to 0. */ + Stereo, /**< whether the output is stereo 3D; defaults to off. */ + Multisamplebuffers, /**< the number of buffers used for multisample anti-aliasing; defaults to 0. */ + Multisamplesamples, /**< the number of samples used around the current pixel used for multisample anti-aliasing. */ + cceleratedVisual, /**< set to 1 to require hardware acceleration, set to 0 to force software rendering; defaults to allow either. */ + RetainedBacking, /**< not used (deprecated). */ + ContextMajorVersion, /**< OpenGL context major version. */ + ContextMinorVersion, /**< OpenGL context minor version. */ + ContextFlags, /**< some combination of 0 or more of elements of the SDL_GLContextFlag enumeration; defaults to 0. */ + ContextProfileMask, /**< type of GL context (Core, Compatibility, ES). See SDL_GLProfile; default value depends on platform. */ + ShareWithCurrentContext, /**< OpenGL context sharing; defaults to 0. */ + FramebufferSrgbCapable, /**< requests sRGB capable visual; defaults to 0. */ + ContextReleaseBehavior, /**< sets context the release behavior. See SDL_GLContextReleaseFlag; defaults to FLUSH. */ + ContextResetNotification, /**< set context reset notification. See SDL_GLContextResetNotification; defaults to NO_NOTIFICATION. */ + ContextNoError, + Floatbuffers, + EglPlatform, } /** @@ -2781,16 +2781,16 @@ public const let PROP_WINDOW_EMSCRIPTEN_KEYBOARD_ELEMENT_STRING = "SDL. */ [AllowDuplicates] public enum HitTestResult : c_int { - Normal, /**< Region is normal. No special properties. */ - Draggable, /**< Region can drag entire window. */ - izeTopleft, /**< Region is the resizable top-left corner border. */ - izeTop, /**< Region is the resizable top border. */ - izeTopright, /**< Region is the resizable top-right corner border. */ - izeRight, /**< Region is the resizable right border. */ - izeBottomright, /**< Region is the resizable bottom-right corner border. */ - izeBottom, /**< Region is the resizable bottom border. */ - izeBottomleft, /**< Region is the resizable bottom-left corner border. */ - izeLeft, /**< Region is the resizable left border. */ + Normal, /**< Region is normal. No special properties. */ + Draggable, /**< Region can drag entire window. */ + izeTopleft, /**< Region is the resizable top-left corner border. */ + izeTop, /**< Region is the resizable top border. */ + izeTopright, /**< Region is the resizable top-right corner border. */ + izeRight, /**< Region is the resizable right border. */ + izeBottomright, /**< Region is the resizable bottom-right corner border. */ + izeBottom, /**< Region is the resizable bottom border. */ + izeBottomleft, /**< Region is the resizable bottom-left corner border. */ + /**< Region is the resizable left border. */ izeLeft, /**< Region is the resizable left border. */ } /**