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 --- src/contrib/SDL-3.2.20/docs/INTRO-visualstudio.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/contrib/SDL-3.2.20/docs/INTRO-visualstudio.md (limited to 'src/contrib/SDL-3.2.20/docs/INTRO-visualstudio.md') diff --git a/src/contrib/SDL-3.2.20/docs/INTRO-visualstudio.md b/src/contrib/SDL-3.2.20/docs/INTRO-visualstudio.md new file mode 100644 index 0000000..4017f79 --- /dev/null +++ b/src/contrib/SDL-3.2.20/docs/INTRO-visualstudio.md @@ -0,0 +1,16 @@ + +# Introduction to SDL with Visual Studio + +The easiest way to use SDL is to include it as a subproject in your project. + +We'll start by creating a simple project to build and run [hello.c](hello.c) + +- Get a copy of the SDL source, you can clone the repo, or download the "Source Code" asset from [the latest release.](https://github.com/libsdl-org/SDL/releases/latest) + - If you've downloaded a release, make sure to extract the contents somewhere you can find it. +- Create a new project in Visual Studio, using the C++ Empty Project template +- Add hello.c to the Source Files +- Right click the solution, select add an existing project, navigate to `VisualC/SDL` from within the source you cloned or downloaded above and add SDL.vcxproj +- Select your main project and go to Project -> Add -> Reference and select SDL3 +- Select your main project and go to Project -> Properties, set the filter at the top to "All Configurations" and "All Platforms", select C/C++ -> General and add the SDL include directory to "Additional Include Directories" +- Build and run! + -- cgit v1.2.3