Added INTRO-visualstudio.md

Also removed out of date Visual C++ documentation
This commit is contained in:
Sam Lantinga committed 2025-01-13 16:42:50 -08:00
1 parent 191b9d5021
commit 1b30a01b44
3 files changed
+15 -114

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
# 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)
- 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 and add SDL.vcxproj
- Select your main project and go to Project -> Project Dependencies 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 VC++ Directories and add the SDL include directory to "Include Directories"
- Select your main project and go to Project -> Add Reference and select SDL3
- Build and run!