Implement SDL platform, windowing and input handling

This commit is contained in:
2024-07-25 21:39:21 +03:00
parent 7f7d839f23
commit fe0d97aad1
131 changed files with 67508 additions and 97 deletions

View File

@@ -89,6 +89,19 @@ public class Platform : EngineModule
break;
default: throw new InvalidPlatformException(options.Platform.Target);
}
if (EngineConfiguration.WithSDL(options))
{
switch (options.Platform.Target)
{
case TargetPlatform.Windows:
case TargetPlatform.Linux:
case TargetPlatform.Mac:
options.PublicDependencies.Add("SDL");
options.SourcePaths.Add(Path.Combine(FolderPath, "SDL"));
break;
}
}
if (options.Target.IsEditor)
{
// Include platform settings headers