migrate
This commit is contained in:
@@ -1,111 +1,83 @@
|
|||||||
FileVersion = 1
|
FileVersion = 1
|
||||||
Dependencies = {corlib = "*", corlib = "*"}
|
|
||||||
|
|
||||||
[Project]
|
[Project]
|
||||||
Name = "SDL3"
|
Name = "SDL3"
|
||||||
TargetType = "BeefLib"
|
TargetType = "BeefLib"
|
||||||
StartupObject = "SDL3.Program"
|
StartupObject = "SDL3.Program"
|
||||||
|
|
||||||
|
[Dependencies]
|
||||||
|
corlib = "*"
|
||||||
|
corlib = "*"
|
||||||
|
"CxxBuildTool.git" = {Git = "https://git.unicon-gmbh.de/Rune/CxxBuildTool.git"}
|
||||||
|
|
||||||
[Configs.Debug.Win32]
|
[Configs.Debug.Win32]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
LibPaths = ["$(BuildDir)/SDL3-static.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\")"]
|
|
||||||
|
|
||||||
[Configs.Debug.Win64]
|
[Configs.Debug.Win64]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
LibPaths = ["$(BuildDir)/SDL3-static.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\")"]
|
|
||||||
|
|
||||||
[Configs.Debug.Linux32]
|
[Configs.Debug.Linux32]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
|
||||||
|
|
||||||
[Configs.Debug.Linux64]
|
[Configs.Debug.Linux64]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
|
||||||
|
|
||||||
[Configs.Debug.macOS]
|
[Configs.Debug.macOS]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
|
||||||
|
|
||||||
[Configs.Debug.wasm]
|
[Configs.Debug.wasm]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.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)\""]
|
|
||||||
|
|
||||||
[Configs.Release.Win32]
|
[Configs.Release.Win32]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
LibPaths = ["$(BuildDir)/SDL3-static.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\")"]
|
|
||||||
|
|
||||||
[Configs.Release.Win64]
|
[Configs.Release.Win64]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
LibPaths = ["$(BuildDir)/SDL3-static.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\")"]
|
|
||||||
|
|
||||||
[Configs.Release.Linux32]
|
[Configs.Release.Linux32]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
|
||||||
|
|
||||||
[Configs.Release.Linux64]
|
[Configs.Release.Linux64]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
|
||||||
|
|
||||||
[Configs.Release.macOS]
|
[Configs.Release.macOS]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
|
||||||
|
|
||||||
[Configs.Release.wasm]
|
[Configs.Release.wasm]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.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)\""]
|
|
||||||
|
|
||||||
[Configs.Paranoid.Win32]
|
[Configs.Paranoid.Win32]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
LibPaths = ["$(BuildDir)/SDL3-static.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\")"]
|
|
||||||
|
|
||||||
[Configs.Paranoid.Win64]
|
[Configs.Paranoid.Win64]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
LibPaths = ["$(BuildDir)/SDL3-static.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\")"]
|
|
||||||
|
|
||||||
[Configs.Paranoid.Linux32]
|
[Configs.Paranoid.Linux32]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
|
||||||
|
|
||||||
[Configs.Paranoid.Linux64]
|
[Configs.Paranoid.Linux64]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
|
||||||
|
|
||||||
[Configs.Paranoid.macOS]
|
[Configs.Paranoid.macOS]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
|
||||||
|
|
||||||
[Configs.Paranoid.wasm]
|
[Configs.Paranoid.wasm]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.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)\""]
|
|
||||||
|
|
||||||
[Configs.Test.Win32]
|
[Configs.Test.Win32]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
LibPaths = ["$(BuildDir)/SDL3-static.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\")"]
|
|
||||||
|
|
||||||
[Configs.Test.Win64]
|
[Configs.Test.Win64]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
LibPaths = ["$(BuildDir)/SDL3-static.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\")"]
|
|
||||||
|
|
||||||
[Configs.Test.Linux32]
|
[Configs.Test.Linux32]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
|
||||||
|
|
||||||
[Configs.Test.Linux64]
|
[Configs.Test.Linux64]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
|
||||||
|
|
||||||
[Configs.Test.macOS]
|
[Configs.Test.macOS]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
|
||||||
|
|
||||||
[Configs.Test.wasm]
|
[Configs.Test.wasm]
|
||||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
LibPaths = ["$(BuildDir)/SDL3-static.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)\""]
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
FileVersion = 1
|
FileVersion = 1
|
||||||
Projects = {SDL3 = {Path = "."}}
|
|
||||||
ExtraPlatforms = ["Linux32", "Linux64", "macOS", "wasm"]
|
ExtraPlatforms = ["Linux32", "Linux64", "macOS", "wasm"]
|
||||||
|
|
||||||
[Workspace]
|
[Workspace]
|
||||||
StartupProject = "SDL3"
|
StartupProject = "SDL3"
|
||||||
|
|
||||||
|
[Projects]
|
||||||
|
SDL3 = {Path = "."}
|
||||||
|
"CxxBuildTool.git" = {Git = "https://git.unicon-gmbh.de/Rune/CxxBuildTool.git"}
|
||||||
|
|||||||
6
BeefSpace_Lock.toml
Normal file
6
BeefSpace_Lock.toml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
FileVersion = 1
|
||||||
|
|
||||||
|
[Locks."CxxBuildTool.git".Git]
|
||||||
|
URL = "https://git.unicon-gmbh.de/Rune/CxxBuildTool.git"
|
||||||
|
Tag = ""
|
||||||
|
Hash = "b64a6221b8cb235a5e040c8597365dabeef849ca"
|
||||||
@@ -1,66 +1,9 @@
|
|||||||
FileVersion = 1
|
FileVersion = 1
|
||||||
Dependencies = {corlib = "*", "Cpp2Beef.git" = {Git = "https://git.unicon-gmbh.de/BeefBindings/Cpp2Beef.git"}}
|
|
||||||
|
|
||||||
[Project]
|
[Project]
|
||||||
Name = "SDL3.Setup"
|
Name = "SDL3.Setup"
|
||||||
StartupObject = "SDL3.Setup.Program"
|
StartupObject = "SDL3.Setup.Program"
|
||||||
|
|
||||||
[Configs.Debug.Win32]
|
[Dependencies]
|
||||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
corlib = "*"
|
||||||
|
"Cpp2Beef.git" = {Git = "https://git.unicon-gmbh.de/Rune/Cpp2Beef.git"}
|
||||||
[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"]
|
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
FileVersion = 1
|
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"]
|
ExtraPlatforms = ["Linux32", "Linux64", "macOS"]
|
||||||
|
|
||||||
[Workspace]
|
[Workspace]
|
||||||
StartupProject = "SDL3.Setup"
|
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"}
|
||||||
|
|||||||
@@ -162,7 +162,6 @@ class SDL3Generator : Cpp2BeefGenerator, this(Span<char8*> args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
BeginCursor(cursor);
|
BeginCursor(cursor);
|
||||||
if (spelling == "Button") str.Append("[AllowDuplicates] ");
|
|
||||||
AccessSpecifier(cursor);
|
AccessSpecifier(cursor);
|
||||||
str.Append("enum ");
|
str.Append("enum ");
|
||||||
GetNameInBindings(cursor, str);
|
GetNameInBindings(cursor, str);
|
||||||
@@ -179,6 +178,7 @@ class SDL3Generator : Cpp2BeefGenerator, this(Span<char8*> args)
|
|||||||
fileInfo.queuedTokens = .None;
|
fileInfo.queuedTokens = .None;
|
||||||
}
|
}
|
||||||
bool isSDL_GLContextFlag = spelling == "GlContext";
|
bool isSDL_GLContextFlag = spelling == "GlContext";
|
||||||
|
bool isSDL_MouseButtonFlags = spelling == "Button";
|
||||||
{
|
{
|
||||||
BeginBody!(cursor);
|
BeginBody!(cursor);
|
||||||
for (let macro in this.[Friend]unitMacros)
|
for (let macro in this.[Friend]unitMacros)
|
||||||
@@ -197,6 +197,11 @@ class SDL3Generator : Cpp2BeefGenerator, this(Span<char8*> args)
|
|||||||
continue;
|
continue;
|
||||||
macroSpelling.RemoveFromEnd(5);
|
macroSpelling.RemoveFromEnd(5);
|
||||||
}
|
}
|
||||||
|
if (isSDL_MouseButtonFlags && macroSpelling.EndsWith("MASK"))
|
||||||
|
{
|
||||||
|
@macro.Remove();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
macroSpelling.RemoveFromStart(prefix.Length);
|
macroSpelling.RemoveFromStart(prefix.Length);
|
||||||
BeginCursor(macroCursor);
|
BeginCursor(macroCursor);
|
||||||
FixCurly();
|
FixCurly();
|
||||||
@@ -205,7 +210,9 @@ class SDL3Generator : Cpp2BeefGenerator, this(Span<char8*> args)
|
|||||||
let tokens = ScopeTokenize!(macroCursor, unit);
|
let tokens = ScopeTokenize!(macroCursor, unit);
|
||||||
AllWhiteSpaceBetween(Clang.GetRangeEnd(Clang.GetTokenExtent(unit, tokens[0])), Clang.GetRangeStart(Clang.GetTokenExtent(unit, tokens[1])));
|
AllWhiteSpaceBetween(Clang.GetRangeEnd(Clang.GetTokenExtent(unit, tokens[0])), Clang.GetRangeStart(Clang.GetTokenExtent(unit, tokens[1])));
|
||||||
str.Append("= ");
|
str.Append("= ");
|
||||||
|
if (isSDL_MouseButtonFlags) str.Append("1 << (");
|
||||||
WriteTokens(tokens[1...], Clang.GetNullLocation(), .Punctuation);
|
WriteTokens(tokens[1...], Clang.GetNullLocation(), .Punctuation);
|
||||||
|
if (isSDL_MouseButtonFlags) str.Append("-1)");
|
||||||
str.Append(',');
|
str.Append(',');
|
||||||
@macro.Remove();
|
@macro.Remove();
|
||||||
WriteComments(Clang.GetCursorLocation(macroCursor));
|
WriteComments(Clang.GetCursorLocation(macroCursor));
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using CxxBuildTool;
|
||||||
|
|
||||||
namespace SDL3;
|
namespace SDL3;
|
||||||
|
|
||||||
@@ -10,7 +11,12 @@ static class SDL
|
|||||||
typealias CrcUint32 = Uint32;
|
typealias CrcUint32 = Uint32;
|
||||||
typealias CrcUint8 = Uint8;
|
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
|
static class SDLTest
|
||||||
|
|||||||
@@ -315,11 +315,11 @@ public const let NULL_WHILE_LOOP_CONDITION = (0,0);
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum AssertState : c_int
|
[AllowDuplicates] public enum AssertState : c_int
|
||||||
{
|
{
|
||||||
Retry, /**< Retry the assert immediately. */
|
Retry, /**< Retry the assert immediately. */
|
||||||
Break, /**< Make the debugger trigger a breakpoint. */
|
Break, /**< Make the debugger trigger a breakpoint. */
|
||||||
Abort, /**< Terminate the program. */
|
Abort, /**< Terminate the program. */
|
||||||
Ignore, /**< Ignore the assert. */
|
Ignore, /**< Ignore the assert. */
|
||||||
AlwaysIgnore, /**< Ignore the assert from now on. */
|
/**< Ignore the assert from now on. */ AlwaysIgnore, /**< Ignore the assert from now on. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -140,9 +140,9 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum AsyncIOTaskType : c_int
|
[AllowDuplicates] public enum AsyncIOTaskType : c_int
|
||||||
{
|
{
|
||||||
Read, /**< A read operation. */
|
Read, /**< A read operation. */
|
||||||
Write, /**< A write operation. */
|
Write, /**< A write operation. */
|
||||||
Close, /**< A close operation. */
|
/**< A close operation. */ Close, /**< A close operation. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -152,9 +152,9 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum AsyncIOResult : c_int
|
[AllowDuplicates] public enum AsyncIOResult : c_int
|
||||||
{
|
{
|
||||||
Complete, /**< request was completed without error */
|
Complete, /**< request was completed without error */
|
||||||
Failure, /**< request failed for some reason; check SDL_GetError()! */
|
Failure, /**< request failed for some reason; check SDL_GetError()! */
|
||||||
Canceled, /**< request was canceled before completing. */
|
/**< request was canceled before completing. */ Canceled, /**< request was canceled before completing. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -230,29 +230,29 @@ public const let AUDIO_MASK_SIGNED = (1u<<15);
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum AudioFormat : c_int
|
[AllowDuplicates] public enum AudioFormat : c_int
|
||||||
{
|
{
|
||||||
Unknown = 0x0000u, /**< Unspecified audio format */
|
Unknown = 0x0000u, /**< Unspecified audio format */
|
||||||
U8 = 0x0008u, /**< Unsigned 8-bit samples */
|
U8 = 0x0008u, /**< Unsigned 8-bit samples */
|
||||||
/* SDL_DEFINE_AUDIO_FORMAT(0, 0, 0, 8), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* SDL_DEFINE_AUDIO_FORMAT(1, 1, 1, 32), */
|
||||||
|
|
||||||
/* These represent the current system's byteorder. */
|
/* These represent the current system's byteorder. */
|
||||||
|
|
||||||
S16 = S16le,
|
S16 = S16le,
|
||||||
S32 = S32le,
|
S32 = S32le,
|
||||||
F32 = F32le,
|
F32 = F32le,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -86,11 +86,11 @@ public enum BlendMode : Uint32
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum BlendOperation : c_int
|
[AllowDuplicates] public enum BlendOperation : c_int
|
||||||
{
|
{
|
||||||
Add = 0x1, /**< dst + src: supported by all renderers */
|
Add = 0x1, /**< dst + src: supported by all renderers */
|
||||||
Subtract = 0x2, /**< src - dst : supported by D3D, OpenGL, OpenGLES, and Vulkan */
|
Subtract = 0x2, /**< src - dst : supported by D3D, OpenGL, OpenGLES, and Vulkan */
|
||||||
RevSubtract = 0x3, /**< dst - src : 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 */
|
Minimum = 0x4, /**< min(dst, src) : supported by D3D, OpenGL, OpenGLES, and Vulkan */
|
||||||
Maximum = 0x5, /**< max(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
|
[AllowDuplicates] public enum BlendFactor : c_int
|
||||||
{
|
{
|
||||||
Zero = 0x1, /**< 0, 0, 0, 0 */
|
Zero = 0x1, /**< 0, 0, 0, 0 */
|
||||||
One = 0x2, /**< 1, 1, 1, 1 */
|
One = 0x2, /**< 1, 1, 1, 1 */
|
||||||
SrcColor = 0x3, /**< srcR, srcG, srcB, srcA */
|
SrcColor = 0x3, /**< srcR, srcG, srcB, srcA */
|
||||||
OneMinusSrcColor = 0x4, /**< 1-srcR, 1-srcG, 1-srcB, 1-srcA */
|
OneMinusSrcColor = 0x4, /**< 1-srcR, 1-srcG, 1-srcB, 1-srcA */
|
||||||
SrcAlpha = 0x5, /**< srcA, srcA, srcA, srcA */
|
SrcAlpha = 0x5, /**< srcA, srcA, srcA, srcA */
|
||||||
OneMinusSrcAlpha = 0x6, /**< 1-srcA, 1-srcA, 1-srcA, 1-srcA */
|
OneMinusSrcAlpha = 0x6, /**< 1-srcA, 1-srcA, 1-srcA, 1-srcA */
|
||||||
DstColor = 0x7, /**< dstR, dstG, dstB, dstA */
|
DstColor = 0x7, /**< dstR, dstG, dstB, dstA */
|
||||||
OneMinusDstColor = 0x8, /**< 1-dstR, 1-dstG, 1-dstB, 1-dstA */
|
OneMinusDstColor = 0x8, /**< 1-dstR, 1-dstG, 1-dstB, 1-dstA */
|
||||||
DstAlpha = 0x9, /**< dstA, dstA, dstA, dstA */
|
DstAlpha = 0x9, /**< dstA, dstA, dstA, dstA */
|
||||||
OneMinusDstAlpha = 0xA, /**< 1-dstA, 1-dstA, 1-dstA, 1-dstA */
|
/**< 1-dstA, 1-dstA, 1-dstA, 1-dstA */ OneMinusDstAlpha = 0xA, /**< 1-dstA, 1-dstA, 1-dstA, 1-dstA */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -141,9 +141,9 @@ public typealias CameraID = Uint32;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum CameraPosition : c_int
|
[AllowDuplicates] public enum CameraPosition : c_int
|
||||||
{
|
{
|
||||||
Unknown,
|
Unknown,
|
||||||
FrontFacing,
|
FrontFacing,
|
||||||
BackFacing,
|
BackFacing,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -155,9 +155,9 @@ public typealias CameraID = Uint32;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum CameraPermissionState : c_int
|
[AllowDuplicates] public enum CameraPermissionState : c_int
|
||||||
{
|
{
|
||||||
Denied = -1,
|
Denied = -1,
|
||||||
Pending,
|
Pending,
|
||||||
Approved,
|
Approved,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -281,9 +281,9 @@ public function void DialogFileCallback(void* userdata, c_char** filelist, c_int
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum FileDialogType : c_int
|
[AllowDuplicates] public enum FileDialogType : c_int
|
||||||
{
|
{
|
||||||
Openfile,
|
Openfile,
|
||||||
Savefile,
|
Savefile,
|
||||||
Openfolder,
|
Openfolder,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -93,208 +93,208 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum EventType : c_int
|
[AllowDuplicates] public enum EventType : c_int
|
||||||
{
|
{
|
||||||
First = 0, /**< Unused (do not remove) */
|
First = 0, /**< Unused (do not remove) */
|
||||||
|
|
||||||
/* Application events */
|
/* 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 */
|
/* 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 iOS in applicationWillTerminate()
|
||||||
Called on Android in onDestroy()
|
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 iOS in applicationDidReceiveMemoryWarning()
|
||||||
Called on Android in onTrimMemory()
|
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 iOS in applicationWillResignActive()
|
||||||
Called on Android in onPause()
|
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 iOS in applicationDidEnterBackground()
|
||||||
Called on Android in onPause()
|
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 iOS in applicationWillEnterForeground()
|
||||||
Called on Android in onResume()
|
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 iOS in applicationDidBecomeActive()
|
||||||
Called on Android in onResume()
|
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 */
|
/* Display events */
|
||||||
/* 0x150 was SDL_DISPLAYEVENT, reserve the number for sdl2-compat */
|
/* 0x150 was SDL_DISPLAYEVENT, reserve the number for sdl2-compat */
|
||||||
DisplayOrientation = 0x151, /**< Display orientation has changed to data1 */
|
DisplayOrientation = 0x151, /**< Display orientation has changed to data1 */
|
||||||
DisplayAdded, /**< Display has been added to the system */
|
DisplayAdded, /**< Display has been added to the system */
|
||||||
DisplayRemoved, /**< Display has been removed from the system */
|
DisplayRemoved, /**< Display has been removed from the system */
|
||||||
DisplayMoved, /**< Display has changed position */
|
DisplayMoved, /**< Display has changed position */
|
||||||
DisplayDesktopModeChanged, /**< Display has changed desktop mode */
|
DisplayDesktopModeChanged, /**< Display has changed desktop mode */
|
||||||
DisplayCurrentModeChanged, /**< Display has changed current mode */
|
DisplayCurrentModeChanged, /**< Display has changed current mode */
|
||||||
DisplayContentScaleChanged, /**< Display has changed content scale */
|
DisplayContentScaleChanged, /**< Display has changed content scale */
|
||||||
DisplayUsableBoundsChanged, /**< Display has changed usable bounds */
|
DisplayUsableBoundsChanged, /**< Display has changed usable bounds */
|
||||||
DisplayFirst = DisplayOrientation,
|
DisplayFirst = DisplayOrientation,
|
||||||
DisplayLast = DisplayUsableBoundsChanged,
|
DisplayLast = DisplayUsableBoundsChanged,
|
||||||
|
|
||||||
/* Window events */
|
/* Window events */
|
||||||
/* 0x200 was SDL_WINDOWEVENT, reserve the number for sdl2-compat */
|
/* 0x200 was SDL_WINDOWEVENT, reserve the number for sdl2-compat */
|
||||||
/* 0x201 was SDL_SYSWMEVENT, reserve the number for sdl2-compat */
|
/* 0x201 was SDL_SYSWMEVENT, reserve the number for sdl2-compat */
|
||||||
WindowShown = 0x202, /**< Window has been shown */
|
WindowShown = 0x202, /**< Window has been shown */
|
||||||
WindowHidden, /**< Window has been hidden */
|
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.
|
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. */
|
data1 is 1 for live-resize expose events, 0 otherwise. */
|
||||||
WindowMoved, /**< Window has been moved to data1, data2 */
|
WindowMoved, /**< Window has been moved to data1, data2 */
|
||||||
WindowResized, /**< Window has been resized to data1xdata2 */
|
WindowResized, /**< Window has been resized to data1xdata2 */
|
||||||
WindowPixelSizeChanged,/**< The pixel size of the window has changed 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 */
|
WindowMetalViewResized,/**< The pixel size of a Metal view associated with the window has changed */
|
||||||
WindowMinimized, /**< Window has been minimized */
|
WindowMinimized, /**< Window has been minimized */
|
||||||
WindowMaximized, /**< Window has been maximized */
|
WindowMaximized, /**< Window has been maximized */
|
||||||
WindowRestored, /**< Window has been restored to normal size and position */
|
WindowRestored, /**< Window has been restored to normal size and position */
|
||||||
WindowMouseEnter, /**< Window has gained mouse focus */
|
WindowMouseEnter, /**< Window has gained mouse focus */
|
||||||
WindowMouseLeave, /**< Window has lost mouse focus */
|
WindowMouseLeave, /**< Window has lost mouse focus */
|
||||||
WindowFocusGained, /**< Window has gained keyboard focus */
|
WindowFocusGained, /**< Window has gained keyboard focus */
|
||||||
WindowFocusLost, /**< Window has lost keyboard focus */
|
WindowFocusLost, /**< Window has lost keyboard focus */
|
||||||
WindowCloseRequested, /**< The window manager requests that the window be closed */
|
WindowCloseRequested, /**< The window manager requests that the window be closed */
|
||||||
WindowHitTest, /**< Window had a hit test that wasn't SDL_HITTEST_NORMAL */
|
WindowHitTest, /**< Window had a hit test that wasn't SDL_HITTEST_NORMAL */
|
||||||
WindowIccprofChanged, /**< The ICC profile of the window's display has changed */
|
WindowIccprofChanged, /**< The ICC profile of the window's display has changed */
|
||||||
WindowDisplayChanged, /**< Window has been moved to display data1 */
|
WindowDisplayChanged, /**< Window has been moved to display data1 */
|
||||||
WindowDisplayScaleChanged, /**< Window display scale has been changed */
|
WindowDisplayScaleChanged, /**< Window display scale has been changed */
|
||||||
WindowSafeAreaChanged, /**< The window safe area has been changed */
|
WindowSafeAreaChanged, /**< The window safe area has been changed */
|
||||||
WindowOccluded, /**< The window has been occluded */
|
WindowOccluded, /**< The window has been occluded */
|
||||||
WindowEnterFullscreen, /**< The window has entered fullscreen mode */
|
WindowEnterFullscreen, /**< The window has entered fullscreen mode */
|
||||||
WindowLeaveFullscreen, /**< The window has left 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
|
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
|
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 the window. Otherwise, the handle has already been destroyed and all resources
|
||||||
associated with it are invalid */
|
associated with it are invalid */
|
||||||
WindowHdrStateChanged, /**< Window HDR properties have changed */
|
WindowHdrStateChanged, /**< Window HDR properties have changed */
|
||||||
WindowFirst = WindowShown,
|
WindowFirst = WindowShown,
|
||||||
WindowLast = WindowHdrStateChanged,
|
WindowLast = WindowHdrStateChanged,
|
||||||
|
|
||||||
/* Keyboard events */
|
/* Keyboard events */
|
||||||
KeyDown = 0x300, /**< Key pressed */
|
KeyDown = 0x300, /**< Key pressed */
|
||||||
KeyUp, /**< Key released */
|
KeyUp, /**< Key released */
|
||||||
extEditing, /**< Keyboard text editing (composition) */
|
extEditing, /**< Keyboard text editing (composition) */
|
||||||
extInput, /**< Keyboard text input */
|
extInput, /**< Keyboard text input */
|
||||||
KeymapChanged, /**< Keymap changed due to a system event such as an
|
KeymapChanged, /**< Keymap changed due to a system event such as an
|
||||||
input language or keyboard layout change. */
|
input language or keyboard layout change. */
|
||||||
KeyboardAdded, /**< A new keyboard has been inserted into the system */
|
KeyboardAdded, /**< A new keyboard has been inserted into the system */
|
||||||
KeyboardRemoved, /**< A keyboard has been removed */
|
KeyboardRemoved, /**< A keyboard has been removed */
|
||||||
extEditingCandidates, /**< Keyboard text editing candidates */
|
extEditingCandidates, /**< Keyboard text editing candidates */
|
||||||
ScreenKeyboardShown, /**< The on-screen keyboard has been shown */
|
ScreenKeyboardShown, /**< The on-screen keyboard has been shown */
|
||||||
ScreenKeyboardHidden, /**< The on-screen keyboard has been hidden */
|
ScreenKeyboardHidden, /**< The on-screen keyboard has been hidden */
|
||||||
|
|
||||||
/* Mouse events */
|
/* Mouse events */
|
||||||
MouseMotion = 0x400, /**< Mouse moved */
|
MouseMotion = 0x400, /**< Mouse moved */
|
||||||
MouseButtonDown, /**< Mouse button pressed */
|
MouseButtonDown, /**< Mouse button pressed */
|
||||||
MouseButtonUp, /**< Mouse button released */
|
MouseButtonUp, /**< Mouse button released */
|
||||||
MouseWheel, /**< Mouse wheel motion */
|
MouseWheel, /**< Mouse wheel motion */
|
||||||
MouseAdded, /**< A new mouse has been inserted into the system */
|
MouseAdded, /**< A new mouse has been inserted into the system */
|
||||||
MouseRemoved, /**< A mouse has been removed */
|
MouseRemoved, /**< A mouse has been removed */
|
||||||
|
|
||||||
/* Joystick events */
|
/* Joystick events */
|
||||||
JoystickAxisMotion = 0x600, /**< Joystick axis motion */
|
JoystickAxisMotion = 0x600, /**< Joystick axis motion */
|
||||||
JoystickBallMotion, /**< Joystick trackball motion */
|
JoystickBallMotion, /**< Joystick trackball motion */
|
||||||
JoystickHatMotion, /**< Joystick hat position change */
|
JoystickHatMotion, /**< Joystick hat position change */
|
||||||
JoystickButtonDown, /**< Joystick button pressed */
|
JoystickButtonDown, /**< Joystick button pressed */
|
||||||
JoystickButtonUp, /**< Joystick button released */
|
JoystickButtonUp, /**< Joystick button released */
|
||||||
JoystickAdded, /**< A new joystick has been inserted into the system */
|
JoystickAdded, /**< A new joystick has been inserted into the system */
|
||||||
JoystickRemoved, /**< An opened joystick has been removed */
|
JoystickRemoved, /**< An opened joystick has been removed */
|
||||||
JoystickBatteryUpdated, /**< Joystick battery level change */
|
JoystickBatteryUpdated, /**< Joystick battery level change */
|
||||||
JoystickUpdateComplete, /**< Joystick update is complete */
|
JoystickUpdateComplete, /**< Joystick update is complete */
|
||||||
|
|
||||||
/* Gamepad events */
|
/* Gamepad events */
|
||||||
GamepadAxisMotion = 0x650, /**< Gamepad axis motion */
|
GamepadAxisMotion = 0x650, /**< Gamepad axis motion */
|
||||||
GamepadButtonDown, /**< Gamepad button pressed */
|
GamepadButtonDown, /**< Gamepad button pressed */
|
||||||
GamepadButtonUp, /**< Gamepad button released */
|
GamepadButtonUp, /**< Gamepad button released */
|
||||||
GamepadAdded, /**< A new gamepad has been inserted into the system */
|
GamepadAdded, /**< A new gamepad has been inserted into the system */
|
||||||
GamepadRemoved, /**< A gamepad has been removed */
|
GamepadRemoved, /**< A gamepad has been removed */
|
||||||
GamepadRemapped, /**< The gamepad mapping was updated */
|
GamepadRemapped, /**< The gamepad mapping was updated */
|
||||||
GamepadTouchpadDown, /**< Gamepad touchpad was touched */
|
GamepadTouchpadDown, /**< Gamepad touchpad was touched */
|
||||||
GamepadTouchpadMotion, /**< Gamepad touchpad finger was moved */
|
GamepadTouchpadMotion, /**< Gamepad touchpad finger was moved */
|
||||||
GamepadTouchpadUp, /**< Gamepad touchpad finger was lifted */
|
GamepadTouchpadUp, /**< Gamepad touchpad finger was lifted */
|
||||||
GamepadSensorUpdate, /**< Gamepad sensor was updated */
|
GamepadSensorUpdate, /**< Gamepad sensor was updated */
|
||||||
GamepadUpdateComplete, /**< Gamepad update is complete */
|
GamepadUpdateComplete, /**< Gamepad update is complete */
|
||||||
GamepadSteamHandleUpdated, /**< Gamepad Steam handle has changed */
|
GamepadSteamHandleUpdated, /**< Gamepad Steam handle has changed */
|
||||||
|
|
||||||
/* Touch events */
|
/* Touch events */
|
||||||
FingerDown = 0x700,
|
FingerDown = 0x700,
|
||||||
FingerUp,
|
FingerUp,
|
||||||
FingerMotion,
|
FingerMotion,
|
||||||
FingerCanceled,
|
FingerCanceled,
|
||||||
|
|
||||||
/* Pinch events */
|
/* Pinch events */
|
||||||
PinchBegin = 0x710, /**< Pinch gesture started */
|
PinchBegin = 0x710, /**< Pinch gesture started */
|
||||||
PinchUpdate, /**< Pinch gesture updated */
|
PinchUpdate, /**< Pinch gesture updated */
|
||||||
PinchEnd, /**< Pinch gesture ended */
|
PinchEnd, /**< Pinch gesture ended */
|
||||||
|
|
||||||
/* 0x800, 0x801, and 0x802 were the Gesture events from SDL2. Do not reuse these values! sdl2-compat needs them! */
|
/* 0x800, 0x801, and 0x802 were the Gesture events from SDL2. Do not reuse these values! sdl2-compat needs them! */
|
||||||
|
|
||||||
/* Clipboard events */
|
/* Clipboard events */
|
||||||
ClipboardUpdate = 0x900, /**< The clipboard changed */
|
ClipboardUpdate = 0x900, /**< The clipboard changed */
|
||||||
|
|
||||||
/* Drag and drop events */
|
/* Drag and drop events */
|
||||||
DropFile = 0x1000, /**< The system requests a file open */
|
DropFile = 0x1000, /**< The system requests a file open */
|
||||||
DropText, /**< text/plain drag-and-drop event */
|
DropText, /**< text/plain drag-and-drop event */
|
||||||
DropBegin, /**< A new set of drops is beginning (NULL filename) */
|
DropBegin, /**< A new set of drops is beginning (NULL filename) */
|
||||||
DropComplete, /**< Current set of drops is now complete (NULL filename) */
|
DropComplete, /**< Current set of drops is now complete (NULL filename) */
|
||||||
DropPosition, /**< Position while moving over the window */
|
DropPosition, /**< Position while moving over the window */
|
||||||
|
|
||||||
/* Audio hotplug events */
|
/* Audio hotplug events */
|
||||||
AudioDeviceAdded = 0x1100, /**< A new audio device is available */
|
AudioDeviceAdded = 0x1100, /**< A new audio device is available */
|
||||||
AudioDeviceRemoved, /**< An audio device has been removed. */
|
AudioDeviceRemoved, /**< An audio device has been removed. */
|
||||||
AudioDeviceFormatChanged, /**< An audio device's format has been changed by the system. */
|
AudioDeviceFormatChanged, /**< An audio device's format has been changed by the system. */
|
||||||
|
|
||||||
/* Sensor events */
|
/* Sensor events */
|
||||||
SensorUpdate = 0x1200, /**< A sensor was updated */
|
SensorUpdate = 0x1200, /**< A sensor was updated */
|
||||||
|
|
||||||
/* Pressure-sensitive pen events */
|
/* Pressure-sensitive pen events */
|
||||||
PenProximityIn = 0x1300, /**< Pressure-sensitive pen has become available */
|
PenProximityIn = 0x1300, /**< Pressure-sensitive pen has become available */
|
||||||
PenProximityOut, /**< Pressure-sensitive pen has become unavailable */
|
PenProximityOut, /**< Pressure-sensitive pen has become unavailable */
|
||||||
PenDown, /**< Pressure-sensitive pen touched drawing surface */
|
PenDown, /**< Pressure-sensitive pen touched drawing surface */
|
||||||
PenUp, /**< Pressure-sensitive pen stopped touching drawing surface */
|
PenUp, /**< Pressure-sensitive pen stopped touching drawing surface */
|
||||||
PenButtonDown, /**< Pressure-sensitive pen button pressed */
|
PenButtonDown, /**< Pressure-sensitive pen button pressed */
|
||||||
PenButtonUp, /**< Pressure-sensitive pen button released */
|
PenButtonUp, /**< Pressure-sensitive pen button released */
|
||||||
PenMotion, /**< Pressure-sensitive pen is moving on the tablet */
|
PenMotion, /**< Pressure-sensitive pen is moving on the tablet */
|
||||||
PenAxis, /**< Pressure-sensitive pen angle/pressure/etc changed */
|
PenAxis, /**< Pressure-sensitive pen angle/pressure/etc changed */
|
||||||
|
|
||||||
/* Camera hotplug events */
|
/* Camera hotplug events */
|
||||||
CameraDeviceAdded = 0x1400, /**< A new camera device is available */
|
CameraDeviceAdded = 0x1400, /**< A new camera device is available */
|
||||||
CameraDeviceRemoved, /**< A camera device has been removed. */
|
CameraDeviceRemoved, /**< A camera device has been removed. */
|
||||||
CameraDeviceApproved, /**< A camera device has been approved for use by the user. */
|
CameraDeviceApproved, /**< A camera device has been approved for use by the user. */
|
||||||
CameraDeviceDenied, /**< A camera device has been denied for use by the user. */
|
CameraDeviceDenied, /**< A camera device has been denied for use by the user. */
|
||||||
|
|
||||||
/* Render events */
|
/* Render events */
|
||||||
RenderTargetsReset = 0x2000, /**< The render targets have been reset and their contents need to be updated */
|
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 */
|
RenderDeviceReset, /**< The device has been reset and all textures need to be recreated */
|
||||||
RenderDeviceLost, /**< The device has been lost and can't be recovered. */
|
RenderDeviceLost, /**< The device has been lost and can't be recovered. */
|
||||||
|
|
||||||
/* Reserved events for private platforms */
|
/* Reserved events for private platforms */
|
||||||
Private0 = 0x4000,
|
Private0 = 0x4000,
|
||||||
Private1,
|
Private1,
|
||||||
Private2,
|
Private2,
|
||||||
Private3,
|
Private3,
|
||||||
|
|
||||||
/* Internal events */
|
/* 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,
|
/** Events SDL_EVENT_USER through SDL_EVENT_LAST are for your use,
|
||||||
* and should be allocated with SDL_RegisterEvents()
|
* and should be allocated with SDL_RegisterEvents()
|
||||||
*/
|
*/
|
||||||
User = 0x8000,
|
User = 0x8000,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This last event is only for bounding internal arrays
|
* This last event is only for bounding internal arrays
|
||||||
*/
|
*/
|
||||||
Last = 0xFFFF,
|
Last = 0xFFFF,
|
||||||
|
|
||||||
/* This just makes sure the enum is the size of Uint32 */
|
/* 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
|
[AllowDuplicates] public enum EventAction : c_int
|
||||||
{
|
{
|
||||||
Addevent, /**< Add events to the back of the queue. */
|
Addevent, /**< Add events to the back of the queue. */
|
||||||
Peekevent, /**< Check but don't remove events from the queue front. */
|
Peekevent, /**< Check but don't remove events from the queue front. */
|
||||||
Getevent, /**< Retrieve/remove events from the front of the queue. */
|
/**< Retrieve/remove events from the front of the queue. */ Getevent, /**< Retrieve/remove events from the front of the queue. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -204,18 +204,18 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum Folder : c_int
|
[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. */
|
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. */
|
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. */
|
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. */
|
Downloads, /**< Standard folder for user files downloaded from the internet. */
|
||||||
Music, /**< Music files that can be played using a standard music player (mp3, ogg...). */
|
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...). */
|
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. */
|
Publicshare, /**< Files that are meant to be shared with other users on the same computer. */
|
||||||
Savedgames, /**< Save files for games. */
|
Savedgames, /**< Save files for games. */
|
||||||
Screenshots, /**< Application screenshots. */
|
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. */
|
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...). */
|
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. */
|
/**< 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
|
[AllowDuplicates] public enum PathType : c_int
|
||||||
{
|
{
|
||||||
None, /**< path does not exist */
|
None, /**< path does not exist */
|
||||||
File, /**< a normal file */
|
File, /**< a normal file */
|
||||||
Directory, /**< a directory */
|
Directory, /**< a directory */
|
||||||
Other, /**< something completely different like a device node (not a symlink, those are always followed) */
|
/**< 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
|
[AllowDuplicates] public enum EnumerationResult : c_int
|
||||||
{
|
{
|
||||||
Continue, /**< Value that requests that enumeration continue. */
|
Continue, /**< Value that requests that enumeration continue. */
|
||||||
Success, /**< Value that requests that enumeration stop, successfully. */
|
Success, /**< Value that requests that enumeration stop, successfully. */
|
||||||
Failure, /**< Value that requests that enumeration stop, as a failure. */
|
/**< Value that requests that enumeration stop, as a failure. */ Failure, /**< Value that requests that enumeration stop, as a failure. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -120,19 +120,19 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GamepadType : c_int
|
[AllowDuplicates] public enum GamepadType : c_int
|
||||||
{
|
{
|
||||||
Unknown = 0,
|
Unknown = 0,
|
||||||
Standard,
|
Standard,
|
||||||
Xbox360,
|
Xbox360,
|
||||||
Xboxone,
|
Xboxone,
|
||||||
Ps3,
|
Ps3,
|
||||||
Ps4,
|
Ps4,
|
||||||
Ps5,
|
Ps5,
|
||||||
NintendoSwitchPro,
|
NintendoSwitchPro,
|
||||||
NintendoSwitchJoyconLeft,
|
NintendoSwitchJoyconLeft,
|
||||||
NintendoSwitchJoyconRight,
|
NintendoSwitchJoyconRight,
|
||||||
NintendoSwitchJoyconPair,
|
NintendoSwitchJoyconPair,
|
||||||
Gamecube,
|
Gamecube,
|
||||||
Count,
|
Count,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -161,34 +161,34 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GamepadButton : c_int
|
[AllowDuplicates] public enum GamepadButton : c_int
|
||||||
{
|
{
|
||||||
Invalid = -1,
|
Invalid = -1,
|
||||||
South, /**< Bottom face button (e.g. Xbox A button) */
|
South, /**< Bottom face button (e.g. Xbox A button) */
|
||||||
East, /**< Right face button (e.g. Xbox B button) */
|
East, /**< Right face button (e.g. Xbox B button) */
|
||||||
West, /**< Left face button (e.g. Xbox X button) */
|
West, /**< Left face button (e.g. Xbox X button) */
|
||||||
North, /**< Top face button (e.g. Xbox Y button) */
|
North, /**< Top face button (e.g. Xbox Y button) */
|
||||||
Back,
|
Back,
|
||||||
Guide,
|
Guide,
|
||||||
Start,
|
Start,
|
||||||
LeftStick,
|
LeftStick,
|
||||||
RightStick,
|
RightStick,
|
||||||
LeftShoulder,
|
LeftShoulder,
|
||||||
RightShoulder,
|
RightShoulder,
|
||||||
DpadUp,
|
DpadUp,
|
||||||
DpadDown,
|
DpadDown,
|
||||||
DpadLeft,
|
DpadLeft,
|
||||||
DpadRight,
|
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) */
|
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) */
|
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) */
|
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) */
|
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) */
|
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 */
|
Touchpad, /**< PS4/PS5 touchpad button */
|
||||||
Misc2, /**< Additional button */
|
Misc2, /**< Additional button */
|
||||||
Misc3, /**< Additional button (e.g. Nintendo GameCube left trigger click) */
|
Misc3, /**< Additional button (e.g. Nintendo GameCube left trigger click) */
|
||||||
Misc4, /**< Additional button (e.g. Nintendo GameCube right trigger click) */
|
Misc4, /**< Additional button (e.g. Nintendo GameCube right trigger click) */
|
||||||
Misc5, /**< Additional button */
|
Misc5, /**< Additional button */
|
||||||
Misc6, /**< Additional button */
|
Misc6, /**< Additional button */
|
||||||
Count,
|
Count,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -204,15 +204,15 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GamepadButtonLabel : c_int
|
[AllowDuplicates] public enum GamepadButtonLabel : c_int
|
||||||
{
|
{
|
||||||
Unknown,
|
Unknown,
|
||||||
A,
|
A,
|
||||||
B,
|
B,
|
||||||
X,
|
X,
|
||||||
Y,
|
Y,
|
||||||
Cross,
|
Cross,
|
||||||
Circle,
|
Circle,
|
||||||
Square,
|
Square,
|
||||||
Triangle,
|
Triangle,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -231,14 +231,14 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GamepadAxis : c_int
|
[AllowDuplicates] public enum GamepadAxis : c_int
|
||||||
{
|
{
|
||||||
Invalid = -1,
|
Invalid = -1,
|
||||||
Leftx,
|
Leftx,
|
||||||
Lefty,
|
Lefty,
|
||||||
Rightx,
|
Rightx,
|
||||||
Righty,
|
Righty,
|
||||||
LeftTrigger,
|
LeftTrigger,
|
||||||
RightTrigger,
|
RightTrigger,
|
||||||
Count,
|
Count,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -253,10 +253,10 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GamepadBindingType : c_int
|
[AllowDuplicates] public enum GamepadBindingType : c_int
|
||||||
{
|
{
|
||||||
None = 0,
|
None = 0,
|
||||||
Button,
|
Button,
|
||||||
Axis,
|
Axis,
|
||||||
Hat,
|
Hat,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
460
src/SDL_gpu.bf
460
src/SDL_gpu.bf
@@ -630,11 +630,11 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GPUPrimitiveType : c_int
|
[AllowDuplicates] public enum GPUPrimitiveType : c_int
|
||||||
{
|
{
|
||||||
Trianglelist, /**< A series of separate triangles. */
|
Trianglelist, /**< A series of separate triangles. */
|
||||||
Trianglestrip, /**< A series of connected triangles. */
|
Trianglestrip, /**< A series of connected triangles. */
|
||||||
Linelist, /**< A series of separate lines. */
|
Linelist, /**< A series of separate lines. */
|
||||||
Linestrip, /**< A series of connected lines. */
|
Linestrip, /**< A series of connected lines. */
|
||||||
Pointlist, /**< A series of separate points. */
|
/**< A series of separate points. */ Pointlist, /**< A series of separate points. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -647,9 +647,9 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GPULoadOp : c_int
|
[AllowDuplicates] public enum GPULoadOp : c_int
|
||||||
{
|
{
|
||||||
Load, /**< The previous contents of the texture will be preserved. */
|
Load, /**< The previous contents of the texture will be preserved. */
|
||||||
Clear, /**< The contents of the texture will be cleared to a color. */
|
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. */
|
/**< 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
|
[AllowDuplicates] public enum GPUStoreOp : c_int
|
||||||
{
|
{
|
||||||
Store, /**< The contents generated during the render pass 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. */
|
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. */
|
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. */
|
/**< 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
|
[AllowDuplicates] public enum GPUIndexElementSize : c_int
|
||||||
{
|
{
|
||||||
_16bit, /**< The index elements are 16-bit. */
|
_16bit, /**< The index elements are 16-bit. */
|
||||||
_32bit, /**< The index elements are 32-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
|
[AllowDuplicates] public enum GPUTextureFormat : c_int
|
||||||
{
|
{
|
||||||
INVALID,
|
INVALID,
|
||||||
|
|
||||||
/* Unsigned Normalized Float Color Formats */
|
/* Unsigned Normalized Float Color Formats */
|
||||||
A8_UNORM,
|
A8_UNORM,
|
||||||
R8_UNORM,
|
R8_UNORM,
|
||||||
R8G8_UNORM,
|
R8G8_UNORM,
|
||||||
R8G8B8A8_UNORM,
|
R8G8B8A8_UNORM,
|
||||||
R16_UNORM,
|
R16_UNORM,
|
||||||
R16G16_UNORM,
|
R16G16_UNORM,
|
||||||
R16G16B16A16_UNORM,
|
R16G16B16A16_UNORM,
|
||||||
R10G10B10A2_UNORM,
|
R10G10B10A2_UNORM,
|
||||||
B5G6R5_UNORM,
|
B5G6R5_UNORM,
|
||||||
B5G5R5A1_UNORM,
|
B5G5R5A1_UNORM,
|
||||||
B4G4R4A4_UNORM,
|
B4G4R4A4_UNORM,
|
||||||
B8G8R8A8_UNORM,
|
B8G8R8A8_UNORM,
|
||||||
/* Compressed Unsigned Normalized Float Color Formats */
|
/* Compressed Unsigned Normalized Float Color Formats */
|
||||||
BC1_RGBA_UNORM,
|
BC1_RGBA_UNORM,
|
||||||
BC2_RGBA_UNORM,
|
BC2_RGBA_UNORM,
|
||||||
BC3_RGBA_UNORM,
|
BC3_RGBA_UNORM,
|
||||||
BC4_R_UNORM,
|
BC4_R_UNORM,
|
||||||
BC5_RG_UNORM,
|
BC5_RG_UNORM,
|
||||||
BC7_RGBA_UNORM,
|
BC7_RGBA_UNORM,
|
||||||
/* Compressed Signed Float Color Formats */
|
/* Compressed Signed Float Color Formats */
|
||||||
BC6H_RGB_FLOAT,
|
BC6H_RGB_FLOAT,
|
||||||
/* Compressed Unsigned Float Color Formats */
|
/* Compressed Unsigned Float Color Formats */
|
||||||
BC6H_RGB_UFLOAT,
|
BC6H_RGB_UFLOAT,
|
||||||
/* Signed Normalized Float Color Formats */
|
/* Signed Normalized Float Color Formats */
|
||||||
R8_SNORM,
|
R8_SNORM,
|
||||||
R8G8_SNORM,
|
R8G8_SNORM,
|
||||||
R8G8B8A8_SNORM,
|
R8G8B8A8_SNORM,
|
||||||
R16_SNORM,
|
R16_SNORM,
|
||||||
R16G16_SNORM,
|
R16G16_SNORM,
|
||||||
R16G16B16A16_SNORM,
|
R16G16B16A16_SNORM,
|
||||||
/* Signed Float Color Formats */
|
/* Signed Float Color Formats */
|
||||||
R16_FLOAT,
|
R16_FLOAT,
|
||||||
R16G16_FLOAT,
|
R16G16_FLOAT,
|
||||||
R16G16B16A16_FLOAT,
|
R16G16B16A16_FLOAT,
|
||||||
R32_FLOAT,
|
R32_FLOAT,
|
||||||
R32G32_FLOAT,
|
R32G32_FLOAT,
|
||||||
R32G32B32A32_FLOAT,
|
R32G32B32A32_FLOAT,
|
||||||
/* Unsigned Float Color Formats */
|
/* Unsigned Float Color Formats */
|
||||||
R11G11B10_UFLOAT,
|
R11G11B10_UFLOAT,
|
||||||
/* Unsigned Integer Color Formats */
|
/* Unsigned Integer Color Formats */
|
||||||
R8_UINT,
|
R8_UINT,
|
||||||
R8G8_UINT,
|
R8G8_UINT,
|
||||||
R8G8B8A8_UINT,
|
R8G8B8A8_UINT,
|
||||||
R16_UINT,
|
R16_UINT,
|
||||||
R16G16_UINT,
|
R16G16_UINT,
|
||||||
R16G16B16A16_UINT,
|
R16G16B16A16_UINT,
|
||||||
R32_UINT,
|
R32_UINT,
|
||||||
R32G32_UINT,
|
R32G32_UINT,
|
||||||
R32G32B32A32_UINT,
|
R32G32B32A32_UINT,
|
||||||
/* Signed Integer Color Formats */
|
/* Signed Integer Color Formats */
|
||||||
R8_INT,
|
R8_INT,
|
||||||
R8G8_INT,
|
R8G8_INT,
|
||||||
R8G8B8A8_INT,
|
R8G8B8A8_INT,
|
||||||
R16_INT,
|
R16_INT,
|
||||||
R16G16_INT,
|
R16G16_INT,
|
||||||
R16G16B16A16_INT,
|
R16G16B16A16_INT,
|
||||||
R32_INT,
|
R32_INT,
|
||||||
R32G32_INT,
|
R32G32_INT,
|
||||||
R32G32B32A32_INT,
|
R32G32B32A32_INT,
|
||||||
/* SRGB Unsigned Normalized Color Formats */
|
/* SRGB Unsigned Normalized Color Formats */
|
||||||
R8G8B8A8_UNORM_SRGB,
|
R8G8B8A8_UNORM_SRGB,
|
||||||
B8G8R8A8_UNORM_SRGB,
|
B8G8R8A8_UNORM_SRGB,
|
||||||
/* Compressed SRGB Unsigned Normalized Color Formats */
|
/* Compressed SRGB Unsigned Normalized Color Formats */
|
||||||
BC1_RGBA_UNORM_SRGB,
|
BC1_RGBA_UNORM_SRGB,
|
||||||
BC2_RGBA_UNORM_SRGB,
|
BC2_RGBA_UNORM_SRGB,
|
||||||
BC3_RGBA_UNORM_SRGB,
|
BC3_RGBA_UNORM_SRGB,
|
||||||
BC7_RGBA_UNORM_SRGB,
|
BC7_RGBA_UNORM_SRGB,
|
||||||
/* Depth Formats */
|
/* Depth Formats */
|
||||||
D16_UNORM,
|
D16_UNORM,
|
||||||
D24_UNORM,
|
D24_UNORM,
|
||||||
D32_FLOAT,
|
D32_FLOAT,
|
||||||
D24_UNORM_S8_UINT,
|
D24_UNORM_S8_UINT,
|
||||||
D32_FLOAT_S8_UINT,
|
D32_FLOAT_S8_UINT,
|
||||||
/* Compressed ASTC Normalized Float Color Formats*/
|
/* Compressed ASTC Normalized Float Color Formats*/
|
||||||
ASTC_4x4_UNORM,
|
ASTC_4x4_UNORM,
|
||||||
ASTC_5x4_UNORM,
|
ASTC_5x4_UNORM,
|
||||||
ASTC_5x5_UNORM,
|
ASTC_5x5_UNORM,
|
||||||
ASTC_6x5_UNORM,
|
ASTC_6x5_UNORM,
|
||||||
ASTC_6x6_UNORM,
|
ASTC_6x6_UNORM,
|
||||||
ASTC_8x5_UNORM,
|
ASTC_8x5_UNORM,
|
||||||
ASTC_8x6_UNORM,
|
ASTC_8x6_UNORM,
|
||||||
ASTC_8x8_UNORM,
|
ASTC_8x8_UNORM,
|
||||||
ASTC_10x5_UNORM,
|
ASTC_10x5_UNORM,
|
||||||
ASTC_10x6_UNORM,
|
ASTC_10x6_UNORM,
|
||||||
ASTC_10x8_UNORM,
|
ASTC_10x8_UNORM,
|
||||||
ASTC_10x10_UNORM,
|
ASTC_10x10_UNORM,
|
||||||
ASTC_12x10_UNORM,
|
ASTC_12x10_UNORM,
|
||||||
ASTC_12x12_UNORM,
|
ASTC_12x12_UNORM,
|
||||||
/* Compressed SRGB ASTC Normalized Float Color Formats*/
|
/* Compressed SRGB ASTC Normalized Float Color Formats*/
|
||||||
ASTC_4x4_UNORM_SRGB,
|
ASTC_4x4_UNORM_SRGB,
|
||||||
ASTC_5x4_UNORM_SRGB,
|
ASTC_5x4_UNORM_SRGB,
|
||||||
ASTC_5x5_UNORM_SRGB,
|
ASTC_5x5_UNORM_SRGB,
|
||||||
ASTC_6x5_UNORM_SRGB,
|
ASTC_6x5_UNORM_SRGB,
|
||||||
ASTC_6x6_UNORM_SRGB,
|
ASTC_6x6_UNORM_SRGB,
|
||||||
ASTC_8x5_UNORM_SRGB,
|
ASTC_8x5_UNORM_SRGB,
|
||||||
ASTC_8x6_UNORM_SRGB,
|
ASTC_8x6_UNORM_SRGB,
|
||||||
ASTC_8x8_UNORM_SRGB,
|
ASTC_8x8_UNORM_SRGB,
|
||||||
ASTC_10x5_UNORM_SRGB,
|
ASTC_10x5_UNORM_SRGB,
|
||||||
ASTC_10x6_UNORM_SRGB,
|
ASTC_10x6_UNORM_SRGB,
|
||||||
ASTC_10x8_UNORM_SRGB,
|
ASTC_10x8_UNORM_SRGB,
|
||||||
ASTC_10x10_UNORM_SRGB,
|
ASTC_10x10_UNORM_SRGB,
|
||||||
ASTC_12x10_UNORM_SRGB,
|
ASTC_12x10_UNORM_SRGB,
|
||||||
ASTC_12x12_UNORM_SRGB,
|
ASTC_12x12_UNORM_SRGB,
|
||||||
/* Compressed ASTC Signed Float Color Formats*/
|
/* Compressed ASTC Signed Float Color Formats*/
|
||||||
ASTC_4x4_FLOAT,
|
ASTC_4x4_FLOAT,
|
||||||
ASTC_5x4_FLOAT,
|
ASTC_5x4_FLOAT,
|
||||||
ASTC_5x5_FLOAT,
|
ASTC_5x5_FLOAT,
|
||||||
ASTC_6x5_FLOAT,
|
ASTC_6x5_FLOAT,
|
||||||
ASTC_6x6_FLOAT,
|
ASTC_6x6_FLOAT,
|
||||||
ASTC_8x5_FLOAT,
|
ASTC_8x5_FLOAT,
|
||||||
ASTC_8x6_FLOAT,
|
ASTC_8x6_FLOAT,
|
||||||
ASTC_8x8_FLOAT,
|
ASTC_8x8_FLOAT,
|
||||||
ASTC_10x5_FLOAT,
|
ASTC_10x5_FLOAT,
|
||||||
ASTC_10x6_FLOAT,
|
ASTC_10x6_FLOAT,
|
||||||
ASTC_10x8_FLOAT,
|
ASTC_10x8_FLOAT,
|
||||||
ASTC_10x10_FLOAT,
|
ASTC_10x10_FLOAT,
|
||||||
ASTC_12x10_FLOAT,
|
ASTC_12x10_FLOAT,
|
||||||
ASTC_12x12_FLOAT,
|
ASTC_12x12_FLOAT,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -931,11 +931,11 @@ public enum GPUTextureUsageFlags : Uint32
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GPUTextureType : c_int
|
[AllowDuplicates] public enum GPUTextureType : c_int
|
||||||
{
|
{
|
||||||
_2d, /**< The texture is a 2-dimensional image. */
|
_2d, /**< The texture is a 2-dimensional image. */
|
||||||
_2dArray, /**< The texture is a 2-dimensional array image. */
|
_2dArray, /**< The texture is a 2-dimensional array image. */
|
||||||
_3d, /**< The texture is a 3-dimensional image. */
|
_3d, /**< The texture is a 3-dimensional image. */
|
||||||
Cube, /**< The texture is a cube image. */
|
Cube, /**< The texture is a cube image. */
|
||||||
CubeArray, /**< The texture is a cube array 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
|
[AllowDuplicates] public enum GPUSampleCount : c_int
|
||||||
{
|
{
|
||||||
_1, /**< No multisampling. */
|
_1, /**< No multisampling. */
|
||||||
_2, /**< MSAA 2x */
|
_2, /**< MSAA 2x */
|
||||||
_4, /**< MSAA 4x */
|
_4, /**< MSAA 4x */
|
||||||
_8, /**< MSAA 8x */
|
/**< MSAA 8x */ _8, /**< MSAA 8x */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -967,12 +967,12 @@ public enum GPUTextureUsageFlags : Uint32
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GPUCubeMapFace : c_int
|
[AllowDuplicates] public enum GPUCubeMapFace : c_int
|
||||||
{
|
{
|
||||||
Positivex,
|
Positivex,
|
||||||
Negativex,
|
Negativex,
|
||||||
Positivey,
|
Positivey,
|
||||||
Negativey,
|
Negativey,
|
||||||
Positivez,
|
Positivez,
|
||||||
Negativez,
|
Negativez,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1014,8 +1014,8 @@ public enum GPUBufferUsageFlags : Uint32
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GPUTransferBufferUsage : c_int
|
[AllowDuplicates] public enum GPUTransferBufferUsage : c_int
|
||||||
{
|
{
|
||||||
Upload,
|
Upload,
|
||||||
Download,
|
Download,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1027,8 +1027,8 @@ public enum GPUBufferUsageFlags : Uint32
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GPUShaderStage : c_int
|
[AllowDuplicates] public enum GPUShaderStage : c_int
|
||||||
{
|
{
|
||||||
Vertex,
|
Vertex,
|
||||||
Fragment,
|
Fragment,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1060,61 +1060,61 @@ public enum GPUShaderFormat : Uint32
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GPUVertexElementFormat : c_int
|
[AllowDuplicates] public enum GPUVertexElementFormat : c_int
|
||||||
{
|
{
|
||||||
Invalid,
|
Invalid,
|
||||||
|
|
||||||
/* 32-bit Signed Integers */
|
/* 32-bit Signed Integers */
|
||||||
Int,
|
Int,
|
||||||
Int2,
|
Int2,
|
||||||
Int3,
|
Int3,
|
||||||
Int4,
|
Int4,
|
||||||
|
|
||||||
/* 32-bit Unsigned Integers */
|
/* 32-bit Unsigned Integers */
|
||||||
Uint,
|
Uint,
|
||||||
Uint2,
|
Uint2,
|
||||||
Uint3,
|
Uint3,
|
||||||
Uint4,
|
Uint4,
|
||||||
|
|
||||||
/* 32-bit Floats */
|
/* 32-bit Floats */
|
||||||
Float,
|
Float,
|
||||||
Float2,
|
Float2,
|
||||||
Float3,
|
Float3,
|
||||||
Float4,
|
Float4,
|
||||||
|
|
||||||
/* 8-bit Signed Integers */
|
/* 8-bit Signed Integers */
|
||||||
Byte2,
|
Byte2,
|
||||||
Byte4,
|
Byte4,
|
||||||
|
|
||||||
/* 8-bit Unsigned Integers */
|
/* 8-bit Unsigned Integers */
|
||||||
Ubyte2,
|
Ubyte2,
|
||||||
Ubyte4,
|
Ubyte4,
|
||||||
|
|
||||||
/* 8-bit Signed Normalized */
|
/* 8-bit Signed Normalized */
|
||||||
Byte2Norm,
|
Byte2Norm,
|
||||||
Byte4Norm,
|
Byte4Norm,
|
||||||
|
|
||||||
/* 8-bit Unsigned Normalized */
|
/* 8-bit Unsigned Normalized */
|
||||||
Ubyte2Norm,
|
Ubyte2Norm,
|
||||||
Ubyte4Norm,
|
Ubyte4Norm,
|
||||||
|
|
||||||
/* 16-bit Signed Integers */
|
/* 16-bit Signed Integers */
|
||||||
Short2,
|
Short2,
|
||||||
Short4,
|
Short4,
|
||||||
|
|
||||||
/* 16-bit Unsigned Integers */
|
/* 16-bit Unsigned Integers */
|
||||||
Ushort2,
|
Ushort2,
|
||||||
Ushort4,
|
Ushort4,
|
||||||
|
|
||||||
/* 16-bit Signed Normalized */
|
/* 16-bit Signed Normalized */
|
||||||
Short2Norm,
|
Short2Norm,
|
||||||
Short4Norm,
|
Short4Norm,
|
||||||
|
|
||||||
/* 16-bit Unsigned Normalized */
|
/* 16-bit Unsigned Normalized */
|
||||||
Ushort2Norm,
|
Ushort2Norm,
|
||||||
Ushort4Norm,
|
Ushort4Norm,
|
||||||
|
|
||||||
/* 16-bit Floats */
|
/* 16-bit Floats */
|
||||||
Half2,
|
Half2,
|
||||||
Half4,
|
Half4,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1126,8 +1126,8 @@ public enum GPUShaderFormat : Uint32
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GPUVertexInputRate : c_int
|
[AllowDuplicates] public enum GPUVertexInputRate : c_int
|
||||||
{
|
{
|
||||||
Vertex, /**< Attribute addressing is a function of the vertex index. */
|
Vertex, /**< Attribute addressing is a function of the vertex index. */
|
||||||
Instance, /**< Attribute addressing is a function of the instance 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
|
[AllowDuplicates] public enum GPUFillMode : c_int
|
||||||
{
|
{
|
||||||
Fill, /**< Polygons will be rendered via rasterization. */
|
Fill, /**< Polygons will be rendered via rasterization. */
|
||||||
Line, /**< Polygon edges will be drawn as line segments. */
|
/**< 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
|
[AllowDuplicates] public enum GPUCullMode : c_int
|
||||||
{
|
{
|
||||||
None, /**< No triangles are culled. */
|
None, /**< No triangles are culled. */
|
||||||
Front, /**< Front-facing triangles are culled. */
|
Front, /**< Front-facing triangles are culled. */
|
||||||
Back, /**< Back-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
|
[AllowDuplicates] public enum GPUFrontFace : c_int
|
||||||
{
|
{
|
||||||
CounterClockwise, /**< A triangle with counter-clockwise vertex winding will be considered front-facing. */
|
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. */
|
/**< 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
|
[AllowDuplicates] public enum GPUCompareOp : c_int
|
||||||
{
|
{
|
||||||
Invalid,
|
Invalid,
|
||||||
Never, /**< The comparison always evaluates false. */
|
Never, /**< The comparison always evaluates false. */
|
||||||
Less, /**< The comparison evaluates reference < test. */
|
Less, /**< The comparison evaluates reference < test. */
|
||||||
Equal, /**< The comparison evaluates reference == test. */
|
Equal, /**< The comparison evaluates reference == test. */
|
||||||
LessOrEqual, /**< The comparison evaluates reference <= test. */
|
LessOrEqual, /**< The comparison evaluates reference <= test. */
|
||||||
Greater, /**< The comparison evaluates reference > test. */
|
Greater, /**< The comparison evaluates reference > test. */
|
||||||
NotEqual, /**< The comparison evaluates reference != test. */
|
NotEqual, /**< The comparison evaluates reference != test. */
|
||||||
GreaterOrEqual, /**< The comparison evaluates reference >= test. */
|
GreaterOrEqual, /**< The comparison evaluates reference >= test. */
|
||||||
Always, /**< The comparison always evaluates true. */
|
/**< 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
|
[AllowDuplicates] public enum GPUStencilOp : c_int
|
||||||
{
|
{
|
||||||
Invalid,
|
Invalid,
|
||||||
Keep, /**< Keeps the current value. */
|
Keep, /**< Keeps the current value. */
|
||||||
Zero, /**< Sets the value to 0. */
|
Zero, /**< Sets the value to 0. */
|
||||||
Replace, /**< Sets the value to reference. */
|
Replace, /**< Sets the value to reference. */
|
||||||
IncrementAndClamp, /**< Increments the current value and clamps to the maximum value. */
|
IncrementAndClamp, /**< Increments the current value and clamps to the maximum value. */
|
||||||
DecrementAndClamp, /**< Decrements the current value and clamps to 0. */
|
DecrementAndClamp, /**< Decrements the current value and clamps to 0. */
|
||||||
Invert, /**< Bitwise-inverts the current value. */
|
Invert, /**< Bitwise-inverts the current value. */
|
||||||
IncrementAndWrap, /**< Increments the current value and wraps back to 0. */
|
IncrementAndWrap, /**< Increments the current value and wraps back to 0. */
|
||||||
DecrementAndWrap, /**< Decrements the current value and wraps to the maximum value. */
|
/**< 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
|
[AllowDuplicates] public enum GPUBlendOp : c_int
|
||||||
{
|
{
|
||||||
Invalid,
|
Invalid,
|
||||||
Add, /**< (source * source_factor) + (destination * destination_factor) */
|
Add, /**< (source * source_factor) + (destination * destination_factor) */
|
||||||
Subtract, /**< (source * source_factor) - (destination * destination_factor) */
|
Subtract, /**< (source * source_factor) - (destination * destination_factor) */
|
||||||
ReverseSubtract, /**< (destination * destination_factor) - (source * source_factor) */
|
ReverseSubtract, /**< (destination * destination_factor) - (source * source_factor) */
|
||||||
Min, /**< min(source, destination) */
|
Min, /**< min(source, destination) */
|
||||||
Max, /**< max(source, destination) */
|
/**< max(source, destination) */ Max, /**< max(source, destination) */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1246,20 +1246,20 @@ public enum GPUShaderFormat : Uint32
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GPUBlendFactor : c_int
|
[AllowDuplicates] public enum GPUBlendFactor : c_int
|
||||||
{
|
{
|
||||||
Invalid,
|
Invalid,
|
||||||
Zero, /**< 0 */
|
Zero, /**< 0 */
|
||||||
One, /**< 1 */
|
One, /**< 1 */
|
||||||
SrcColor, /**< source color */
|
SrcColor, /**< source color */
|
||||||
OneMinusSrcColor, /**< 1 - source color */
|
OneMinusSrcColor, /**< 1 - source color */
|
||||||
DstColor, /**< destination color */
|
DstColor, /**< destination color */
|
||||||
OneMinusDstColor, /**< 1 - destination color */
|
OneMinusDstColor, /**< 1 - destination color */
|
||||||
SrcAlpha, /**< source alpha */
|
SrcAlpha, /**< source alpha */
|
||||||
OneMinusSrcAlpha, /**< 1 - source alpha */
|
OneMinusSrcAlpha, /**< 1 - source alpha */
|
||||||
DstAlpha, /**< destination alpha */
|
DstAlpha, /**< destination alpha */
|
||||||
OneMinusDstAlpha, /**< 1 - destination alpha */
|
OneMinusDstAlpha, /**< 1 - destination alpha */
|
||||||
ConstantColor, /**< blend constant */
|
ConstantColor, /**< blend constant */
|
||||||
OneMinusConstantColor, /**< 1 - blend constant */
|
OneMinusConstantColor, /**< 1 - blend constant */
|
||||||
SrcAlphaSaturate, /**< min(source alpha, 1 - destination alpha) */
|
/**< 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
|
[AllowDuplicates] public enum GPUFilter : c_int
|
||||||
{
|
{
|
||||||
Nearest, /**< Point filtering. */
|
Nearest, /**< Point filtering. */
|
||||||
Linear, /**< Linear filtering. */
|
/**< Linear filtering. */ Linear, /**< Linear filtering. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1299,8 +1299,8 @@ public enum GPUColorComponentFlags : Uint8
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GPUSamplerMipmapMode : c_int
|
[AllowDuplicates] public enum GPUSamplerMipmapMode : c_int
|
||||||
{
|
{
|
||||||
Nearest, /**< Point filtering. */
|
Nearest, /**< Point filtering. */
|
||||||
Linear, /**< Linear filtering. */
|
/**< Linear filtering. */ Linear, /**< Linear filtering. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1313,9 +1313,9 @@ public enum GPUColorComponentFlags : Uint8
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GPUSamplerAddressMode : c_int
|
[AllowDuplicates] public enum GPUSamplerAddressMode : c_int
|
||||||
{
|
{
|
||||||
Repeat, /**< Specifies that the coordinates will wrap around. */
|
Repeat, /**< Specifies that the coordinates will wrap around. */
|
||||||
MirroredRepeat, /**< Specifies that the coordinates will wrap around mirrored. */
|
MirroredRepeat, /**< Specifies that the coordinates will wrap around mirrored. */
|
||||||
ClampToEdge, /**< Specifies that the coordinates will clamp to the 0-1 range. */
|
/**< 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
|
[AllowDuplicates] public enum GPUPresentMode : c_int
|
||||||
{
|
{
|
||||||
Vsync,
|
Vsync,
|
||||||
Immediate,
|
Immediate,
|
||||||
Mailbox,
|
Mailbox,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1378,10 +1378,10 @@ public enum GPUColorComponentFlags : Uint8
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum GPUSwapchainComposition : c_int
|
[AllowDuplicates] public enum GPUSwapchainComposition : c_int
|
||||||
{
|
{
|
||||||
Sdr,
|
Sdr,
|
||||||
SdrLinear,
|
SdrLinear,
|
||||||
HdrExtendedLinear,
|
HdrExtendedLinear,
|
||||||
Hdr10St2084,
|
Hdr10St2084,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Structures */
|
/* Structures */
|
||||||
|
|||||||
@@ -87,29 +87,29 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum hid_bus_type : c_int {
|
[AllowDuplicates] public enum hid_bus_type : c_int {
|
||||||
/** Unknown bus type */
|
/** Unknown bus type */
|
||||||
ApiBusUnknown = 0x00,
|
ApiBusUnknown = 0x00,
|
||||||
|
|
||||||
/** USB bus
|
/** USB bus
|
||||||
Specifications:
|
Specifications:
|
||||||
https://usb.org/hid */
|
https://usb.org/hid */
|
||||||
ApiBusUsb = 0x01,
|
ApiBusUsb = 0x01,
|
||||||
|
|
||||||
/** Bluetooth or Bluetooth LE bus
|
/** Bluetooth or Bluetooth LE bus
|
||||||
Specifications:
|
Specifications:
|
||||||
https://www.bluetooth.com/specifications/specs/human-interface-device-profile-1-1-1/
|
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-service-1-0/
|
||||||
https://www.bluetooth.com/specifications/specs/hid-over-gatt-profile-1-0/ */
|
https://www.bluetooth.com/specifications/specs/hid-over-gatt-profile-1-0/ */
|
||||||
ApiBusBluetooth = 0x02,
|
ApiBusBluetooth = 0x02,
|
||||||
|
|
||||||
/** I2C bus
|
/** I2C bus
|
||||||
Specifications:
|
Specifications:
|
||||||
https://docs.microsoft.com/previous-versions/windows/hardware/design/dn642101(v=vs.85) */
|
https://docs.microsoft.com/previous-versions/windows/hardware/design/dn642101(v=vs.85) */
|
||||||
ApiBusI2c = 0x03,
|
ApiBusI2c = 0x03,
|
||||||
|
|
||||||
/** SPI bus
|
/** SPI bus
|
||||||
Specifications:
|
Specifications:
|
||||||
https://www.microsoft.com/download/details.aspx?id=103325 */
|
https://www.microsoft.com/download/details.aspx?id=103325 */
|
||||||
ApiBusSpi = 0x04,
|
ApiBusSpi = 0x04,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4771,9 +4771,9 @@ public const let HINT_PEN_TOUCH_EVENTS = "SDL_PEN_TOUCH_EVENTS";
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum HintPriority : c_int
|
[AllowDuplicates] public enum HintPriority : c_int
|
||||||
{
|
{
|
||||||
Default,
|
Default,
|
||||||
Normal,
|
Normal,
|
||||||
Override,
|
Override,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -119,9 +119,9 @@ public enum InitFlags : Uint32
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum AppResult : c_int
|
[AllowDuplicates] public enum AppResult : c_int
|
||||||
{
|
{
|
||||||
Continue, /**< Value that requests that the app continue 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. */
|
Success, /**< Value that requests termination with success from the main callbacks. */
|
||||||
Failure, /**< Value that requests termination with error 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. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -62,12 +62,12 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum IOStatus : c_int
|
[AllowDuplicates] public enum IOStatus : c_int
|
||||||
{
|
{
|
||||||
Ready, /**< Everything is ready (no errors and not EOF). */
|
Ready, /**< Everything is ready (no errors and not EOF). */
|
||||||
Error, /**< Read or write I/O error */
|
Error, /**< Read or write I/O error */
|
||||||
Eof, /**< End of file */
|
Eof, /**< End of file */
|
||||||
NotReady, /**< Non blocking I/O, not ready */
|
NotReady, /**< Non blocking I/O, not ready */
|
||||||
Readonly, /**< Tried to write a read-only buffer */
|
Readonly, /**< Tried to write a read-only buffer */
|
||||||
Writeonly, /**< Tried to read a write-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
|
[AllowDuplicates] public enum IOWhence : c_int
|
||||||
{
|
{
|
||||||
SeekSet, /**< Seek from the beginning of data */
|
SeekSet, /**< Seek from the beginning of data */
|
||||||
SeekCur, /**< Seek relative to current read point */
|
SeekCur, /**< Seek relative to current read point */
|
||||||
SeekEnd, /**< Seek relative to the end of data */
|
/**< Seek relative to the end of data */ SeekEnd, /**< Seek relative to the end of data */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -133,17 +133,17 @@ public typealias JoystickID = Uint32;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum JoystickType : c_int
|
[AllowDuplicates] public enum JoystickType : c_int
|
||||||
{
|
{
|
||||||
Unknown,
|
Unknown,
|
||||||
Gamepad,
|
Gamepad,
|
||||||
Wheel,
|
Wheel,
|
||||||
ArcadeStick,
|
ArcadeStick,
|
||||||
FlightStick,
|
FlightStick,
|
||||||
DancePad,
|
DancePad,
|
||||||
Guitar,
|
Guitar,
|
||||||
DrumKit,
|
DrumKit,
|
||||||
ArcadePad,
|
ArcadePad,
|
||||||
Throttle,
|
Throttle,
|
||||||
Count,
|
Count,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -156,10 +156,10 @@ public typealias JoystickID = Uint32;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum JoystickConnectionState : c_int
|
[AllowDuplicates] public enum JoystickConnectionState : c_int
|
||||||
{
|
{
|
||||||
Invalid = -1,
|
Invalid = -1,
|
||||||
Unknown,
|
Unknown,
|
||||||
Wired,
|
Wired,
|
||||||
Wireless,
|
Wireless,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -400,15 +400,15 @@ public typealias KeyboardID = Uint32;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum TextInputType : c_int
|
[AllowDuplicates] public enum TextInputType : c_int
|
||||||
{
|
{
|
||||||
Text, /**< The input is text */
|
Text, /**< The input is text */
|
||||||
TextName, /**< The input is a person's name */
|
TextName, /**< The input is a person's name */
|
||||||
TextEmail, /**< The input is an e-mail address */
|
TextEmail, /**< The input is an e-mail address */
|
||||||
TextUsername, /**< The input is a username */
|
TextUsername, /**< The input is a username */
|
||||||
TextPasswordHidden, /**< The input is a secure password that is hidden */
|
TextPasswordHidden, /**< The input is a secure password that is hidden */
|
||||||
TextPasswordVisible, /**< The input is a secure password that is visible */
|
TextPasswordVisible, /**< The input is a secure password that is visible */
|
||||||
Number, /**< The input is a number */
|
Number, /**< The input is a number */
|
||||||
NumberPasswordHidden, /**< The input is a secure PIN that is hidden */
|
NumberPasswordHidden, /**< The input is a secure PIN that is hidden */
|
||||||
NumberPasswordVisible, /**< The input is a secure PIN that is visible */
|
/**< 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
|
[AllowDuplicates] public enum Capitalization : c_int
|
||||||
{
|
{
|
||||||
eNone, /**< No auto-capitalization will be done */
|
eNone, /**< No auto-capitalization will be done */
|
||||||
eSentences, /**< The first letter of sentences will be capitalized */
|
eSentences, /**< The first letter of sentences will be capitalized */
|
||||||
eWords, /**< The first letter of words will be capitalized */
|
eWords, /**< The first letter of words will be capitalized */
|
||||||
eLetters, /**< All letters will be capitalized */
|
/**< All letters will be capitalized */ eLetters, /**< All letters will be capitalized */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -99,27 +99,27 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum LogCategory : c_int
|
[AllowDuplicates] public enum LogCategory : c_int
|
||||||
{
|
{
|
||||||
Application,
|
Application,
|
||||||
Error,
|
Error,
|
||||||
Assert,
|
Assert,
|
||||||
System,
|
System,
|
||||||
Audio,
|
Audio,
|
||||||
Video,
|
Video,
|
||||||
Render,
|
Render,
|
||||||
Input,
|
Input,
|
||||||
Test,
|
Test,
|
||||||
Gpu,
|
Gpu,
|
||||||
|
|
||||||
/* Reserved for future SDL library use */
|
/* Reserved for future SDL library use */
|
||||||
Reserved2,
|
Reserved2,
|
||||||
Reserved3,
|
Reserved3,
|
||||||
Reserved4,
|
Reserved4,
|
||||||
Reserved5,
|
Reserved5,
|
||||||
Reserved6,
|
Reserved6,
|
||||||
Reserved7,
|
Reserved7,
|
||||||
Reserved8,
|
Reserved8,
|
||||||
Reserved9,
|
Reserved9,
|
||||||
Reserved10,
|
Reserved10,
|
||||||
|
|
||||||
/* Beyond this point is reserved for application use, e.g.
|
/* Beyond this point is reserved for application use, e.g.
|
||||||
enum {
|
enum {
|
||||||
@@ -129,7 +129,7 @@ extension SDL
|
|||||||
...
|
...
|
||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
Custom,
|
Custom,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -139,15 +139,15 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum LogPriority : c_int
|
[AllowDuplicates] public enum LogPriority : c_int
|
||||||
{
|
{
|
||||||
Invalid,
|
Invalid,
|
||||||
Trace,
|
Trace,
|
||||||
Verbose,
|
Verbose,
|
||||||
Debug,
|
Debug,
|
||||||
Info,
|
Info,
|
||||||
Warn,
|
Warn,
|
||||||
Error,
|
Error,
|
||||||
Critical,
|
Critical,
|
||||||
Count,
|
Count,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -114,12 +114,12 @@ public const let MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT = 0x00000002u;/**< Marks th
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum MessageBoxColorType : c_int
|
[AllowDuplicates] public enum MessageBoxColorType : c_int
|
||||||
{
|
{
|
||||||
Background,
|
Background,
|
||||||
ext,
|
ext,
|
||||||
ButtonBorder,
|
ButtonBorder,
|
||||||
ButtonBackground,
|
ButtonBackground,
|
||||||
ButtonSelected,
|
ButtonSelected,
|
||||||
Count, /**< Size of the colors array of SDL_MessageBoxColorScheme. */
|
/**< Size of the colors array of SDL_MessageBoxColorScheme. */ Count, /**< Size of the colors array of SDL_MessageBoxColorScheme. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
102
src/SDL_mouse.bf
102
src/SDL_mouse.bf
@@ -106,27 +106,27 @@ public typealias MouseID = Uint32;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum SystemCursor : c_int
|
[AllowDuplicates] public enum SystemCursor : c_int
|
||||||
{
|
{
|
||||||
Default, /**< Default cursor. Usually an arrow. */
|
Default, /**< Default cursor. Usually an arrow. */
|
||||||
Text, /**< Text selection. Usually an I-beam. */
|
Text, /**< Text selection. Usually an I-beam. */
|
||||||
Wait, /**< Wait. Usually an hourglass or watch or spinning ball. */
|
Wait, /**< Wait. Usually an hourglass or watch or spinning ball. */
|
||||||
Crosshair, /**< Crosshair. */
|
Crosshair, /**< Crosshair. */
|
||||||
Progress, /**< Program is busy but still interactive. Usually it's WAIT with an arrow. */
|
Progress, /**< Program is busy but still interactive. Usually it's WAIT with an arrow. */
|
||||||
NwseResize, /**< Double arrow pointing northwest and southeast. */
|
NwseResize, /**< Double arrow pointing northwest and southeast. */
|
||||||
NeswResize, /**< Double arrow pointing northeast and southwest. */
|
NeswResize, /**< Double arrow pointing northeast and southwest. */
|
||||||
EwResize, /**< Double arrow pointing west and east. */
|
EwResize, /**< Double arrow pointing west and east. */
|
||||||
NsResize, /**< Double arrow pointing north and south. */
|
NsResize, /**< Double arrow pointing north and south. */
|
||||||
Move, /**< Four pointed arrow pointing north, south, east, and west. */
|
Move, /**< Four pointed arrow pointing north, south, east, and west. */
|
||||||
NotAllowed, /**< Not permitted. Usually a slashed circle or crossbones. */
|
NotAllowed, /**< Not permitted. Usually a slashed circle or crossbones. */
|
||||||
Pointer, /**< Pointer that indicates a link. Usually a pointing hand. */
|
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. */
|
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. */
|
NResize, /**< Window resize top. May be NS_RESIZE. */
|
||||||
NeResize, /**< Window resize top-right. May be NESW_RESIZE. */
|
NeResize, /**< Window resize top-right. May be NESW_RESIZE. */
|
||||||
EResize, /**< Window resize right. May be EW_RESIZE. */
|
EResize, /**< Window resize right. May be EW_RESIZE. */
|
||||||
SeResize, /**< Window resize bottom-right. May be NWSE_RESIZE. */
|
SeResize, /**< Window resize bottom-right. May be NWSE_RESIZE. */
|
||||||
SResize, /**< Window resize bottom. May be NS_RESIZE. */
|
SResize, /**< Window resize bottom. May be NS_RESIZE. */
|
||||||
SwResize, /**< Window resize bottom-left. May be NESW_RESIZE. */
|
SwResize, /**< Window resize bottom-left. May be NESW_RESIZE. */
|
||||||
WResize, /**< Window resize left. May be EW_RESIZE. */
|
WResize, /**< Window resize left. May be EW_RESIZE. */
|
||||||
Count,
|
Count,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -136,8 +136,8 @@ public typealias MouseID = Uint32;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum MouseWheelDirection : c_int
|
[AllowDuplicates] public enum MouseWheelDirection : c_int
|
||||||
{
|
{
|
||||||
Normal, /**< The scroll direction is normal */
|
Normal, /**< The scroll direction is normal */
|
||||||
Flipped, /**< The scroll direction is flipped / natural */
|
/**< 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_GetGlobalMouseState
|
||||||
* \sa SDL_GetRelativeMouseState
|
* \sa SDL_GetRelativeMouseState
|
||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum MouseButtonFlags : Uint32
|
public enum MouseButtonFlags : Uint32
|
||||||
{
|
{
|
||||||
Left = 1,
|
Left = 1 << (1-1),
|
||||||
Middle = 2,
|
Middle = 1 << (2-1),
|
||||||
Right = 3,
|
Right = 1 << (3-1),
|
||||||
X1 = 4,
|
X1 = 1 << (4-1),
|
||||||
X2 = 5,
|
X2 = 1 << (5-1),
|
||||||
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
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A callback used to transform mouse motion delta from raw values.
|
* A callback used to transform mouse motion delta from raw values.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -983,10 +983,10 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum InitStatus : c_int
|
[AllowDuplicates] public enum InitStatus : c_int
|
||||||
{
|
{
|
||||||
Uninitialized,
|
Uninitialized,
|
||||||
Initializing,
|
Initializing,
|
||||||
Initialized,
|
Initialized,
|
||||||
Uninitializing,
|
Uninitializing,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -63,8 +63,8 @@ public const let XR_NULL_HANDLE = 0;
|
|||||||
/* XR_DEFINE_HANDLE */
|
/* XR_DEFINE_HANDLE */
|
||||||
|
|
||||||
[AllowDuplicates] public enum XrStructureType : c_int {
|
[AllowDuplicates] public enum XrStructureType : c_int {
|
||||||
XR_TYPE_SESSION_CREATE_INFO = 8,
|
XR_TYPE_SESSION_CREATE_INFO = 8,
|
||||||
XR_TYPE_SWAPCHAIN_CREATE_INFO = 9,
|
XR_TYPE_SWAPCHAIN_CREATE_INFO = 9,
|
||||||
}
|
}
|
||||||
|
|
||||||
public typealias XrInstance = Uint64;
|
public typealias XrInstance = Uint64;
|
||||||
@@ -82,8 +82,8 @@ public typealias XrSwapchain = Uint64;
|
|||||||
}
|
}
|
||||||
|
|
||||||
[AllowDuplicates] public enum XrResult : c_int {
|
[AllowDuplicates] public enum XrResult : c_int {
|
||||||
XR_ERROR_FUNCTION_UNSUPPORTED = -7,
|
XR_ERROR_FUNCTION_UNSUPPORTED = -7,
|
||||||
XR_ERROR_HANDLE_INVALID = -12,
|
XR_ERROR_HANDLE_INVALID = -12,
|
||||||
}
|
}
|
||||||
|
|
||||||
public typealias PFN_xrGetInstanceProcAddr = SDL.FunctionPointer;
|
public typealias PFN_xrGetInstanceProcAddr = SDL.FunctionPointer;
|
||||||
|
|||||||
@@ -150,14 +150,14 @@ public enum PenInputFlags : Uint32
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum PenAxis : c_int
|
[AllowDuplicates] public enum PenAxis : c_int
|
||||||
{
|
{
|
||||||
Pressure, /**< Pen pressure. Unidirectional: 0 to 1.0 */
|
Pressure, /**< Pen pressure. Unidirectional: 0 to 1.0 */
|
||||||
Xtilt, /**< Pen horizontal tilt angle. Bidirectional: -90.0 to 90.0 (left-to-right). */
|
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). */
|
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 */
|
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). */
|
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 */
|
Slider, /**< Pen finger wheel or slider (e.g., Airbrush Pen). Unidirectional: 0 to 1.0 */
|
||||||
TangentialPressure, /**< Pressure from squeezing the pen ("barrel pressure"). */
|
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! */
|
/**< 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
|
[AllowDuplicates] public enum PenDeviceType : c_int
|
||||||
{
|
{
|
||||||
Invalid = -1, /**< Not a valid pen device. */
|
Invalid = -1, /**< Not a valid pen device. */
|
||||||
Unknown, /**< Don't know specifics of this pen. */
|
Unknown, /**< Don't know specifics of this pen. */
|
||||||
Direct, /**< Pen touches display. */
|
Direct, /**< Pen touches display. */
|
||||||
Indirect, /**< Pen touches something that isn't the display. */
|
/**< Pen touches something that isn't the display. */ Indirect, /**< Pen touches something that isn't the display. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -143,20 +143,20 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum PixelType : c_int
|
[AllowDuplicates] public enum PixelType : c_int
|
||||||
{
|
{
|
||||||
Unknown,
|
Unknown,
|
||||||
Index1,
|
Index1,
|
||||||
Index4,
|
Index4,
|
||||||
Index8,
|
Index8,
|
||||||
Packed8,
|
Packed8,
|
||||||
Packed16,
|
Packed16,
|
||||||
Packed32,
|
Packed32,
|
||||||
Arrayu8,
|
Arrayu8,
|
||||||
Arrayu16,
|
Arrayu16,
|
||||||
Arrayu32,
|
Arrayu32,
|
||||||
Arrayf16,
|
Arrayf16,
|
||||||
Arrayf32,
|
Arrayf32,
|
||||||
/* appended at the end for compatibility with sdl2-compat: */
|
/* 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
|
[AllowDuplicates] public enum BitmapOrder : c_int
|
||||||
{
|
{
|
||||||
None,
|
None,
|
||||||
_4321,
|
_4321,
|
||||||
_1234,
|
_1234,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -178,15 +178,15 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum PackedOrder : c_int
|
[AllowDuplicates] public enum PackedOrder : c_int
|
||||||
{
|
{
|
||||||
None,
|
None,
|
||||||
Xrgb,
|
Xrgb,
|
||||||
Rgbx,
|
Rgbx,
|
||||||
Argb,
|
Argb,
|
||||||
Rgba,
|
Rgba,
|
||||||
Xbgr,
|
Xbgr,
|
||||||
Bgrx,
|
Bgrx,
|
||||||
Abgr,
|
Abgr,
|
||||||
Bgra,
|
Bgra,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -196,13 +196,13 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum ArrayOrder : c_int
|
[AllowDuplicates] public enum ArrayOrder : c_int
|
||||||
{
|
{
|
||||||
None,
|
None,
|
||||||
Rgb,
|
Rgb,
|
||||||
Rgba,
|
Rgba,
|
||||||
Argb,
|
Argb,
|
||||||
Bgr,
|
Bgr,
|
||||||
Bgra,
|
Bgra,
|
||||||
Abgr,
|
Abgr,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -212,15 +212,15 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum PackedLayout : c_int
|
[AllowDuplicates] public enum PackedLayout : c_int
|
||||||
{
|
{
|
||||||
None,
|
None,
|
||||||
_332,
|
_332,
|
||||||
_4444,
|
_4444,
|
||||||
_1555,
|
_1555,
|
||||||
_5551,
|
_5551,
|
||||||
_565,
|
_565,
|
||||||
_8888,
|
_8888,
|
||||||
_2101010,
|
_2101010,
|
||||||
_1010102,
|
_1010102,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -557,148 +557,148 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum PixelFormat : c_int
|
[AllowDuplicates] public enum PixelFormat : c_int
|
||||||
{
|
{
|
||||||
Unknown = 0,
|
Unknown = 0,
|
||||||
Index1lsb = 0x11100100u,
|
Index1lsb = 0x11100100u,
|
||||||
/* SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX1, SDL_BITMAPORDER_4321, 0, 1, 0), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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), */
|
/* 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'), */
|
/* 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'), */
|
/* 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'), */
|
/* 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'), */
|
/* 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'), */
|
/* 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'), */
|
/* 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'), */
|
/* 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'), */
|
/* 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', ' ') */
|
/* SDL_DEFINE_PIXELFOURCC('O', 'E', 'S', ' ') */
|
||||||
|
|
||||||
Mjpg = 0x47504a4du, /**< Motion JPEG */
|
Mjpg = 0x47504a4du, /**< Motion JPEG */
|
||||||
/* SDL_DEFINE_PIXELFOURCC('M', 'J', 'P', 'G') */
|
/* SDL_DEFINE_PIXELFOURCC('M', 'J', 'P', 'G') */
|
||||||
|
|
||||||
/* Aliases for RGBA byte arrays of color data, for the current platform */
|
/* Aliases for RGBA byte arrays of color data, for the current platform */
|
||||||
|
|
||||||
Rgba32 = Rgba8888,
|
Rgba32 = Rgba8888,
|
||||||
Argb32 = Argb8888,
|
Argb32 = Argb8888,
|
||||||
Bgra32 = Bgra8888,
|
Bgra32 = Bgra8888,
|
||||||
Abgr32 = Abgr8888,
|
Abgr32 = Abgr8888,
|
||||||
Rgbx32 = Rgbx8888,
|
Rgbx32 = Rgbx8888,
|
||||||
Xrgb32 = Xrgb8888,
|
Xrgb32 = Xrgb8888,
|
||||||
Bgrx32 = Bgrx8888,
|
Bgrx32 = Bgrx8888,
|
||||||
Xbgr32 = Xbgr8888,
|
Xbgr32 = Xbgr8888,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -718,9 +718,9 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum ColorType : c_int
|
[AllowDuplicates] public enum ColorType : c_int
|
||||||
{
|
{
|
||||||
Unknown = 0,
|
Unknown = 0,
|
||||||
Rgb = 1,
|
Rgb = 1,
|
||||||
Ycbcr = 2,
|
Ycbcr = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -731,9 +731,9 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum ColorRange : c_int
|
[AllowDuplicates] public enum ColorRange : c_int
|
||||||
{
|
{
|
||||||
Unknown = 0,
|
Unknown = 0,
|
||||||
Limited = 1, /**< Narrow range, e.g. 16-235 for 8-bit RGB and luma, and 16-240 for 8-bit chroma */
|
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 */
|
/**< 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
|
[AllowDuplicates] public enum ColorPrimaries : c_int
|
||||||
{
|
{
|
||||||
Unknown = 0,
|
Unknown = 0,
|
||||||
Bt709 = 1, /**< ITU-R BT.709-6 */
|
Bt709 = 1, /**< ITU-R BT.709-6 */
|
||||||
Unspecified = 2,
|
Unspecified = 2,
|
||||||
Bt470m = 4, /**< ITU-R BT.470-6 System M */
|
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 */
|
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 */
|
Bt601 = 6, /**< ITU-R BT.601-7 525, SMPTE 170M */
|
||||||
Smpte240 = 7, /**< SMPTE 240M, functionally the same as SDL_COLOR_PRIMARIES_BT601 */
|
Smpte240 = 7, /**< SMPTE 240M, functionally the same as SDL_COLOR_PRIMARIES_BT601 */
|
||||||
GenericFilm = 8, /**< Generic film (color filters using Illuminant C) */
|
GenericFilm = 8, /**< Generic film (color filters using Illuminant C) */
|
||||||
Bt2020 = 9, /**< ITU-R BT.2020-2 / ITU-R BT.2100-0 */
|
Bt2020 = 9, /**< ITU-R BT.2020-2 / ITU-R BT.2100-0 */
|
||||||
Xyz = 10, /**< SMPTE ST 428-1 */
|
Xyz = 10, /**< SMPTE ST 428-1 */
|
||||||
Smpte431 = 11, /**< SMPTE RP 431-2 */
|
Smpte431 = 11, /**< SMPTE RP 431-2 */
|
||||||
Smpte432 = 12, /**< SMPTE EG 432-1 / DCI P3 */
|
Smpte432 = 12, /**< SMPTE EG 432-1 / DCI P3 */
|
||||||
Ebu3213 = 22, /**< EBU Tech. 3213-E */
|
Ebu3213 = 22, /**< EBU Tech. 3213-E */
|
||||||
Custom = 31,
|
Custom = 31,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -769,25 +769,25 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum TransferCharacteristics : c_int
|
[AllowDuplicates] public enum TransferCharacteristics : c_int
|
||||||
{
|
{
|
||||||
Unknown = 0,
|
Unknown = 0,
|
||||||
Bt709 = 1, /**< Rec. ITU-R BT.709-6 / ITU-R BT1361 */
|
Bt709 = 1, /**< Rec. ITU-R BT.709-6 / ITU-R BT1361 */
|
||||||
Unspecified = 2,
|
Unspecified = 2,
|
||||||
Gamma22 = 4, /**< ITU-R BT.470-6 System M / ITU-R BT1700 625 PAL & SECAM */
|
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 */
|
Gamma28 = 5, /**< ITU-R BT.470-6 System B, G */
|
||||||
Bt601 = 6, /**< SMPTE ST 170M / ITU-R BT.601-7 525 or 625 */
|
Bt601 = 6, /**< SMPTE ST 170M / ITU-R BT.601-7 525 or 625 */
|
||||||
Smpte240 = 7, /**< SMPTE ST 240M */
|
Smpte240 = 7, /**< SMPTE ST 240M */
|
||||||
Linear = 8,
|
Linear = 8,
|
||||||
Log100 = 9,
|
Log100 = 9,
|
||||||
Log100Sqrt10 = 10,
|
Log100Sqrt10 = 10,
|
||||||
Iec61966 = 11, /**< IEC 61966-2-4 */
|
Iec61966 = 11, /**< IEC 61966-2-4 */
|
||||||
Bt1361 = 12, /**< ITU-R BT1361 Extended Colour Gamut */
|
Bt1361 = 12, /**< ITU-R BT1361 Extended Colour Gamut */
|
||||||
Srgb = 13, /**< IEC 61966-2-1 (sRGB or sYCC) */
|
Srgb = 13, /**< IEC 61966-2-1 (sRGB or sYCC) */
|
||||||
Bt202010bit = 14, /**< ITU-R BT2020 for 10-bit system */
|
Bt202010bit = 14, /**< ITU-R BT2020 for 10-bit system */
|
||||||
Bt202012bit = 15, /**< ITU-R BT2020 for 12-bit system */
|
Bt202012bit = 15, /**< ITU-R BT2020 for 12-bit system */
|
||||||
Pq = 16, /**< SMPTE ST 2084 for 10-, 12-, 14- and 16-bit systems */
|
Pq = 16, /**< SMPTE ST 2084 for 10-, 12-, 14- and 16-bit systems */
|
||||||
Smpte428 = 17, /**< SMPTE ST 428-1 */
|
Smpte428 = 17, /**< SMPTE ST 428-1 */
|
||||||
Hlg = 18, /**< ARIB STD-B67, known as "hybrid log-gamma" (HLG) */
|
Hlg = 18, /**< ARIB STD-B67, known as "hybrid log-gamma" (HLG) */
|
||||||
Custom = 31,
|
Custom = 31,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -799,21 +799,21 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum MatrixCoefficients : c_int
|
[AllowDuplicates] public enum MatrixCoefficients : c_int
|
||||||
{
|
{
|
||||||
Identity = 0,
|
Identity = 0,
|
||||||
Bt709 = 1, /**< ITU-R BT.709-6 */
|
Bt709 = 1, /**< ITU-R BT.709-6 */
|
||||||
Unspecified = 2,
|
Unspecified = 2,
|
||||||
Fcc = 4, /**< US FCC Title 47 */
|
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 */
|
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 */
|
Bt601 = 6, /**< ITU-R BT.601-7 525 */
|
||||||
Smpte240 = 7, /**< SMPTE 240M */
|
Smpte240 = 7, /**< SMPTE 240M */
|
||||||
Ycgco = 8,
|
Ycgco = 8,
|
||||||
Bt2020Ncl = 9, /**< ITU-R BT.2020-2 non-constant luminance */
|
Bt2020Ncl = 9, /**< ITU-R BT.2020-2 non-constant luminance */
|
||||||
Bt2020Cl = 10, /**< ITU-R BT.2020-2 constant luminance */
|
Bt2020Cl = 10, /**< ITU-R BT.2020-2 constant luminance */
|
||||||
Smpte2085 = 11, /**< SMPTE ST 2085 */
|
Smpte2085 = 11, /**< SMPTE ST 2085 */
|
||||||
ChromaDerivedNcl = 12,
|
ChromaDerivedNcl = 12,
|
||||||
ChromaDerivedCl = 13,
|
ChromaDerivedCl = 13,
|
||||||
Ictcp = 14, /**< ITU-R BT.2100-0 ICTCP */
|
Ictcp = 14, /**< ITU-R BT.2100-0 ICTCP */
|
||||||
Custom = 31,
|
Custom = 31,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -823,10 +823,10 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum ChromaLocation : c_int
|
[AllowDuplicates] public enum ChromaLocation : c_int
|
||||||
{
|
{
|
||||||
None = 0, /**< RGB, no chroma sampling */
|
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. */
|
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. */
|
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"). */
|
/**< 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
|
[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 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_DEFINE_COLORSPACE(SDL_COLOR_TYPE_RGB,
|
||||||
SDL_COLOR_RANGE_FULL,
|
SDL_COLOR_RANGE_FULL,
|
||||||
SDL_COLOR_PRIMARIES_BT709,
|
SDL_COLOR_PRIMARIES_BT709,
|
||||||
@@ -1032,7 +1032,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
SDL_CHROMA_LOCATION_NONE), */
|
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 */
|
/* 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_DEFINE_COLORSPACE(SDL_COLOR_TYPE_RGB,
|
||||||
SDL_COLOR_RANGE_FULL,
|
SDL_COLOR_RANGE_FULL,
|
||||||
SDL_COLOR_PRIMARIES_BT709,
|
SDL_COLOR_PRIMARIES_BT709,
|
||||||
@@ -1041,7 +1041,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
SDL_CHROMA_LOCATION_NONE), */
|
SDL_CHROMA_LOCATION_NONE), */
|
||||||
|
|
||||||
/* HDR10 is a non-linear HDR colorspace and the default colorspace for 10-bit surfaces */
|
/* 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_DEFINE_COLORSPACE(SDL_COLOR_TYPE_RGB,
|
||||||
SDL_COLOR_RANGE_FULL,
|
SDL_COLOR_RANGE_FULL,
|
||||||
SDL_COLOR_PRIMARIES_BT2020,
|
SDL_COLOR_PRIMARIES_BT2020,
|
||||||
@@ -1049,7 +1049,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
SDL_MATRIX_COEFFICIENTS_IDENTITY,
|
SDL_MATRIX_COEFFICIENTS_IDENTITY,
|
||||||
SDL_CHROMA_LOCATION_NONE), */
|
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_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR,
|
||||||
SDL_COLOR_RANGE_FULL,
|
SDL_COLOR_RANGE_FULL,
|
||||||
SDL_COLOR_PRIMARIES_BT709,
|
SDL_COLOR_PRIMARIES_BT709,
|
||||||
@@ -1057,7 +1057,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
SDL_MATRIX_COEFFICIENTS_BT601,
|
SDL_MATRIX_COEFFICIENTS_BT601,
|
||||||
SDL_CHROMA_LOCATION_NONE), */
|
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_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR,
|
||||||
SDL_COLOR_RANGE_LIMITED,
|
SDL_COLOR_RANGE_LIMITED,
|
||||||
SDL_COLOR_PRIMARIES_BT601,
|
SDL_COLOR_PRIMARIES_BT601,
|
||||||
@@ -1065,7 +1065,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
SDL_MATRIX_COEFFICIENTS_BT601,
|
SDL_MATRIX_COEFFICIENTS_BT601,
|
||||||
SDL_CHROMA_LOCATION_LEFT), */
|
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_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR,
|
||||||
SDL_COLOR_RANGE_FULL,
|
SDL_COLOR_RANGE_FULL,
|
||||||
SDL_COLOR_PRIMARIES_BT601,
|
SDL_COLOR_PRIMARIES_BT601,
|
||||||
@@ -1073,7 +1073,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
SDL_MATRIX_COEFFICIENTS_BT601,
|
SDL_MATRIX_COEFFICIENTS_BT601,
|
||||||
SDL_CHROMA_LOCATION_LEFT), */
|
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_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR,
|
||||||
SDL_COLOR_RANGE_LIMITED,
|
SDL_COLOR_RANGE_LIMITED,
|
||||||
SDL_COLOR_PRIMARIES_BT709,
|
SDL_COLOR_PRIMARIES_BT709,
|
||||||
@@ -1081,7 +1081,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
SDL_MATRIX_COEFFICIENTS_BT709,
|
SDL_MATRIX_COEFFICIENTS_BT709,
|
||||||
SDL_CHROMA_LOCATION_LEFT), */
|
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_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR,
|
||||||
SDL_COLOR_RANGE_FULL,
|
SDL_COLOR_RANGE_FULL,
|
||||||
SDL_COLOR_PRIMARIES_BT709,
|
SDL_COLOR_PRIMARIES_BT709,
|
||||||
@@ -1089,7 +1089,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
SDL_MATRIX_COEFFICIENTS_BT709,
|
SDL_MATRIX_COEFFICIENTS_BT709,
|
||||||
SDL_CHROMA_LOCATION_LEFT), */
|
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_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR,
|
||||||
SDL_COLOR_RANGE_LIMITED,
|
SDL_COLOR_RANGE_LIMITED,
|
||||||
SDL_COLOR_PRIMARIES_BT2020,
|
SDL_COLOR_PRIMARIES_BT2020,
|
||||||
@@ -1097,7 +1097,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
SDL_MATRIX_COEFFICIENTS_BT2020_NCL,
|
SDL_MATRIX_COEFFICIENTS_BT2020_NCL,
|
||||||
SDL_CHROMA_LOCATION_LEFT), */
|
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_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR,
|
||||||
SDL_COLOR_RANGE_FULL,
|
SDL_COLOR_RANGE_FULL,
|
||||||
SDL_COLOR_PRIMARIES_BT2020,
|
SDL_COLOR_PRIMARIES_BT2020,
|
||||||
@@ -1105,8 +1105,8 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
|||||||
SDL_MATRIX_COEFFICIENTS_BT2020_NCL,
|
SDL_MATRIX_COEFFICIENTS_BT2020_NCL,
|
||||||
SDL_CHROMA_LOCATION_LEFT), */
|
SDL_CHROMA_LOCATION_LEFT), */
|
||||||
|
|
||||||
RgbDefault = Srgb, /**< The default colorspace for RGB surfaces if no colorspace is specified */
|
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 */
|
/**< The default colorspace for YUV surfaces if no colorspace is specified */ YuvDefault = Bt601Limited, /**< The default colorspace for YUV surfaces if no colorspace is specified */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -65,12 +65,12 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum PowerState : c_int
|
[AllowDuplicates] public enum PowerState : c_int
|
||||||
{
|
{
|
||||||
Error = -1, /**< error determining power status */
|
Error = -1, /**< error determining power status */
|
||||||
Unknown, /**< cannot determine power status */
|
Unknown, /**< cannot determine power status */
|
||||||
OnBattery, /**< Not plugged in, running on the battery */
|
OnBattery, /**< Not plugged in, running on the battery */
|
||||||
NoBattery, /**< Plugged in, no battery available */
|
NoBattery, /**< Plugged in, no battery available */
|
||||||
Charging, /**< Plugged in, charging battery */
|
Charging, /**< Plugged in, charging battery */
|
||||||
Charged, /**< Plugged in, battery charged */
|
/**< Plugged in, battery charged */ Charged, /**< Plugged in, battery charged */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -159,10 +159,10 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum ProcessIO : c_int
|
[AllowDuplicates] public enum ProcessIO : c_int
|
||||||
{
|
{
|
||||||
StdioInherited, /**< The I/O stream is inherited from the application. */
|
StdioInherited, /**< The I/O stream is inherited from the application. */
|
||||||
StdioNull, /**< The I/O stream is ignored. */
|
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 */
|
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. */
|
/**< The I/O stream is redirected to an existing SDL_IOStream. */ StdioRedirect, /**< The I/O stream is redirected to an existing SDL_IOStream. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -82,12 +82,12 @@ public typealias PropertiesID = Uint32;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum PropertyType : c_int
|
[AllowDuplicates] public enum PropertyType : c_int
|
||||||
{
|
{
|
||||||
Invalid,
|
Invalid,
|
||||||
Pointer,
|
Pointer,
|
||||||
String,
|
String,
|
||||||
Number,
|
Number,
|
||||||
Float,
|
Float,
|
||||||
Boolean,
|
Boolean,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -110,9 +110,9 @@ public const let GPU_RENDERER = "gpu";
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum TextureAccess : c_int
|
[AllowDuplicates] public enum TextureAccess : c_int
|
||||||
{
|
{
|
||||||
Static, /**< Changes rarely, not lockable */
|
Static, /**< Changes rarely, not lockable */
|
||||||
Streaming, /**< Changes frequently, lockable */
|
Streaming, /**< Changes frequently, lockable */
|
||||||
Target, /**< Texture can be used as a render target */
|
/**< 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
|
[AllowDuplicates] public enum TextureAddressMode : c_int
|
||||||
{
|
{
|
||||||
Invalid = -1,
|
Invalid = -1,
|
||||||
Auto, /**< Wrapping is enabled if texture coordinates are outside [0, 1], this is the default */
|
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 */
|
Clamp, /**< Texture coordinates are clamped to the [0, 1] range */
|
||||||
Wrap, /**< The texture is repeated (tiled) */
|
/**< 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
|
[AllowDuplicates] public enum RendererLogicalPresentation : c_int
|
||||||
{
|
{
|
||||||
Disabled, /**< There is no logical size in effect */
|
Disabled, /**< There is no logical size in effect */
|
||||||
Stretch, /**< The rendered content is stretched to the output resolution */
|
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 */
|
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 */
|
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 */
|
/**< 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 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum Scancode : c_int
|
[AllowDuplicates] public enum Scancode : c_int
|
||||||
{
|
{
|
||||||
Unknown = 0,
|
Unknown = 0,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \name Usage page 0x07
|
* \name Usage page 0x07
|
||||||
@@ -70,55 +70,55 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
/* @{ */
|
/* @{ */
|
||||||
|
|
||||||
A = 4,
|
A = 4,
|
||||||
B = 5,
|
B = 5,
|
||||||
C = 6,
|
C = 6,
|
||||||
D = 7,
|
D = 7,
|
||||||
E = 8,
|
E = 8,
|
||||||
F = 9,
|
F = 9,
|
||||||
G = 10,
|
G = 10,
|
||||||
H = 11,
|
H = 11,
|
||||||
I = 12,
|
I = 12,
|
||||||
J = 13,
|
J = 13,
|
||||||
K = 14,
|
K = 14,
|
||||||
L = 15,
|
L = 15,
|
||||||
M = 16,
|
M = 16,
|
||||||
N = 17,
|
N = 17,
|
||||||
O = 18,
|
O = 18,
|
||||||
P = 19,
|
P = 19,
|
||||||
Q = 20,
|
Q = 20,
|
||||||
R = 21,
|
R = 21,
|
||||||
S = 22,
|
S = 22,
|
||||||
T = 23,
|
T = 23,
|
||||||
U = 24,
|
U = 24,
|
||||||
V = 25,
|
V = 25,
|
||||||
W = 26,
|
W = 26,
|
||||||
X = 27,
|
X = 27,
|
||||||
Y = 28,
|
Y = 28,
|
||||||
Z = 29,
|
Z = 29,
|
||||||
|
|
||||||
_1 = 30,
|
_1 = 30,
|
||||||
_2 = 31,
|
_2 = 31,
|
||||||
_3 = 32,
|
_3 = 32,
|
||||||
_4 = 33,
|
_4 = 33,
|
||||||
_5 = 34,
|
_5 = 34,
|
||||||
_6 = 35,
|
_6 = 35,
|
||||||
_7 = 36,
|
_7 = 36,
|
||||||
_8 = 37,
|
_8 = 37,
|
||||||
_9 = 38,
|
_9 = 38,
|
||||||
_0 = 39,
|
_0 = 39,
|
||||||
|
|
||||||
Return = 40,
|
Return = 40,
|
||||||
Escape = 41,
|
Escape = 41,
|
||||||
Backspace = 42,
|
Backspace = 42,
|
||||||
Tab = 43,
|
Tab = 43,
|
||||||
Space = 44,
|
Space = 44,
|
||||||
|
|
||||||
Minus = 45,
|
Minus = 45,
|
||||||
Equals = 46,
|
Equals = 46,
|
||||||
Leftbracket = 47,
|
Leftbracket = 47,
|
||||||
Rightbracket = 48,
|
Rightbracket = 48,
|
||||||
Backslash = 49, /**< Located at the lower left of the return
|
Backslash = 49, /**< Located at the lower left of the return
|
||||||
* key on ISO keyboards and at the right end
|
* key on ISO keyboards and at the right end
|
||||||
* of the QWERTY row on ANSI keyboards.
|
* of the QWERTY row on ANSI keyboards.
|
||||||
* Produces REVERSE SOLIDUS (backslash) and
|
* Produces REVERSE SOLIDUS (backslash) and
|
||||||
@@ -132,7 +132,7 @@ extension SDL
|
|||||||
* layout, and ASTERISK and MICRO SIGN in a
|
* layout, and ASTERISK and MICRO SIGN in a
|
||||||
* French Windows layout.
|
* 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
|
* instead of 49 for the same key, but all
|
||||||
* OSes I've seen treat the two codes
|
* OSes I've seen treat the two codes
|
||||||
* identically. So, as an implementer, unless
|
* identically. So, as an implementer, unless
|
||||||
@@ -144,9 +144,9 @@ extension SDL
|
|||||||
* will never generate it with most (all?)
|
* will never generate it with most (all?)
|
||||||
* keyboards.
|
* keyboards.
|
||||||
*/
|
*/
|
||||||
Semicolon = 51,
|
Semicolon = 51,
|
||||||
Apostrophe = 52,
|
Apostrophe = 52,
|
||||||
Grave = 53, /**< Located in the top left corner (on both ANSI
|
Grave = 53, /**< Located in the top left corner (on both ANSI
|
||||||
* and ISO keyboards). Produces GRAVE ACCENT and
|
* and ISO keyboards). Produces GRAVE ACCENT and
|
||||||
* TILDE in a US Windows layout and in US and UK
|
* TILDE in a US Windows layout and in US and UK
|
||||||
* Mac layouts on ANSI keyboards, GRAVE ACCENT
|
* Mac layouts on ANSI keyboards, GRAVE ACCENT
|
||||||
@@ -163,60 +163,60 @@ extension SDL
|
|||||||
* SIGN in a Swiss German, German, or French Mac
|
* SIGN in a Swiss German, German, or French Mac
|
||||||
* layout on ANSI keyboards.
|
* layout on ANSI keyboards.
|
||||||
*/
|
*/
|
||||||
Comma = 54,
|
Comma = 54,
|
||||||
Period = 55,
|
Period = 55,
|
||||||
Slash = 56,
|
Slash = 56,
|
||||||
|
|
||||||
Capslock = 57,
|
Capslock = 57,
|
||||||
|
|
||||||
F1 = 58,
|
F1 = 58,
|
||||||
F2 = 59,
|
F2 = 59,
|
||||||
F3 = 60,
|
F3 = 60,
|
||||||
F4 = 61,
|
F4 = 61,
|
||||||
F5 = 62,
|
F5 = 62,
|
||||||
F6 = 63,
|
F6 = 63,
|
||||||
F7 = 64,
|
F7 = 64,
|
||||||
F8 = 65,
|
F8 = 65,
|
||||||
F9 = 66,
|
F9 = 66,
|
||||||
F10 = 67,
|
F10 = 67,
|
||||||
F11 = 68,
|
F11 = 68,
|
||||||
F12 = 69,
|
F12 = 69,
|
||||||
|
|
||||||
Printscreen = 70,
|
Printscreen = 70,
|
||||||
Scrolllock = 71,
|
Scrolllock = 71,
|
||||||
Pause = 72,
|
Pause = 72,
|
||||||
Insert = 73, /**< insert on PC, help on some Mac keyboards (but
|
Insert = 73, /**< insert on PC, help on some Mac keyboards (but
|
||||||
does send code 73, not 117) */
|
does send code 73, not 117) */
|
||||||
Home = 74,
|
Home = 74,
|
||||||
Pageup = 75,
|
Pageup = 75,
|
||||||
Delete = 76,
|
Delete = 76,
|
||||||
End = 77,
|
End = 77,
|
||||||
Pagedown = 78,
|
Pagedown = 78,
|
||||||
Right = 79,
|
Right = 79,
|
||||||
Left = 80,
|
Left = 80,
|
||||||
Down = 81,
|
Down = 81,
|
||||||
Up = 82,
|
Up = 82,
|
||||||
|
|
||||||
Numlockclear = 83, /**< num lock on PC, clear on Mac keyboards
|
Numlockclear = 83, /**< num lock on PC, clear on Mac keyboards
|
||||||
*/
|
*/
|
||||||
KpDivide = 84,
|
KpDivide = 84,
|
||||||
KpMultiply = 85,
|
KpMultiply = 85,
|
||||||
KpMinus = 86,
|
KpMinus = 86,
|
||||||
KpPlus = 87,
|
KpPlus = 87,
|
||||||
KpEnter = 88,
|
KpEnter = 88,
|
||||||
Kp1 = 89,
|
Kp1 = 89,
|
||||||
Kp2 = 90,
|
Kp2 = 90,
|
||||||
Kp3 = 91,
|
Kp3 = 91,
|
||||||
Kp4 = 92,
|
Kp4 = 92,
|
||||||
Kp5 = 93,
|
Kp5 = 93,
|
||||||
Kp6 = 94,
|
Kp6 = 94,
|
||||||
Kp7 = 95,
|
Kp7 = 95,
|
||||||
Kp8 = 96,
|
Kp8 = 96,
|
||||||
Kp9 = 97,
|
Kp9 = 97,
|
||||||
Kp0 = 98,
|
Kp0 = 98,
|
||||||
KpPeriod = 99,
|
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,
|
* keyboards have over ANSI ones,
|
||||||
* located between left shift and Z.
|
* located between left shift and Z.
|
||||||
* Produces GRAVE ACCENT and TILDE in a
|
* Produces GRAVE ACCENT and TILDE in a
|
||||||
@@ -226,134 +226,134 @@ extension SDL
|
|||||||
* LESS-THAN SIGN and GREATER-THAN SIGN
|
* LESS-THAN SIGN and GREATER-THAN SIGN
|
||||||
* in a Swiss German, German, or French
|
* in a Swiss German, German, or French
|
||||||
* layout. */
|
* layout. */
|
||||||
Application = 101, /**< windows contextual menu, compose */
|
Application = 101, /**< windows contextual menu, compose */
|
||||||
Power = 102, /**< The USB document says this is a status flag,
|
Power = 102, /**< The USB document says this is a status flag,
|
||||||
* not a physical key - but some Mac keyboards
|
* not a physical key - but some Mac keyboards
|
||||||
* do have a power key. */
|
* do have a power key. */
|
||||||
KpEquals = 103,
|
KpEquals = 103,
|
||||||
F13 = 104,
|
F13 = 104,
|
||||||
F14 = 105,
|
F14 = 105,
|
||||||
F15 = 106,
|
F15 = 106,
|
||||||
F16 = 107,
|
F16 = 107,
|
||||||
F17 = 108,
|
F17 = 108,
|
||||||
F18 = 109,
|
F18 = 109,
|
||||||
F19 = 110,
|
F19 = 110,
|
||||||
F20 = 111,
|
F20 = 111,
|
||||||
F21 = 112,
|
F21 = 112,
|
||||||
F22 = 113,
|
F22 = 113,
|
||||||
F23 = 114,
|
F23 = 114,
|
||||||
F24 = 115,
|
F24 = 115,
|
||||||
Execute = 116,
|
Execute = 116,
|
||||||
Help = 117, /**< AL Integrated Help Center */
|
Help = 117, /**< AL Integrated Help Center */
|
||||||
Menu = 118, /**< Menu (show menu) */
|
Menu = 118, /**< Menu (show menu) */
|
||||||
Select = 119,
|
Select = 119,
|
||||||
Stop = 120, /**< AC Stop */
|
Stop = 120, /**< AC Stop */
|
||||||
Again = 121, /**< AC Redo/Repeat */
|
Again = 121, /**< AC Redo/Repeat */
|
||||||
Undo = 122, /**< AC Undo */
|
Undo = 122, /**< AC Undo */
|
||||||
Cut = 123, /**< AC Cut */
|
Cut = 123, /**< AC Cut */
|
||||||
Copy = 124, /**< AC Copy */
|
Copy = 124, /**< AC Copy */
|
||||||
Paste = 125, /**< AC Paste */
|
Paste = 125, /**< AC Paste */
|
||||||
Find = 126, /**< AC Find */
|
Find = 126, /**< AC Find */
|
||||||
Mute = 127,
|
Mute = 127,
|
||||||
Volumeup = 128,
|
Volumeup = 128,
|
||||||
Volumedown = 129,
|
Volumedown = 129,
|
||||||
/* not sure whether there's a reason to enable these */
|
/* not sure whether there's a reason to enable these */
|
||||||
/* SDL_SCANCODE_LOCKINGCAPSLOCK = 130, */
|
/* SDL_SCANCODE_LOCKINGCAPSLOCK = 130, */
|
||||||
/* SDL_SCANCODE_LOCKINGNUMLOCK = 131, */
|
/* SDL_SCANCODE_LOCKINGNUMLOCK = 131, */
|
||||||
/* SDL_SCANCODE_LOCKINGSCROLLLOCK = 132, */
|
/* SDL_SCANCODE_LOCKINGSCROLLLOCK = 132, */
|
||||||
KpComma = 133,
|
KpComma = 133,
|
||||||
KpEqualsas400 = 134,
|
KpEqualsas400 = 134,
|
||||||
|
|
||||||
International1 = 135, /**< used on Asian keyboards, see
|
International1 = 135, /**< used on Asian keyboards, see
|
||||||
footnotes in USB doc */
|
footnotes in USB doc */
|
||||||
International2 = 136,
|
International2 = 136,
|
||||||
International3 = 137, /**< Yen */
|
International3 = 137, /**< Yen */
|
||||||
International4 = 138,
|
International4 = 138,
|
||||||
International5 = 139,
|
International5 = 139,
|
||||||
International6 = 140,
|
International6 = 140,
|
||||||
International7 = 141,
|
International7 = 141,
|
||||||
International8 = 142,
|
International8 = 142,
|
||||||
International9 = 143,
|
International9 = 143,
|
||||||
Lang1 = 144, /**< Hangul/English toggle */
|
Lang1 = 144, /**< Hangul/English toggle */
|
||||||
Lang2 = 145, /**< Hanja conversion */
|
Lang2 = 145, /**< Hanja conversion */
|
||||||
Lang3 = 146, /**< Katakana */
|
Lang3 = 146, /**< Katakana */
|
||||||
Lang4 = 147, /**< Hiragana */
|
Lang4 = 147, /**< Hiragana */
|
||||||
Lang5 = 148, /**< Zenkaku/Hankaku */
|
Lang5 = 148, /**< Zenkaku/Hankaku */
|
||||||
Lang6 = 149, /**< reserved */
|
Lang6 = 149, /**< reserved */
|
||||||
Lang7 = 150, /**< reserved */
|
Lang7 = 150, /**< reserved */
|
||||||
Lang8 = 151, /**< reserved */
|
Lang8 = 151, /**< reserved */
|
||||||
Lang9 = 152, /**< reserved */
|
Lang9 = 152, /**< reserved */
|
||||||
|
|
||||||
Alterase = 153, /**< Erase-Eaze */
|
Alterase = 153, /**< Erase-Eaze */
|
||||||
Sysreq = 154,
|
Sysreq = 154,
|
||||||
Cancel = 155, /**< AC Cancel */
|
Cancel = 155, /**< AC Cancel */
|
||||||
Clear = 156,
|
Clear = 156,
|
||||||
Prior = 157,
|
Prior = 157,
|
||||||
Return2 = 158,
|
Return2 = 158,
|
||||||
Separator = 159,
|
Separator = 159,
|
||||||
Out = 160,
|
Out = 160,
|
||||||
Oper = 161,
|
Oper = 161,
|
||||||
Clearagain = 162,
|
Clearagain = 162,
|
||||||
Crsel = 163,
|
Crsel = 163,
|
||||||
Exsel = 164,
|
Exsel = 164,
|
||||||
|
|
||||||
Kp00 = 176,
|
Kp00 = 176,
|
||||||
Kp000 = 177,
|
Kp000 = 177,
|
||||||
Thousandsseparator = 178,
|
Thousandsseparator = 178,
|
||||||
Decimalseparator = 179,
|
Decimalseparator = 179,
|
||||||
Currencyunit = 180,
|
Currencyunit = 180,
|
||||||
Currencysubunit = 181,
|
Currencysubunit = 181,
|
||||||
KpLeftparen = 182,
|
KpLeftparen = 182,
|
||||||
KpRightparen = 183,
|
KpRightparen = 183,
|
||||||
KpLeftbrace = 184,
|
KpLeftbrace = 184,
|
||||||
KpRightbrace = 185,
|
KpRightbrace = 185,
|
||||||
KpTab = 186,
|
KpTab = 186,
|
||||||
KpBackspace = 187,
|
KpBackspace = 187,
|
||||||
KpA = 188,
|
KpA = 188,
|
||||||
KpB = 189,
|
KpB = 189,
|
||||||
KpC = 190,
|
KpC = 190,
|
||||||
KpD = 191,
|
KpD = 191,
|
||||||
KpE = 192,
|
KpE = 192,
|
||||||
KpF = 193,
|
KpF = 193,
|
||||||
KpXor = 194,
|
KpXor = 194,
|
||||||
KpPower = 195,
|
KpPower = 195,
|
||||||
KpPercent = 196,
|
KpPercent = 196,
|
||||||
KpLess = 197,
|
KpLess = 197,
|
||||||
KpGreater = 198,
|
KpGreater = 198,
|
||||||
KpAmpersand = 199,
|
KpAmpersand = 199,
|
||||||
KpDblampersand = 200,
|
KpDblampersand = 200,
|
||||||
KpVerticalbar = 201,
|
KpVerticalbar = 201,
|
||||||
KpDblverticalbar = 202,
|
KpDblverticalbar = 202,
|
||||||
KpColon = 203,
|
KpColon = 203,
|
||||||
KpHash = 204,
|
KpHash = 204,
|
||||||
KpSpace = 205,
|
KpSpace = 205,
|
||||||
KpAt = 206,
|
KpAt = 206,
|
||||||
KpExclam = 207,
|
KpExclam = 207,
|
||||||
KpMemstore = 208,
|
KpMemstore = 208,
|
||||||
KpMemrecall = 209,
|
KpMemrecall = 209,
|
||||||
KpMemclear = 210,
|
KpMemclear = 210,
|
||||||
KpMemadd = 211,
|
KpMemadd = 211,
|
||||||
KpMemsubtract = 212,
|
KpMemsubtract = 212,
|
||||||
KpMemmultiply = 213,
|
KpMemmultiply = 213,
|
||||||
KpMemdivide = 214,
|
KpMemdivide = 214,
|
||||||
KpPlusminus = 215,
|
KpPlusminus = 215,
|
||||||
KpClear = 216,
|
KpClear = 216,
|
||||||
KpClearentry = 217,
|
KpClearentry = 217,
|
||||||
KpBinary = 218,
|
KpBinary = 218,
|
||||||
KpOctal = 219,
|
KpOctal = 219,
|
||||||
KpDecimal = 220,
|
KpDecimal = 220,
|
||||||
KpHexadecimal = 221,
|
KpHexadecimal = 221,
|
||||||
|
|
||||||
Lctrl = 224,
|
Lctrl = 224,
|
||||||
Lshift = 225,
|
Lshift = 225,
|
||||||
Lalt = 226, /**< alt, option */
|
Lalt = 226, /**< alt, option */
|
||||||
Lgui = 227, /**< windows, command (apple), meta */
|
Lgui = 227, /**< windows, command (apple), meta */
|
||||||
Rctrl = 228,
|
Rctrl = 228,
|
||||||
Rshift = 229,
|
Rshift = 229,
|
||||||
Ralt = 230, /**< alt gr, option */
|
Ralt = 230, /**< alt gr, option */
|
||||||
Rgui = 231, /**< windows, command (apple), meta */
|
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
|
* by any of the above, but since there's a
|
||||||
* special SDL_KMOD_MODE for it I'm adding it here
|
* special SDL_KMOD_MODE for it I'm adding it here
|
||||||
*/
|
*/
|
||||||
@@ -371,39 +371,39 @@ extension SDL
|
|||||||
*/
|
*/
|
||||||
/* @{ */
|
/* @{ */
|
||||||
|
|
||||||
Sleep = 258, /**< Sleep */
|
Sleep = 258, /**< Sleep */
|
||||||
Wake = 259, /**< Wake */
|
Wake = 259, /**< Wake */
|
||||||
|
|
||||||
ChannelIncrement = 260, /**< Channel Increment */
|
ChannelIncrement = 260, /**< Channel Increment */
|
||||||
ChannelDecrement = 261, /**< Channel Decrement */
|
ChannelDecrement = 261, /**< Channel Decrement */
|
||||||
|
|
||||||
MediaPlay = 262, /**< Play */
|
MediaPlay = 262, /**< Play */
|
||||||
MediaPause = 263, /**< Pause */
|
MediaPause = 263, /**< Pause */
|
||||||
MediaRecord = 264, /**< Record */
|
MediaRecord = 264, /**< Record */
|
||||||
MediaFastForward = 265, /**< Fast Forward */
|
MediaFastForward = 265, /**< Fast Forward */
|
||||||
MediaRewind = 266, /**< Rewind */
|
MediaRewind = 266, /**< Rewind */
|
||||||
MediaNextTrack = 267, /**< Next Track */
|
MediaNextTrack = 267, /**< Next Track */
|
||||||
MediaPreviousTrack = 268, /**< Previous Track */
|
MediaPreviousTrack = 268, /**< Previous Track */
|
||||||
MediaStop = 269, /**< Stop */
|
MediaStop = 269, /**< Stop */
|
||||||
MediaEject = 270, /**< Eject */
|
MediaEject = 270, /**< Eject */
|
||||||
MediaPlayPause = 271, /**< Play / Pause */
|
MediaPlayPause = 271, /**< Play / Pause */
|
||||||
MediaSelect = 272, /* Media Select */
|
MediaSelect = 272, /* Media Select */
|
||||||
|
|
||||||
AcNew = 273, /**< AC New */
|
AcNew = 273, /**< AC New */
|
||||||
AcOpen = 274, /**< AC Open */
|
AcOpen = 274, /**< AC Open */
|
||||||
AcClose = 275, /**< AC Close */
|
AcClose = 275, /**< AC Close */
|
||||||
AcExit = 276, /**< AC Exit */
|
AcExit = 276, /**< AC Exit */
|
||||||
AcSave = 277, /**< AC Save */
|
AcSave = 277, /**< AC Save */
|
||||||
AcPrint = 278, /**< AC Print */
|
AcPrint = 278, /**< AC Print */
|
||||||
AcProperties = 279, /**< AC Properties */
|
AcProperties = 279, /**< AC Properties */
|
||||||
|
|
||||||
AcSearch = 280, /**< AC Search */
|
AcSearch = 280, /**< AC Search */
|
||||||
AcHome = 281, /**< AC Home */
|
AcHome = 281, /**< AC Home */
|
||||||
AcBack = 282, /**< AC Back */
|
AcBack = 282, /**< AC Back */
|
||||||
AcForward = 283, /**< AC Forward */
|
AcForward = 283, /**< AC Forward */
|
||||||
AcStop = 284, /**< AC Stop */
|
AcStop = 284, /**< AC Stop */
|
||||||
AcRefresh = 285, /**< AC Refresh */
|
AcRefresh = 285, /**< AC Refresh */
|
||||||
AcBookmarks = 286, /**< AC Bookmarks */
|
AcBookmarks = 286, /**< AC Bookmarks */
|
||||||
|
|
||||||
/* @} */ /* Usage page 0x0C */
|
/* @} */ /* 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
|
used as a multi-function feature key for selecting
|
||||||
a software defined function shown on the bottom left
|
a software defined function shown on the bottom left
|
||||||
of the display. */
|
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
|
used as a multi-function feature key for selecting
|
||||||
a software defined function shown on the bottom right
|
a software defined function shown on the bottom right
|
||||||
of the display. */
|
of the display. */
|
||||||
Call = 289, /**< Used for accepting phone calls. */
|
Call = 289, /**< Used for accepting phone calls. */
|
||||||
Endcall = 290, /**< Used for rejecting phone calls. */
|
Endcall = 290, /**< Used for rejecting phone calls. */
|
||||||
|
|
||||||
/* @} */ /* Mobile keys */
|
/* @} */ /* Mobile keys */
|
||||||
|
|
||||||
/* Add any other keys here. */
|
/* 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 */
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -141,15 +141,15 @@ public const let STANDARD_GRAVITY = 9.80665f;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum SensorType : c_int
|
[AllowDuplicates] public enum SensorType : c_int
|
||||||
{
|
{
|
||||||
Invalid = -1, /**< Returned for an invalid sensor */
|
Invalid = -1, /**< Returned for an invalid sensor */
|
||||||
Unknown, /**< Unknown sensor type */
|
Unknown, /**< Unknown sensor type */
|
||||||
Accel, /**< Accelerometer */
|
Accel, /**< Accelerometer */
|
||||||
Gyro, /**< Gyroscope */
|
Gyro, /**< Gyroscope */
|
||||||
AccelL, /**< Accelerometer for left Joy-Con controller and Wii nunchuk */
|
AccelL, /**< Accelerometer for left Joy-Con controller and Wii nunchuk */
|
||||||
GyroL, /**< Gyroscope for left Joy-Con controller */
|
GyroL, /**< Gyroscope for left Joy-Con controller */
|
||||||
AccelR, /**< Accelerometer for right Joy-Con controller */
|
AccelR, /**< Accelerometer for right Joy-Con controller */
|
||||||
GyroR, /**< Gyroscope for right Joy-Con controller */
|
GyroR, /**< Gyroscope for right Joy-Con controller */
|
||||||
Count,
|
Count,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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 */
|
/* TODO: include/SDL_stdinc.h:390: error: size of array 'SDL_dummy_enum' is negative */
|
||||||
[AllowDuplicates] public enum DUMMY_ENUM : c_int
|
[AllowDuplicates] public enum DUMMY_ENUM : c_int
|
||||||
{
|
{
|
||||||
DUMMY_ENUM_VALUE,
|
DUMMY_ENUM_VALUE,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -97,10 +97,10 @@ public enum SurfaceFlags : Uint32
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum ScaleMode : c_int
|
[AllowDuplicates] public enum ScaleMode : c_int
|
||||||
{
|
{
|
||||||
Invalid = -1,
|
Invalid = -1,
|
||||||
Nearest, /**< nearest pixel sampling */
|
Nearest, /**< nearest pixel sampling */
|
||||||
Linear, /**< linear filtering */
|
Linear, /**< linear filtering */
|
||||||
Pixelart, /**< nearest pixel sampling with improved scaling for pixel art, available since SDL 3.4.0 */
|
/**< 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
|
[AllowDuplicates] public enum FlipMode : c_int
|
||||||
{
|
{
|
||||||
None, /**< Do not flip */
|
None, /**< Do not flip */
|
||||||
Horizontal, /**< flip horizontally */
|
Horizontal, /**< flip horizontally */
|
||||||
Vertical, /**< flip vertically */
|
Vertical, /**< flip vertically */
|
||||||
HorizontalAndVertical = (Horizontal | Vertical), /**< flip horizontally and vertically (not a diagonal flip) */
|
/**< flip horizontally and vertically (not a diagonal flip) */ HorizontalAndVertical = (Horizontal | Vertical), /**< flip horizontally and vertically (not a diagonal flip) */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -659,11 +659,11 @@ public function bool X11EventHook(void* userdata, XEvent* xevent);
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum Sandbox : c_int
|
[AllowDuplicates] public enum Sandbox : c_int
|
||||||
{
|
{
|
||||||
None = 0,
|
None = 0,
|
||||||
UnknownContainer,
|
UnknownContainer,
|
||||||
Flatpak,
|
Flatpak,
|
||||||
Snap,
|
Snap,
|
||||||
Macos,
|
Macos,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -119,10 +119,10 @@ public typealias TLSID = AtomicInt;
|
|||||||
* \since This enum is available since SDL 3.2.0.
|
* \since This enum is available since SDL 3.2.0.
|
||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum ThreadPriority : c_int {
|
[AllowDuplicates] public enum ThreadPriority : c_int {
|
||||||
Low,
|
Low,
|
||||||
Normal,
|
Normal,
|
||||||
High,
|
High,
|
||||||
TimeCritical,
|
TimeCritical,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -136,10 +136,10 @@ public typealias TLSID = AtomicInt;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum ThreadState : c_int
|
[AllowDuplicates] public enum ThreadState : c_int
|
||||||
{
|
{
|
||||||
Unknown, /**< The thread is not valid */
|
Unknown, /**< The thread is not valid */
|
||||||
Alive, /**< The thread is currently running */
|
Alive, /**< The thread is currently running */
|
||||||
Detached, /**< The thread is detached and can't be waited on */
|
Detached, /**< The thread is detached and can't be waited on */
|
||||||
Complete, /**< The thread has finished and should be cleaned up with SDL_WaitThread() */
|
/**< 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() */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -83,9 +83,9 @@ freely, subject to the following restrictions:
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum DateFormat : c_int
|
[AllowDuplicates] public enum DateFormat : c_int
|
||||||
{
|
{
|
||||||
Yyyymmdd = 0, /**< Year/Month/Day */
|
Yyyymmdd = 0, /**< Year/Month/Day */
|
||||||
Ddmmyyyy = 1, /**< Day/Month/Year */
|
Ddmmyyyy = 1, /**< Day/Month/Year */
|
||||||
Mmddyyyy = 2, /**< Month/Day/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
|
[AllowDuplicates] public enum TimeFormat : c_int
|
||||||
{
|
{
|
||||||
_24hr = 0, /**< 24 hour time */
|
_24hr = 0, /**< 24 hour time */
|
||||||
_12hr = 1, /**< 12 hour time */
|
/**< 12 hour time */ _12hr = 1, /**< 12 hour time */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -92,10 +92,10 @@ public typealias FingerID = Uint64;
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum TouchDeviceType : c_int
|
[AllowDuplicates] public enum TouchDeviceType : c_int
|
||||||
{
|
{
|
||||||
Invalid = -1,
|
Invalid = -1,
|
||||||
Direct, /**< touch screen with window-relative coordinates */
|
Direct, /**< touch screen with window-relative coordinates */
|
||||||
IndirectAbsolute, /**< trackpad with absolute device coordinates */
|
IndirectAbsolute, /**< trackpad with absolute device coordinates */
|
||||||
IndirectRelative, /**< trackpad with screen cursor-relative coordinates */
|
/**< trackpad with screen cursor-relative coordinates */ IndirectRelative, /**< trackpad with screen cursor-relative coordinates */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
110
src/SDL_video.bf
110
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
|
[AllowDuplicates] public enum SystemTheme : c_int
|
||||||
{
|
{
|
||||||
Unknown, /**< Unknown system theme */
|
Unknown, /**< Unknown system theme */
|
||||||
Light, /**< Light colored system theme */
|
Light, /**< Light colored system theme */
|
||||||
Dark, /**< Dark 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
|
[AllowDuplicates] public enum DisplayOrientation : c_int
|
||||||
{
|
{
|
||||||
OrientationUnknown, /**< The display orientation can't be determined */
|
OrientationUnknown, /**< The display orientation can't be determined */
|
||||||
OrientationLandscape, /**< The display is in landscape mode, with the right side up, relative to portrait mode */
|
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 */
|
OrientationLandscapeFlipped, /**< The display is in landscape mode, with the left side up, relative to portrait mode */
|
||||||
OrientationPortrait, /**< The display is in portrait mode */
|
OrientationPortrait, /**< The display is in portrait mode */
|
||||||
OrientationPortraitFlipped, /**< The display is in portrait mode, upside down */
|
/**< 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
|
}[AllowDuplicates] public enum FlashOperation : c_int
|
||||||
{
|
{
|
||||||
Cancel, /**< Cancel any window flash state */
|
Cancel, /**< Cancel any window flash state */
|
||||||
Briefly, /**< Flash the window briefly to get attention */
|
Briefly, /**< Flash the window briefly to get attention */
|
||||||
UntilFocused, /**< Flash the window until it gets focus */
|
/**< 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
|
[AllowDuplicates] public enum ProgressState : c_int
|
||||||
{
|
{
|
||||||
Invalid = -1, /**< An invalid progress state indicating an error; check SDL_GetError() */
|
Invalid = -1, /**< An invalid progress state indicating an error; check SDL_GetError() */
|
||||||
None, /**< No progress bar is shown */
|
None, /**< No progress bar is shown */
|
||||||
Indeterminate, /**< The progress bar is shown in a indeterminate state */
|
Indeterminate, /**< The progress bar is shown in a indeterminate state */
|
||||||
Normal, /**< The progress bar is shown in a normal state */
|
Normal, /**< The progress bar is shown in a normal state */
|
||||||
Paused, /**< The progress bar is shown in a paused 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 */
|
/**< 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
|
[AllowDuplicates] public enum GLAttr : c_int
|
||||||
{
|
{
|
||||||
RedSize, /**< the minimum number of bits for the red channel of the color buffer; defaults to 8. */
|
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. */
|
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. */
|
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. */
|
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. */
|
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. */
|
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. */
|
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. */
|
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. */
|
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. */
|
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. */
|
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. */
|
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. */
|
Stereo, /**< whether the output is stereo 3D; defaults to off. */
|
||||||
Multisamplebuffers, /**< the number of buffers used for multisample anti-aliasing; defaults to 0. */
|
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. */
|
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. */
|
cceleratedVisual, /**< set to 1 to require hardware acceleration, set to 0 to force software rendering; defaults to allow either. */
|
||||||
RetainedBacking, /**< not used (deprecated). */
|
RetainedBacking, /**< not used (deprecated). */
|
||||||
ContextMajorVersion, /**< OpenGL context major version. */
|
ContextMajorVersion, /**< OpenGL context major version. */
|
||||||
ContextMinorVersion, /**< OpenGL context minor version. */
|
ContextMinorVersion, /**< OpenGL context minor version. */
|
||||||
ContextFlags, /**< some combination of 0 or more of elements of the SDL_GLContextFlag enumeration; defaults to 0. */
|
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. */
|
ContextProfileMask, /**< type of GL context (Core, Compatibility, ES). See SDL_GLProfile; default value depends on platform. */
|
||||||
ShareWithCurrentContext, /**< OpenGL context sharing; defaults to 0. */
|
ShareWithCurrentContext, /**< OpenGL context sharing; defaults to 0. */
|
||||||
FramebufferSrgbCapable, /**< requests sRGB capable visual; defaults to 0. */
|
FramebufferSrgbCapable, /**< requests sRGB capable visual; defaults to 0. */
|
||||||
ContextReleaseBehavior, /**< sets context the release behavior. See SDL_GLContextReleaseFlag; defaults to FLUSH. */
|
ContextReleaseBehavior, /**< sets context the release behavior. See SDL_GLContextReleaseFlag; defaults to FLUSH. */
|
||||||
ContextResetNotification, /**< set context reset notification. See SDL_GLContextResetNotification; defaults to NO_NOTIFICATION. */
|
ContextResetNotification, /**< set context reset notification. See SDL_GLContextResetNotification; defaults to NO_NOTIFICATION. */
|
||||||
ContextNoError,
|
ContextNoError,
|
||||||
Floatbuffers,
|
Floatbuffers,
|
||||||
EglPlatform,
|
EglPlatform,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -2781,16 +2781,16 @@ public const let PROP_WINDOW_EMSCRIPTEN_KEYBOARD_ELEMENT_STRING = "SDL.
|
|||||||
*/
|
*/
|
||||||
[AllowDuplicates] public enum HitTestResult : c_int
|
[AllowDuplicates] public enum HitTestResult : c_int
|
||||||
{
|
{
|
||||||
Normal, /**< Region is normal. No special properties. */
|
Normal, /**< Region is normal. No special properties. */
|
||||||
Draggable, /**< Region can drag entire window. */
|
Draggable, /**< Region can drag entire window. */
|
||||||
izeTopleft, /**< Region is the resizable top-left corner border. */
|
izeTopleft, /**< Region is the resizable top-left corner border. */
|
||||||
izeTop, /**< Region is the resizable top border. */
|
izeTop, /**< Region is the resizable top border. */
|
||||||
izeTopright, /**< Region is the resizable top-right corner border. */
|
izeTopright, /**< Region is the resizable top-right corner border. */
|
||||||
izeRight, /**< Region is the resizable right border. */
|
izeRight, /**< Region is the resizable right border. */
|
||||||
izeBottomright, /**< Region is the resizable bottom-right corner border. */
|
izeBottomright, /**< Region is the resizable bottom-right corner border. */
|
||||||
izeBottom, /**< Region is the resizable bottom border. */
|
izeBottom, /**< Region is the resizable bottom border. */
|
||||||
izeBottomleft, /**< Region is the resizable bottom-left corner border. */
|
izeBottomleft, /**< Region is the resizable bottom-left corner border. */
|
||||||
izeLeft, /**< Region is the resizable left border. */
|
/**< Region is the resizable left border. */ izeLeft, /**< Region is the resizable left border. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user