migrate
This commit is contained in:
@@ -1,111 +1,83 @@
|
||||
FileVersion = 1
|
||||
Dependencies = {corlib = "*", corlib = "*"}
|
||||
|
||||
[Project]
|
||||
Name = "SDL3"
|
||||
TargetType = "BeefLib"
|
||||
StartupObject = "SDL3.Program"
|
||||
|
||||
[Dependencies]
|
||||
corlib = "*"
|
||||
corlib = "*"
|
||||
"CxxBuildTool.git" = {Git = "https://git.unicon-gmbh.de/Rune/CxxBuildTool.git"}
|
||||
|
||||
[Configs.Debug.Win32]
|
||||
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.lib"]
|
||||
|
||||
[Configs.Debug.Win64]
|
||||
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.lib"]
|
||||
|
||||
[Configs.Debug.Linux32]
|
||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||
|
||||
[Configs.Debug.Linux64]
|
||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||
|
||||
[Configs.Debug.macOS]
|
||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||
|
||||
[Configs.Debug.wasm]
|
||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "c:\\Projects\\RandomStuff\\Cpp2Beef_dist\\CxxBuilder\\dist\\CxxBuilder.exe *.c */*.c */windows/*.c render/**.c -- \"cflags=-DSDL_PLATFORM_WINDOWS -I$(ProjectDir)/SDL/include -I$(ProjectDir)/SDL/include/build_config -I$(ProjectDir)/SDL/src\" output=SDL3 \"src=$(ProjectDir)/SDL/src\" \"builddir=$(BuildDir)\" target=$(TargetTriple)\""]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||
|
||||
[Configs.Release.Win32]
|
||||
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.lib"]
|
||||
|
||||
[Configs.Release.Win64]
|
||||
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.lib"]
|
||||
|
||||
[Configs.Release.Linux32]
|
||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||
|
||||
[Configs.Release.Linux64]
|
||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||
|
||||
[Configs.Release.macOS]
|
||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||
|
||||
[Configs.Release.wasm]
|
||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "c:\\Projects\\RandomStuff\\Cpp2Beef_dist\\CxxBuilder\\dist\\CxxBuilder.exe *.c */*.c */windows/*.c render/**.c -- \"cflags=-DSDL_PLATFORM_WINDOWS -I$(ProjectDir)/SDL/include -I$(ProjectDir)/SDL/include/build_config -I$(ProjectDir)/SDL/src\" output=SDL3 \"src=$(ProjectDir)/SDL/src\" \"builddir=$(BuildDir)\" target=$(TargetTriple)\""]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||
|
||||
[Configs.Paranoid.Win32]
|
||||
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.lib"]
|
||||
|
||||
[Configs.Paranoid.Win64]
|
||||
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.lib"]
|
||||
|
||||
[Configs.Paranoid.Linux32]
|
||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||
|
||||
[Configs.Paranoid.Linux64]
|
||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||
|
||||
[Configs.Paranoid.macOS]
|
||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||
|
||||
[Configs.Paranoid.wasm]
|
||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "c:\\Projects\\RandomStuff\\Cpp2Beef_dist\\CxxBuilder\\dist\\CxxBuilder.exe *.c */*.c */windows/*.c render/**.c -- \"cflags=-DSDL_PLATFORM_WINDOWS -I$(ProjectDir)/SDL/include -I$(ProjectDir)/SDL/include/build_config -I$(ProjectDir)/SDL/src\" output=SDL3 \"src=$(ProjectDir)/SDL/src\" \"builddir=$(BuildDir)\" target=$(TargetTriple)\""]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||
|
||||
[Configs.Test.Win32]
|
||||
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.lib"]
|
||||
|
||||
[Configs.Test.Win64]
|
||||
LibPaths = ["$(BuildDir)/SDL3.lib"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
PostBuildCmds = ["CopyToDependents(\"$(BuildDir)/SDL3.dll\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.lib"]
|
||||
|
||||
[Configs.Test.Linux32]
|
||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||
|
||||
[Configs.Test.Linux64]
|
||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||
|
||||
[Configs.Test.macOS]
|
||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "Execute(\"$(Var CxxBuilderPath) --cmake -- output=SDL3 \\\"src=$(ProjectDir)/SDL\\\" \\\"builddir=$(BuildDir)\\\" target=$(TargetTriple) config=$(Configuration)\")"]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||
|
||||
[Configs.Test.wasm]
|
||||
LibPaths = ["$(BuildDir)/SDL3.a"]
|
||||
PreBuildCmds = ["ReadFile(\"$(ProjectDir)/CxxBuilderPath.txt\", \"CxxBuilderPath\")", "c:\\Projects\\RandomStuff\\Cpp2Beef_dist\\CxxBuilder\\dist\\CxxBuilder.exe *.c */*.c */windows/*.c render/**.c -- \"cflags=-DSDL_PLATFORM_WINDOWS -I$(ProjectDir)/SDL/include -I$(ProjectDir)/SDL/include/build_config -I$(ProjectDir)/SDL/src\" output=SDL3 \"src=$(ProjectDir)/SDL/src\" \"builddir=$(BuildDir)\" target=$(TargetTriple)\""]
|
||||
LibPaths = ["$(BuildDir)/SDL3-static.a"]
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
FileVersion = 1
|
||||
Projects = {SDL3 = {Path = "."}}
|
||||
ExtraPlatforms = ["Linux32", "Linux64", "macOS", "wasm"]
|
||||
|
||||
[Workspace]
|
||||
StartupProject = "SDL3"
|
||||
|
||||
[Projects]
|
||||
SDL3 = {Path = "."}
|
||||
"CxxBuildTool.git" = {Git = "https://git.unicon-gmbh.de/Rune/CxxBuildTool.git"}
|
||||
|
||||
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
|
||||
Dependencies = {corlib = "*", "Cpp2Beef.git" = {Git = "https://git.unicon-gmbh.de/BeefBindings/Cpp2Beef.git"}}
|
||||
|
||||
[Project]
|
||||
Name = "SDL3.Setup"
|
||||
StartupObject = "SDL3.Setup.Program"
|
||||
|
||||
[Configs.Debug.Win32]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Debug.Win64]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/CxxBuilderPath.txt $(WorkspaceDir)/../CxxBuilderPath.txt"]
|
||||
|
||||
[Configs.Debug.Linux32]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Debug.Linux64]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Debug.macOS]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Release.Win32]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Release.Win64]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Release.Linux32]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Release.Linux64]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Release.macOS]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Paranoid.Win32]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Paranoid.Win64]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Paranoid.Linux32]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Paranoid.Linux64]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Paranoid.macOS]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Test.Win32]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Test.Win64]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Test.Linux32]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Test.Linux64]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
|
||||
[Configs.Test.macOS]
|
||||
PostBuildCmds = ["cp $(ProjectDir Cpp2Beef)/CxxBuilder/dist/SetCxxBuilderExe.beefscript $(WorkspaceDir)/../SetCxxBuilderExe.beefscript"]
|
||||
[Dependencies]
|
||||
corlib = "*"
|
||||
"Cpp2Beef.git" = {Git = "https://git.unicon-gmbh.de/Rune/Cpp2Beef.git"}
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
FileVersion = 1
|
||||
Projects = {"SDL3.Setup" = {Path = "."}, "Clang-C.git" = {Git = "https://git.unicon-gmbh.de/BeefBindings/Clang-C.git"}, "Cpp2Beef.git" = {Git = "https://git.unicon-gmbh.de/BeefBindings/Cpp2Beef.git"}}
|
||||
ExtraPlatforms = ["Linux32", "Linux64", "macOS"]
|
||||
|
||||
[Workspace]
|
||||
StartupProject = "SDL3.Setup"
|
||||
|
||||
[Projects]
|
||||
"SDL3.Setup" = {Path = "."}
|
||||
"Clang-C.git" = {Git = "https://git.unicon-gmbh.de/BeefBindings/Clang-C.git"}
|
||||
"Cpp2Beef.git" = {Git = "https://git.unicon-gmbh.de/Rune/Cpp2Beef.git"}
|
||||
|
||||
@@ -162,7 +162,6 @@ class SDL3Generator : Cpp2BeefGenerator, this(Span<char8*> args)
|
||||
}
|
||||
|
||||
BeginCursor(cursor);
|
||||
if (spelling == "Button") str.Append("[AllowDuplicates] ");
|
||||
AccessSpecifier(cursor);
|
||||
str.Append("enum ");
|
||||
GetNameInBindings(cursor, str);
|
||||
@@ -179,6 +178,7 @@ class SDL3Generator : Cpp2BeefGenerator, this(Span<char8*> args)
|
||||
fileInfo.queuedTokens = .None;
|
||||
}
|
||||
bool isSDL_GLContextFlag = spelling == "GlContext";
|
||||
bool isSDL_MouseButtonFlags = spelling == "Button";
|
||||
{
|
||||
BeginBody!(cursor);
|
||||
for (let macro in this.[Friend]unitMacros)
|
||||
@@ -197,6 +197,11 @@ class SDL3Generator : Cpp2BeefGenerator, this(Span<char8*> args)
|
||||
continue;
|
||||
macroSpelling.RemoveFromEnd(5);
|
||||
}
|
||||
if (isSDL_MouseButtonFlags && macroSpelling.EndsWith("MASK"))
|
||||
{
|
||||
@macro.Remove();
|
||||
continue;
|
||||
}
|
||||
macroSpelling.RemoveFromStart(prefix.Length);
|
||||
BeginCursor(macroCursor);
|
||||
FixCurly();
|
||||
@@ -205,7 +210,9 @@ class SDL3Generator : Cpp2BeefGenerator, this(Span<char8*> args)
|
||||
let tokens = ScopeTokenize!(macroCursor, unit);
|
||||
AllWhiteSpaceBetween(Clang.GetRangeEnd(Clang.GetTokenExtent(unit, tokens[0])), Clang.GetRangeStart(Clang.GetTokenExtent(unit, tokens[1])));
|
||||
str.Append("= ");
|
||||
if (isSDL_MouseButtonFlags) str.Append("1 << (");
|
||||
WriteTokens(tokens[1...], Clang.GetNullLocation(), .Punctuation);
|
||||
if (isSDL_MouseButtonFlags) str.Append("-1)");
|
||||
str.Append(',');
|
||||
@macro.Remove();
|
||||
WriteComments(Clang.GetCursorLocation(macroCursor));
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using CxxBuildTool;
|
||||
|
||||
namespace SDL3;
|
||||
|
||||
@@ -10,7 +11,12 @@ static class SDL
|
||||
typealias CrcUint32 = Uint32;
|
||||
typealias CrcUint8 = Uint8;
|
||||
|
||||
private static Uint32 BUTTON_MASK(MouseButtonFlags X) => (.)(1u << (((Uint32)X)-1));
|
||||
[OnCompile(.TypeDone)]
|
||||
private static void Build()
|
||||
{
|
||||
if (!Compiler.IsBuilding) return;
|
||||
CxxBuildTool.CMake(Compiler.ProjectDir + "/SDL", Compiler.BuildDir + "/" + Compiler.ProjectName, "-DSDL_STATIC=ON -DSDL_SHARED=OFF -DSDL_TESTS=OFF");
|
||||
}
|
||||
}
|
||||
|
||||
static class SDLTest
|
||||
|
||||
@@ -319,7 +319,7 @@ public const let NULL_WHILE_LOOP_CONDITION = (0,0);
|
||||
Break, /**< Make the debugger trigger a breakpoint. */
|
||||
Abort, /**< Terminate the program. */
|
||||
Ignore, /**< Ignore the assert. */
|
||||
AlwaysIgnore, /**< Ignore the assert from now on. */
|
||||
/**< Ignore the assert from now on. */ AlwaysIgnore, /**< Ignore the assert from now on. */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -142,7 +142,7 @@ extension SDL
|
||||
{
|
||||
Read, /**< A read operation. */
|
||||
Write, /**< A write operation. */
|
||||
Close, /**< A close operation. */
|
||||
/**< A close operation. */ Close, /**< A close operation. */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -154,7 +154,7 @@ extension SDL
|
||||
{
|
||||
Complete, /**< request was completed without error */
|
||||
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. */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -90,7 +90,7 @@ public enum BlendMode : Uint32
|
||||
Subtract = 0x2, /**< src - dst : supported by D3D, OpenGL, OpenGLES, and Vulkan */
|
||||
RevSubtract = 0x3, /**< dst - src : supported by D3D, OpenGL, OpenGLES, and Vulkan */
|
||||
Minimum = 0x4, /**< min(dst, src) : supported by D3D, OpenGL, OpenGLES, and Vulkan */
|
||||
Maximum = 0x5, /**< max(dst, src) : supported by D3D, OpenGL, OpenGLES, and Vulkan */
|
||||
/**< max(dst, src) : supported by D3D, OpenGL, OpenGLES, and Vulkan */ Maximum = 0x5, /**< max(dst, src) : supported by D3D, OpenGL, OpenGLES, and Vulkan */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -114,7 +114,7 @@ public enum BlendMode : Uint32
|
||||
DstColor = 0x7, /**< dstR, dstG, dstB, dstA */
|
||||
OneMinusDstColor = 0x8, /**< 1-dstR, 1-dstG, 1-dstB, 1-dstA */
|
||||
DstAlpha = 0x9, /**< dstA, dstA, dstA, dstA */
|
||||
OneMinusDstAlpha = 0xA, /**< 1-dstA, 1-dstA, 1-dstA, 1-dstA */
|
||||
/**< 1-dstA, 1-dstA, 1-dstA, 1-dstA */ OneMinusDstAlpha = 0xA, /**< 1-dstA, 1-dstA, 1-dstA, 1-dstA */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1120,7 +1120,7 @@ extension SDL
|
||||
{
|
||||
Addevent, /**< Add events to the back of the queue. */
|
||||
Peekevent, /**< Check but don't remove events from the queue front. */
|
||||
Getevent, /**< Retrieve/remove events from the front of the queue. */
|
||||
/**< Retrieve/remove events from the front of the queue. */ Getevent, /**< Retrieve/remove events from the front of the queue. */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -215,7 +215,7 @@ extension SDL
|
||||
Screenshots, /**< Application screenshots. */
|
||||
Templates, /**< Template files to be used when the user requests the desktop environment to create a new file in a certain folder, such as "New Text File.txt". Any file in the Templates folder can be used as a starting point for a new file. */
|
||||
Videos, /**< Video files that can be played using a standard video player (mp4, webm...). */
|
||||
Count, /**< Total number of types in this enum, not a folder type by itself. */
|
||||
/**< 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. */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -263,7 +263,7 @@ extension SDL
|
||||
None, /**< path does not exist */
|
||||
File, /**< a normal file */
|
||||
Directory, /**< a directory */
|
||||
Other, /**< something completely different like a device node (not a symlink, those are always followed) */
|
||||
/**< 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) */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -343,7 +343,7 @@ public enum GlobFlags : Uint32
|
||||
{
|
||||
Continue, /**< Value that requests that enumeration continue. */
|
||||
Success, /**< Value that requests that enumeration stop, successfully. */
|
||||
Failure, /**< Value that requests that enumeration stop, as a failure. */
|
||||
/**< Value that requests that enumeration stop, as a failure. */ Failure, /**< Value that requests that enumeration stop, as a failure. */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -634,7 +634,7 @@ extension SDL
|
||||
Trianglestrip, /**< A series of connected triangles. */
|
||||
Linelist, /**< A series of separate lines. */
|
||||
Linestrip, /**< A series of connected lines. */
|
||||
Pointlist, /**< A series of separate points. */
|
||||
/**< A series of separate points. */ Pointlist, /**< A series of separate points. */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -649,7 +649,7 @@ extension SDL
|
||||
{
|
||||
Load, /**< The previous contents of the texture will be preserved. */
|
||||
Clear, /**< The contents of the texture will be cleared to a color. */
|
||||
DontCare, /**< The previous contents of the texture need not be preserved. The contents will be undefined. */
|
||||
/**< 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. */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -665,7 +665,7 @@ extension SDL
|
||||
Store, /**< The contents generated during the render pass will be written to memory. */
|
||||
DontCare, /**< The contents generated during the render pass are not needed and may be discarded. The contents will be undefined. */
|
||||
Resolve, /**< The multisample contents generated during the render pass will be resolved to a non-multisample texture. The contents in the multisample texture may then be discarded and will be undefined. */
|
||||
ResolveAndStore, /**< The multisample contents generated during the render pass will be resolved to a non-multisample texture. The contents in the multisample texture will be written to memory. */
|
||||
/**< 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. */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -678,7 +678,7 @@ extension SDL
|
||||
[AllowDuplicates] public enum GPUIndexElementSize : c_int
|
||||
{
|
||||
_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. */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -935,7 +935,7 @@ public enum GPUTextureUsageFlags : Uint32
|
||||
_2dArray, /**< The texture is a 2-dimensional array image. */
|
||||
_3d, /**< The texture is a 3-dimensional image. */
|
||||
Cube, /**< The texture is a cube image. */
|
||||
CubeArray, /**< The texture is a cube array image. */
|
||||
/**< The texture is a cube array image. */ CubeArray, /**< The texture is a cube array image. */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -954,7 +954,7 @@ public enum GPUTextureUsageFlags : Uint32
|
||||
_1, /**< No multisampling. */
|
||||
_2, /**< MSAA 2x */
|
||||
_4, /**< MSAA 4x */
|
||||
_8, /**< MSAA 8x */
|
||||
/**< MSAA 8x */ _8, /**< MSAA 8x */
|
||||
}
|
||||
|
||||
|
||||
@@ -1127,7 +1127,7 @@ public enum GPUShaderFormat : Uint32
|
||||
[AllowDuplicates] public enum GPUVertexInputRate : c_int
|
||||
{
|
||||
Vertex, /**< Attribute addressing is a function of the vertex index. */
|
||||
Instance, /**< Attribute addressing is a function of the instance index. */
|
||||
/**< Attribute addressing is a function of the instance index. */ Instance, /**< Attribute addressing is a function of the instance index. */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1140,7 +1140,7 @@ public enum GPUShaderFormat : Uint32
|
||||
[AllowDuplicates] public enum GPUFillMode : c_int
|
||||
{
|
||||
Fill, /**< Polygons will be rendered via rasterization. */
|
||||
Line, /**< Polygon edges will be drawn as line segments. */
|
||||
/**< Polygon edges will be drawn as line segments. */ Line, /**< Polygon edges will be drawn as line segments. */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1154,7 +1154,7 @@ public enum GPUShaderFormat : Uint32
|
||||
{
|
||||
None, /**< No 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. */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1168,7 +1168,7 @@ public enum GPUShaderFormat : Uint32
|
||||
[AllowDuplicates] public enum GPUFrontFace : c_int
|
||||
{
|
||||
CounterClockwise, /**< A triangle with counter-clockwise vertex winding will be considered front-facing. */
|
||||
Clockwise, /**< A triangle with clockwise vertex winding will be considered front-facing. */
|
||||
/**< A triangle with clockwise vertex winding will be considered front-facing. */ Clockwise, /**< A triangle with clockwise vertex winding will be considered front-facing. */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1188,7 +1188,7 @@ public enum GPUShaderFormat : Uint32
|
||||
Greater, /**< The comparison evaluates reference > test. */
|
||||
NotEqual, /**< 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. */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1209,7 +1209,7 @@ public enum GPUShaderFormat : Uint32
|
||||
DecrementAndClamp, /**< Decrements the current value and clamps to 0. */
|
||||
Invert, /**< Bitwise-inverts the current value. */
|
||||
IncrementAndWrap, /**< Increments the current value and wraps back to 0. */
|
||||
DecrementAndWrap, /**< Decrements the current value and wraps to the maximum value. */
|
||||
/**< Decrements the current value and wraps to the maximum value. */ DecrementAndWrap, /**< Decrements the current value and wraps to the maximum value. */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1230,7 +1230,7 @@ public enum GPUShaderFormat : Uint32
|
||||
Subtract, /**< (source * source_factor) - (destination * destination_factor) */
|
||||
ReverseSubtract, /**< (destination * destination_factor) - (source * source_factor) */
|
||||
Min, /**< min(source, destination) */
|
||||
Max, /**< max(source, destination) */
|
||||
/**< max(source, destination) */ Max, /**< max(source, destination) */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1259,7 +1259,7 @@ public enum GPUShaderFormat : Uint32
|
||||
OneMinusDstAlpha, /**< 1 - destination alpha */
|
||||
ConstantColor, /**< 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) */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1287,7 +1287,7 @@ public enum GPUColorComponentFlags : Uint8
|
||||
[AllowDuplicates] public enum GPUFilter : c_int
|
||||
{
|
||||
Nearest, /**< Point filtering. */
|
||||
Linear, /**< Linear filtering. */
|
||||
/**< Linear filtering. */ Linear, /**< Linear filtering. */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1300,7 +1300,7 @@ public enum GPUColorComponentFlags : Uint8
|
||||
[AllowDuplicates] public enum GPUSamplerMipmapMode : c_int
|
||||
{
|
||||
Nearest, /**< Point filtering. */
|
||||
Linear, /**< Linear filtering. */
|
||||
/**< Linear filtering. */ Linear, /**< Linear filtering. */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1315,7 +1315,7 @@ public enum GPUColorComponentFlags : Uint8
|
||||
{
|
||||
Repeat, /**< Specifies that the coordinates will wrap around. */
|
||||
MirroredRepeat, /**< Specifies that the coordinates will wrap around mirrored. */
|
||||
ClampToEdge, /**< Specifies that the coordinates will clamp to the 0-1 range. */
|
||||
/**< Specifies that the coordinates will clamp to the 0-1 range. */ ClampToEdge, /**< Specifies that the coordinates will clamp to the 0-1 range. */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -121,7 +121,7 @@ public enum InitFlags : Uint32
|
||||
{
|
||||
Continue, /**< Value that requests that the app continue from the main callbacks. */
|
||||
Success, /**< Value that requests termination with success from the main callbacks. */
|
||||
Failure, /**< Value that requests termination with error from the main callbacks. */
|
||||
/**< Value that requests termination with error from the main callbacks. */ Failure, /**< Value that requests termination with error from the main callbacks. */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -67,7 +67,7 @@ extension SDL
|
||||
Eof, /**< End of file */
|
||||
NotReady, /**< Non blocking I/O, not ready */
|
||||
Readonly, /**< Tried to write a read-only buffer */
|
||||
Writeonly, /**< Tried to read a write-only buffer */
|
||||
/**< Tried to read a write-only buffer */ Writeonly, /**< Tried to read a write-only buffer */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -82,7 +82,7 @@ extension SDL
|
||||
{
|
||||
SeekSet, /**< Seek from the beginning of data */
|
||||
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 */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -408,7 +408,7 @@ public typealias KeyboardID = Uint32;
|
||||
TextPasswordVisible, /**< The input is a secure password that is visible */
|
||||
Number, /**< The input is a number */
|
||||
NumberPasswordHidden, /**< The input is a secure PIN that is hidden */
|
||||
NumberPasswordVisible, /**< The input is a secure PIN that is visible */
|
||||
/**< The input is a secure PIN that is visible */ NumberPasswordVisible, /**< The input is a secure PIN that is visible */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -427,7 +427,7 @@ public typealias KeyboardID = Uint32;
|
||||
eNone, /**< No auto-capitalization will be done */
|
||||
eSentences, /**< The first letter of sentences will be capitalized */
|
||||
eWords, /**< The first letter of words will be capitalized */
|
||||
eLetters, /**< All letters will be capitalized */
|
||||
/**< All letters will be capitalized */ eLetters, /**< All letters will be capitalized */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -119,7 +119,7 @@ public const let MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT = 0x00000002u;/**< Marks th
|
||||
ButtonBorder,
|
||||
ButtonBackground,
|
||||
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. */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -137,7 +137,7 @@ public typealias MouseID = Uint32;
|
||||
[AllowDuplicates] public enum MouseWheelDirection : c_int
|
||||
{
|
||||
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_GetRelativeMouseState
|
||||
*/
|
||||
[AllowDuplicates] public enum MouseButtonFlags : Uint32
|
||||
public enum MouseButtonFlags : Uint32
|
||||
{
|
||||
Left = 1,
|
||||
Middle = 2,
|
||||
Right = 3,
|
||||
X1 = 4,
|
||||
X2 = 5,
|
||||
Lmask = BUTTON_MASK(Left),
|
||||
Mmask = BUTTON_MASK(Middle),
|
||||
Rmask = BUTTON_MASK(Right),
|
||||
X1mask = BUTTON_MASK(X1),
|
||||
X2mask = BUTTON_MASK(X2),
|
||||
|
||||
/**
|
||||
* A callback used to transform mouse motion delta from raw values.
|
||||
*
|
||||
* This is called during SDL's handling of platform mouse events to scale the
|
||||
* values of the resulting motion delta.
|
||||
*
|
||||
* \param userdata what was passed as `userdata` to
|
||||
* SDL_SetRelativeMouseTransform().
|
||||
* \param timestamp the associated time at which this mouse motion event was
|
||||
* received.
|
||||
* \param window the associated window to which this mouse motion event was
|
||||
* addressed.
|
||||
* \param mouseID the associated mouse from which this mouse motion event was
|
||||
* emitted.
|
||||
* \param x pointer to a variable that will be treated as the resulting x-axis
|
||||
* motion.
|
||||
* \param y pointer to a variable that will be treated as the resulting y-axis
|
||||
* motion.
|
||||
*
|
||||
* \threadsafety This callback is called by SDL's internal mouse input
|
||||
* processing procedure, which may be a thread separate from the
|
||||
* main event loop that is run at realtime priority. Stalling
|
||||
* this thread with too much work in the callback can therefore
|
||||
* potentially freeze the entire system. Care should be taken
|
||||
* with proper synchronization practices when adding other side
|
||||
* effects beyond mutation of the x and y values.
|
||||
*
|
||||
* \since This datatype is available since SDL 3.4.0.
|
||||
*
|
||||
* \sa SDL_SetRelativeMouseTransform
|
||||
*/
|
||||
Left = 1 << (1-1),
|
||||
Middle = 1 << (2-1),
|
||||
Right = 1 << (3-1),
|
||||
X1 = 1 << (4-1),
|
||||
X2 = 1 << (5-1),
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* A callback used to transform mouse motion delta from raw values.
|
||||
*
|
||||
|
||||
@@ -157,7 +157,7 @@ public enum PenInputFlags : Uint32
|
||||
Rotation, /**< Pen barrel rotation. Bidirectional: -180 to 179.9 (clockwise, 0 is facing up, -180.0 is facing down). */
|
||||
Slider, /**< Pen finger wheel or slider (e.g., Airbrush Pen). Unidirectional: 0 to 1.0 */
|
||||
TangentialPressure, /**< Pressure from squeezing the pen ("barrel pressure"). */
|
||||
Count, /**< Total known pen axis types in this version of SDL. This number may grow in future releases! */
|
||||
/**< 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! */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -180,7 +180,7 @@ public enum PenInputFlags : Uint32
|
||||
Invalid = -1, /**< Not a valid pen device. */
|
||||
Unknown, /**< Don't know specifics of this pen. */
|
||||
Direct, /**< Pen touches display. */
|
||||
Indirect, /**< Pen touches something that isn't the display. */
|
||||
/**< Pen touches something that isn't the display. */ Indirect, /**< Pen touches something that isn't the display. */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -733,7 +733,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
||||
{
|
||||
Unknown = 0,
|
||||
Limited = 1, /**< Narrow range, e.g. 16-235 for 8-bit RGB and luma, and 16-240 for 8-bit chroma */
|
||||
Full = 2, /**< Full range, e.g. 0-255 for 8-bit RGB and luma, and 1-255 for 8-bit chroma */
|
||||
/**< 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 */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -826,7 +826,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
||||
None = 0, /**< RGB, no chroma sampling */
|
||||
Left = 1, /**< In MPEG-2, MPEG-4, and AVC, Cb and Cr are taken on midpoint of the left-edge of the 2x2 square. In other words, they have the same horizontal location as the top-left pixel, but is shifted one-half pixel down vertically. */
|
||||
Center = 2, /**< In JPEG/JFIF, H.261, and MPEG-1, Cb and Cr are taken at the center of the 2x2 square. In other words, they are offset one-half pixel to the right and one-half pixel down compared to the top-left pixel. */
|
||||
Topleft = 3, /**< In HEVC for BT.2020 and BT.2100 content (in particular on Blu-rays), Cb and Cr are sampled at the same location as the group's top-left Y pixel ("co-sited", "co-located"). */
|
||||
/**< 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"). */
|
||||
}
|
||||
|
||||
|
||||
@@ -1106,7 +1106,7 @@ public const let ALPHA_TRANSPARENT_FLOAT = 0.0f;
|
||||
SDL_CHROMA_LOCATION_LEFT), */
|
||||
|
||||
RgbDefault = Srgb, /**< The default colorspace for RGB surfaces if no colorspace is specified */
|
||||
YuvDefault = Bt601Limited, /**< The default colorspace for YUV surfaces if no colorspace is specified */
|
||||
/**< The default colorspace for YUV surfaces if no colorspace is specified */ YuvDefault = Bt601Limited, /**< The default colorspace for YUV surfaces if no colorspace is specified */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -70,7 +70,7 @@ extension SDL
|
||||
OnBattery, /**< Not plugged in, running on the battery */
|
||||
NoBattery, /**< Plugged in, no battery available */
|
||||
Charging, /**< Plugged in, charging battery */
|
||||
Charged, /**< Plugged in, battery charged */
|
||||
/**< Plugged in, battery charged */ Charged, /**< Plugged in, battery charged */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -162,7 +162,7 @@ extension SDL
|
||||
StdioInherited, /**< The I/O stream is inherited from the application. */
|
||||
StdioNull, /**< The I/O stream is ignored. */
|
||||
StdioApp, /**< The I/O stream is connected to a new SDL_IOStream that the application can read or write */
|
||||
StdioRedirect, /**< The I/O stream is redirected to an existing SDL_IOStream. */
|
||||
/**< The I/O stream is redirected to an existing SDL_IOStream. */ StdioRedirect, /**< The I/O stream is redirected to an existing SDL_IOStream. */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -112,7 +112,7 @@ public const let GPU_RENDERER = "gpu";
|
||||
{
|
||||
Static, /**< Changes rarely, not 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 */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -131,7 +131,7 @@ public const let GPU_RENDERER = "gpu";
|
||||
Invalid = -1,
|
||||
Auto, /**< Wrapping is enabled if texture coordinates are outside [0, 1], this is the default */
|
||||
Clamp, /**< Texture coordinates are clamped to the [0, 1] range */
|
||||
Wrap, /**< The texture is repeated (tiled) */
|
||||
/**< The texture is repeated (tiled) */ Wrap, /**< The texture is repeated (tiled) */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -145,7 +145,7 @@ public const let GPU_RENDERER = "gpu";
|
||||
Stretch, /**< The rendered content is stretched to the output resolution */
|
||||
Letterbox, /**< The rendered content is fit to the largest dimension and the other dimension is letterboxed with the clear color */
|
||||
Overscan, /**< The rendered content is fit to the smallest dimension and the other dimension extends beyond the output bounds */
|
||||
IntegerScale, /**< The rendered content is scaled up by integer multiples to fit the output resolution */
|
||||
/**< 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 */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -432,7 +432,7 @@ extension SDL
|
||||
|
||||
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 */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ public enum SurfaceFlags : Uint32
|
||||
Invalid = -1,
|
||||
Nearest, /**< nearest pixel sampling */
|
||||
Linear, /**< linear filtering */
|
||||
Pixelart, /**< nearest pixel sampling with improved scaling for pixel art, available since SDL 3.4.0 */
|
||||
/**< 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 */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -113,7 +113,7 @@ public enum SurfaceFlags : Uint32
|
||||
None, /**< Do not flip */
|
||||
Horizontal, /**< flip horizontally */
|
||||
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) */
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ public typealias TLSID = AtomicInt;
|
||||
Unknown, /**< The thread is not valid */
|
||||
Alive, /**< The thread is currently running */
|
||||
Detached, /**< The thread is detached and can't be waited on */
|
||||
Complete, /**< The thread has finished and should be cleaned up with SDL_WaitThread() */
|
||||
/**< 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() */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -85,7 +85,7 @@ freely, subject to the following restrictions:
|
||||
{
|
||||
Yyyymmdd = 0, /**< Year/Month/Day */
|
||||
Ddmmyyyy = 1, /**< Day/Month/Year */
|
||||
Mmddyyyy = 2, /**< Month/Day/Year */
|
||||
/**< Month/Day/Year */ Mmddyyyy = 2, /**< Month/Day/Year */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -98,7 +98,7 @@ freely, subject to the following restrictions:
|
||||
[AllowDuplicates] public enum TimeFormat : c_int
|
||||
{
|
||||
_24hr = 0, /**< 24 hour time */
|
||||
_12hr = 1, /**< 12 hour time */
|
||||
/**< 12 hour time */ _12hr = 1, /**< 12 hour time */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -95,7 +95,7 @@ public typealias FingerID = Uint64;
|
||||
Invalid = -1,
|
||||
Direct, /**< touch screen with window-relative 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 */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -121,7 +121,7 @@ public const let PROP_GLOBAL_VIDEO_WAYLAND_WL_DISPLAY_POINTER = "SDL.video.wayla
|
||||
{
|
||||
Unknown, /**< Unknown system theme */
|
||||
Light, /**< Light colored system theme */
|
||||
Dark, /**< Dark colored system theme */
|
||||
/**< Dark colored system theme */ Dark, /**< Dark colored system theme */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -172,7 +172,7 @@ public const let PROP_GLOBAL_VIDEO_WAYLAND_WL_DISPLAY_POINTER = "SDL.video.wayla
|
||||
OrientationLandscape, /**< The display is in landscape mode, with the right side up, relative to portrait mode */
|
||||
OrientationLandscapeFlipped, /**< The display is in landscape mode, with the left side up, relative to portrait mode */
|
||||
OrientationPortrait, /**< The display is in portrait mode */
|
||||
OrientationPortraitFlipped, /**< The display is in portrait mode, upside down */
|
||||
/**< The display is in portrait mode, upside down */ OrientationPortraitFlipped, /**< The display is in portrait mode, upside down */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -252,7 +252,7 @@ public enum WindowFlags : Uint64
|
||||
{
|
||||
Cancel, /**< Cancel any window flash state */
|
||||
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 */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -267,7 +267,7 @@ public enum WindowFlags : Uint64
|
||||
Indeterminate, /**< The progress bar is shown in a indeterminate state */
|
||||
Normal, /**< The progress bar is shown in a normal state */
|
||||
Paused, /**< The progress bar is shown in a paused state */
|
||||
Error, /**< The progress bar is shown in a state indicating the application had an error */
|
||||
/**< 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 */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2790,7 +2790,7 @@ public const let PROP_WINDOW_EMSCRIPTEN_KEYBOARD_ELEMENT_STRING = "SDL.
|
||||
izeBottomright, /**< Region is the resizable bottom-right corner border. */
|
||||
izeBottom, /**< Region is the resizable bottom border. */
|
||||
izeBottomleft, /**< Region is the resizable bottom-left corner border. */
|
||||
izeLeft, /**< Region is the resizable left border. */
|
||||
/**< Region is the resizable left border. */ izeLeft, /**< Region is the resizable left border. */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user