From 6aaedb813fa11ba0679c3051bc2eb28646b9506c Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 30 Aug 2025 16:53:58 -0700 Subject: Update to SDL3 --- .../VisualC/examples/Directory.Build.props | 178 +++++++++++++++++++++ .../01-simple-playback/01-simple-playback.vcxproj | 13 ++ .../02-simple-playback-callback.vcxproj | 13 ++ .../examples/audio/03-load-wav/03-load-wav.vcxproj | 14 ++ .../01-read-and-draw/01-read-and-draw.vcxproj | 13 ++ .../examples/demo/01-snake/01-snake.vcxproj | 13 ++ .../demo/02-woodeneye-008/02-woodeneye-008.vcxproj | 13 ++ .../03-infinite-monkeys.vcxproj | 13 ++ .../SDL-3.2.20/VisualC/examples/generate.py | 54 +++++++ .../pen/01-drawing-lines/01-drawing-lines.vcxproj | 13 ++ .../examples/renderer/01-clear/01-clear.vcxproj | 13 ++ .../renderer/02-primitives/02-primitives.vcxproj | 13 ++ .../examples/renderer/03-lines/03-lines.vcxproj | 13 ++ .../examples/renderer/04-points/04-points.vcxproj | 13 ++ .../renderer/05-rectangles/05-rectangles.vcxproj | 13 ++ .../renderer/06-textures/06-textures.vcxproj | 14 ++ .../07-streaming-textures.vcxproj | 13 ++ .../08-rotating-textures.vcxproj | 14 ++ .../09-scaling-textures.vcxproj | 13 ++ .../renderer/10-geometry/10-geometry.vcxproj | 14 ++ .../renderer/11-color-mods/11-color-mods.vcxproj | 14 ++ .../renderer/14-viewport/14-viewport.vcxproj | 14 ++ .../renderer/15-cliprect/15-cliprect.vcxproj | 14 ++ .../renderer/17-read-pixels/17-read-pixels.vcxproj | 14 ++ .../renderer/18-debug-text/18-debug-text.vcxproj | 13 ++ 25 files changed, 539 insertions(+) create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/Directory.Build.props create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/audio/01-simple-playback/01-simple-playback.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/audio/02-simple-playback-callback/02-simple-playback-callback.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/audio/03-load-wav/03-load-wav.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/camera/01-read-and-draw/01-read-and-draw.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/demo/01-snake/01-snake.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/demo/02-woodeneye-008/02-woodeneye-008.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/demo/03-infinite-monkeys/03-infinite-monkeys.vcxproj create mode 100755 src/contrib/SDL-3.2.20/VisualC/examples/generate.py create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/pen/01-drawing-lines/01-drawing-lines.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/renderer/01-clear/01-clear.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/renderer/02-primitives/02-primitives.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/renderer/03-lines/03-lines.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/renderer/04-points/04-points.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/renderer/05-rectangles/05-rectangles.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/renderer/06-textures/06-textures.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/renderer/07-streaming-textures/07-streaming-textures.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/renderer/08-rotating-textures/08-rotating-textures.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/renderer/09-scaling-textures/09-scaling-textures.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/renderer/10-geometry/10-geometry.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/renderer/11-color-mods/11-color-mods.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/renderer/14-viewport/14-viewport.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/renderer/15-cliprect/15-cliprect.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/renderer/17-read-pixels/17-read-pixels.vcxproj create mode 100644 src/contrib/SDL-3.2.20/VisualC/examples/renderer/18-debug-text/18-debug-text.vcxproj (limited to 'src/contrib/SDL-3.2.20/VisualC/examples') diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/Directory.Build.props b/src/contrib/SDL-3.2.20/VisualC/examples/Directory.Build.props new file mode 100644 index 0000000..4833d3e --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/Directory.Build.props @@ -0,0 +1,178 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 15.0 + Win32Proj + 10.0 + + + x64 + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + $(SolutionDir)$(Platform)\$(Configuration)\ + $(Platform)\$(Configuration)\ + $(SolutionDir)$(Platform)\$(Configuration)\ + $(Platform)\$(Configuration)\ + $(SolutionDir)$(Platform)\$(Configuration)\ + $(Platform)\$(Configuration)\ + $(SolutionDir)$(Platform)\$(Configuration)\ + $(Platform)\$(Configuration)\ + + + true + + + true + + + false + + + false + + + + NotUsing + Level3 + Disabled + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + pch.h + + + Console + true + + + + + NotUsing + Level3 + Disabled + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + pch.h + + + Console + true + + + + + NotUsing + Level3 + MaxSpeed + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + pch.h + + + Console + true + true + true + + + + + NotUsing + Level3 + MaxSpeed + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + pch.h + + + Console + true + true + true + + + + + %(AdditionalOptions) /utf-8 + $(SolutionDir)\..\include;%(AdditionalIncludeDirectories) + + + + + {81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68} + false + false + true + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/audio/01-simple-playback/01-simple-playback.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/audio/01-simple-playback/01-simple-playback.vcxproj new file mode 100644 index 0000000..de4a67c --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/audio/01-simple-playback/01-simple-playback.vcxproj @@ -0,0 +1,13 @@ + + + + {EB448819-74BC-40C9-A61A-4D4ECD55F9D5} + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/audio/02-simple-playback-callback/02-simple-playback-callback.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/audio/02-simple-playback-callback/02-simple-playback-callback.vcxproj new file mode 100644 index 0000000..7140c33 --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/audio/02-simple-playback-callback/02-simple-playback-callback.vcxproj @@ -0,0 +1,13 @@ + + + + {6B710DFF-8A4A-40A2-BF2D-88D266F3D4F0} + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/audio/03-load-wav/03-load-wav.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/audio/03-load-wav/03-load-wav.vcxproj new file mode 100644 index 0000000..356cb6e --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/audio/03-load-wav/03-load-wav.vcxproj @@ -0,0 +1,14 @@ + + + + {608C6C67-7766-471F-BBFF-8B00086039AF} + + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/camera/01-read-and-draw/01-read-and-draw.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/camera/01-read-and-draw/01-read-and-draw.vcxproj new file mode 100644 index 0000000..c143bce --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/camera/01-read-and-draw/01-read-and-draw.vcxproj @@ -0,0 +1,13 @@ + + + + {510ACF0C-4012-4216-98EF-E4F155DE33CE} + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/demo/01-snake/01-snake.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/demo/01-snake/01-snake.vcxproj new file mode 100644 index 0000000..85128b4 --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/demo/01-snake/01-snake.vcxproj @@ -0,0 +1,13 @@ + + + + {7820969A-5B7B-4046-BB0A-82905D457FC5} + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/demo/02-woodeneye-008/02-woodeneye-008.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/demo/02-woodeneye-008/02-woodeneye-008.vcxproj new file mode 100644 index 0000000..08f1da9 --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/demo/02-woodeneye-008/02-woodeneye-008.vcxproj @@ -0,0 +1,13 @@ + + + + {A3F601E0-B54C-4DD8-8A97-FDEF7624EE60} + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/demo/03-infinite-monkeys/03-infinite-monkeys.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/demo/03-infinite-monkeys/03-infinite-monkeys.vcxproj new file mode 100644 index 0000000..a08c5e4 --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/demo/03-infinite-monkeys/03-infinite-monkeys.vcxproj @@ -0,0 +1,13 @@ + + + + {75AEE75A-C016-4497-960B-D767B822237D} + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/generate.py b/src/contrib/SDL-3.2.20/VisualC/examples/generate.py new file mode 100755 index 0000000..e06110e --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/generate.py @@ -0,0 +1,54 @@ +import os +import pathlib +import uuid + +REPOSITORY_ROOT = pathlib.Path(__file__).parent.parent.parent + + +def generate(category, example_name, c_source_file): + guid = str(uuid.uuid4()).upper() + text = f""" + + + + {{{guid}}} + + + + + + + + + +""".strip() + + project_file = REPOSITORY_ROOT / "VisualC" / "examples" / category / example_name / f"{example_name}.vcxproj" + + if project_file.exists(): + print("Skipping:", project_file) + return + + print("Generating file:", project_file) + os.makedirs(project_file.parent, exist_ok=True) + with open(project_file, "w", encoding="utf-8") as f: + f.write(text) + + +def get_c_source_filename(example_dir: pathlib.Path): + """Gets the one and only C source file name in the directory of the example.""" + c_files = [f.name for f in example_dir.iterdir() if f.name.endswith(".c")] + assert len(c_files) == 1 + return c_files[0] + + +def main(): + path = REPOSITORY_ROOT / "examples" + for category in path.iterdir(): + if category.is_dir(): + for example in category.iterdir(): + generate(category.name, example.name, get_c_source_filename(example)) + + +if __name__ == "__main__": + main() diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/pen/01-drawing-lines/01-drawing-lines.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/pen/01-drawing-lines/01-drawing-lines.vcxproj new file mode 100644 index 0000000..64025bb --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/pen/01-drawing-lines/01-drawing-lines.vcxproj @@ -0,0 +1,13 @@ + + + + {5EDA1ED3-8213-4C12-B0DF-B631EB611804} + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/renderer/01-clear/01-clear.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/01-clear/01-clear.vcxproj new file mode 100644 index 0000000..e55d8df --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/01-clear/01-clear.vcxproj @@ -0,0 +1,13 @@ + + + + {896557AC-7575-480C-8FFD-AB08B5DA305D} + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/renderer/02-primitives/02-primitives.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/02-primitives/02-primitives.vcxproj new file mode 100644 index 0000000..525bba7 --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/02-primitives/02-primitives.vcxproj @@ -0,0 +1,13 @@ + + + + {504DC7EC-D82E-448E-9C7D-3BE7981592B3} + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/renderer/03-lines/03-lines.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/03-lines/03-lines.vcxproj new file mode 100644 index 0000000..4b40b7e --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/03-lines/03-lines.vcxproj @@ -0,0 +1,13 @@ + + + + {BDE7DBC0-DCE7-432E-8750-C4AE55463699} + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/renderer/04-points/04-points.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/04-points/04-points.vcxproj new file mode 100644 index 0000000..0c8fa22 --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/04-points/04-points.vcxproj @@ -0,0 +1,13 @@ + + + + {7B250AB1-92D3-4F1A-BEB4-19605A69CEDB} + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/renderer/05-rectangles/05-rectangles.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/05-rectangles/05-rectangles.vcxproj new file mode 100644 index 0000000..8d4b33b --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/05-rectangles/05-rectangles.vcxproj @@ -0,0 +1,13 @@ + + + + {4C0E3A60-24F8-4D4C-81C0-C1777F5E7B17} + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/renderer/06-textures/06-textures.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/06-textures/06-textures.vcxproj new file mode 100644 index 0000000..d99b62c --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/06-textures/06-textures.vcxproj @@ -0,0 +1,14 @@ + + + + {B3D61611-BFA3-4B66-ADC7-A3CE578A6D36} + + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/renderer/07-streaming-textures/07-streaming-textures.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/07-streaming-textures/07-streaming-textures.vcxproj new file mode 100644 index 0000000..0830c4f --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/07-streaming-textures/07-streaming-textures.vcxproj @@ -0,0 +1,13 @@ + + + + {540AE143-A58F-4D3B-B843-94EA8576522D} + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/renderer/08-rotating-textures/08-rotating-textures.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/08-rotating-textures/08-rotating-textures.vcxproj new file mode 100644 index 0000000..5e14c6d --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/08-rotating-textures/08-rotating-textures.vcxproj @@ -0,0 +1,14 @@ + + + + {7091C001-3D71-47D4-B27B-E99271E5B987} + + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/renderer/09-scaling-textures/09-scaling-textures.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/09-scaling-textures/09-scaling-textures.vcxproj new file mode 100644 index 0000000..ada32f7 --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/09-scaling-textures/09-scaling-textures.vcxproj @@ -0,0 +1,13 @@ + + + + {AF8BC84E-0268-4D1F-9503-84D9EE84C65F} + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/renderer/10-geometry/10-geometry.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/10-geometry/10-geometry.vcxproj new file mode 100644 index 0000000..6013514 --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/10-geometry/10-geometry.vcxproj @@ -0,0 +1,14 @@ + + + + {8B9AB23E-3F40-4145-BA1C-B2CEACFBBD72} + + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/renderer/11-color-mods/11-color-mods.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/11-color-mods/11-color-mods.vcxproj new file mode 100644 index 0000000..c0af3e3 --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/11-color-mods/11-color-mods.vcxproj @@ -0,0 +1,14 @@ + + + + {E9C6A7A6-22C0-42E6-AC9C-8580A396D077} + + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/renderer/14-viewport/14-viewport.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/14-viewport/14-viewport.vcxproj new file mode 100644 index 0000000..1ebbda5 --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/14-viewport/14-viewport.vcxproj @@ -0,0 +1,14 @@ + + + + {B85BC466-C7F0-4C6D-8ECF-ED57E775FC73} + + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/renderer/15-cliprect/15-cliprect.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/15-cliprect/15-cliprect.vcxproj new file mode 100644 index 0000000..dbb7ca6 --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/15-cliprect/15-cliprect.vcxproj @@ -0,0 +1,14 @@ + + + + {9DBD962F-EA4D-44E3-8E8E-31D7F060A2DC} + + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/renderer/17-read-pixels/17-read-pixels.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/17-read-pixels/17-read-pixels.vcxproj new file mode 100644 index 0000000..674462e --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/17-read-pixels/17-read-pixels.vcxproj @@ -0,0 +1,14 @@ + + + + {EEF00329-4598-4E34-B969-9DD4B0815E6C} + + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/SDL-3.2.20/VisualC/examples/renderer/18-debug-text/18-debug-text.vcxproj b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/18-debug-text/18-debug-text.vcxproj new file mode 100644 index 0000000..98f1198 --- /dev/null +++ b/src/contrib/SDL-3.2.20/VisualC/examples/renderer/18-debug-text/18-debug-text.vcxproj @@ -0,0 +1,13 @@ + + + + {CC0714AA-8A81-4E29-BEC5-2E4FBC50E7FE} + + + + + + + + + \ No newline at end of file -- cgit v1.2.3