mirror of https://github.com/libsdl-org/SDL
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
810 B
Markdown
16 lines
810 B
Markdown
|
|
# 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!
|
|
|