Skip to content

Commit

Permalink
Added INTRO-visualstudio.md
Browse files Browse the repository at this point in the history
Also removed out of date Visual C++ documentation
  • Loading branch information
slouken committed Jan 13, 2025
1 parent a70577a commit 3faf6b8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 115 deletions.
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SDL supports a number of development environments:
- [Android](docs/INTRO-android.md)
- [Emscripten for web](docs/INTRO-emscripten.md)

SDL is also usable in other environments. The basic steps are to use CMake to build the library and then use the headers and library that you built in your project. You can search online to see if anyone has specific steps for your setup.
SDL is also usable in other environments. The basic steps are to CMake to build the library and then use the headers and library that you built in your project. You can search online to see if anyone has specific steps for your setup.

# Documentation

Expand Down
15 changes: 15 additions & 0 deletions docs/INTRO-visualstudio.md
Original file line number Diff line number Diff line change
@@ -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!

113 changes: 0 additions & 113 deletions docs/README-visualc.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ More documentation and FAQs are available online at [the wiki](http://wiki.libsd
- [High DPI Support](README-highdpi.md)
- [Touch](README-touch.md)
- [Versions](README-versions.md)
- [Visual Studio](README-visualc.md)

- [Android](README-android.md)
- [Emscripten](README-emscripten.md)
Expand Down

0 comments on commit 3faf6b8

Please sign in to comment.