summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-3.2.20/docs/INTRO-visualstudio.md
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-08-30 16:53:58 -0700
committer3gg <3gg@shellblade.net>2025-08-30 16:53:58 -0700
commit6aaedb813fa11ba0679c3051bc2eb28646b9506c (patch)
tree34acbfc9840e02cb4753e6306ea7ce978bf8b58e /src/contrib/SDL-3.2.20/docs/INTRO-visualstudio.md
parent8f228ade99dd3d4c8da9b78ade1815c9adf85c8f (diff)
Update to SDL3
Diffstat (limited to 'src/contrib/SDL-3.2.20/docs/INTRO-visualstudio.md')
-rw-r--r--src/contrib/SDL-3.2.20/docs/INTRO-visualstudio.md16
1 files changed, 16 insertions, 0 deletions
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 @@
1
2# Introduction to SDL with Visual Studio
3
4The easiest way to use SDL is to include it as a subproject in your project.
5
6We'll start by creating a simple project to build and run [hello.c](hello.c)
7
8- 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)
9 - If you've downloaded a release, make sure to extract the contents somewhere you can find it.
10- Create a new project in Visual Studio, using the C++ Empty Project template
11- Add hello.c to the Source Files
12- 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
13- Select your main project and go to Project -> Add -> Reference and select SDL3
14- 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"
15- Build and run!
16