|
|
@ -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 |