From 676958aeef9d69b59c2a6e0e58e24f9ccf572949 Mon Sep 17 00:00:00 2001 From: Giavapps <42039061+giavapps@users.noreply.github.com> Date: Thu, 2 Aug 2018 20:11:36 +0200 Subject: [PATCH] Updated Create Visual Studio Project (markdown) --- Create-Visual-Studio-Project.md | 41 +++++++++++++++------------------ 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/Create-Visual-Studio-Project.md b/Create-Visual-Studio-Project.md index 1e6ba6b..15c2d9b 100644 --- a/Create-Visual-Studio-Project.md +++ b/Create-Visual-Studio-Project.md @@ -1,30 +1,25 @@ -Some users want to use raylib with Visual Studio IDE. raylib 1.6 includes [Visual Studio 2015 project templates](https://github.com/raysan5/raylib/tree/develop/project/vs2015) for the library and some examples but maybe you want to configure the library for another Visual Studio version. +**raylib 2.0** includes [Visual Studio 2017 project templates](https://github.com/raysan5/raylib/tree/master/projects/VS2017) for the library and some examples but maybe you want to configure the library for another **Visual Studio** version. -Those are the configuration parameters required: - -### Configure raylib library project - -1. Create a new library project (C) -2. Include the following directories: - - `$(raylibSrcDir)\external\openal_soft\include` - - `$(raylibSrcDir)\external\glfw3\include` - - `$(raylibSrcDir)\external` -3. Preprocesor definitions (for Windows platform): - - `GRAPHICS_API_OPENGL_33` - - `PLATFORM_DESKTOP` -4. Advanced Configuration: `Compile as C Code (/TC)` +Assuming you are using **Visual Studio 2017** and you downloaded raylib from **github** you can easily follow this step by step guide. ### Configure raylib game project -1. Create a new Console project -2. Include directory: `$(raylibSrcDir)` -3. Advanced Configuration: `Compile as C Code (/TC)` -4. Linker directories: - - `$(raylibSrcDir)external\glfw3\lib\win32` - - `$(raylibSrcDir)external\openal_soft\lib\win32` -5. Linker additional dependencies: - - `glfw3.lib` - - `openal32.lib` +1. Create a new **Console** project so **File > New > Project...** +2. Go under **Project > Properties of Your Project Name... > C/C++ > General** and include the following additional directories: + - `$(raylibSrcDir)\release\include` +3. Select **Preprocesor** and include the following preprocessor definitions (for Windows platform): + - `GRAPHICS_API_OPENGL_33` + - `PLATFORM_DESKTOP` +4. Under **Advanced** configuration choose: **Compile as C Code (/TC)** + +5. Go to **Linker > General** and add the additional directory where **raylib.lib** file is located. + +6. Go to **Linker > Input** and add the following additional dependencies: + - `raylib.lib` + +7. Apply the changes and press **Ctrl + Shift + B** for start building your solution. + +**Note:** it may be required building **raylib.lib** file for your specific **Visual Studio** version, you can do this with pre-configured [Visual Studio project templates](https://github.com/raysan5/raylib/tree/master/projects/). \ No newline at end of file