From 3747717f23d86324881751cbe25f87df498c74dc Mon Sep 17 00:00:00 2001 From: Grave Date: Mon, 11 Jan 2021 15:00:56 +0300 Subject: [PATCH] Creating new page for raylib 3.5 and VS2019 --- Create-Visual-Studio-2019-Project.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Create-Visual-Studio-2019-Project.md diff --git a/Create-Visual-Studio-2019-Project.md b/Create-Visual-Studio-2019-Project.md new file mode 100644 index 0000000..9d4e8ac --- /dev/null +++ b/Create-Visual-Studio-2019-Project.md @@ -0,0 +1,18 @@ +# RayLib 3.5 and Visual Studio 2019 configuration +## Building _raylib.lib_ and _raylib.dll_ +* Download or clone [raysan5/raylib](https://github.com/raysan5/raylib) folder. +* In _raylib/projects/VS2019_ find _raylib.sln_ and open it with **Visual Studio 2019**. +* Go to **Solution Explorer** window and find **raylib** project +* Right click on it and choose **Set as Startup Project** +* Check **Solution Configurations** (must be Release.Dll x64) +* Go to **Build > Build raylib** or press _Ctrl + B_ to build _raylib.lib_ and _raylib.dll_ + +## Creating your own project +* Create **new project > Console App** +* Go to **Project Properties > Configuration Properties > C/C++ > General** and add _...\raylib\src folder_ (contains _.h_ files) to **Additional Include Directories** +* Go to **Configuration Properties > Linker > General** and add _...\raylib\projects\VS2019\bin\x64\Release.DLL_ folder to **Additional Library Directories** +* Go to **Configuration Properties > Linker > Input** and add _raylib.lib_ to **Additional Dependencies** +* Go to _...\raylib\projects\VS2019\bin\x64\Release.DLL_ folder and copy _raylib.dll_ to your project folder (main .cpp must be in this folder) + +## Start coding +* Go to https://www.raylib.com/examples.html and grab some code to your .cpp file \ No newline at end of file