Updated Create Visual Studio 2019 Project (markdown)

master
Grave 4 年前
父节点
当前提交
baf804e8f4
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. +7
    -7
      Create-Visual-Studio-2019-Project.md

+ 7
- 7
Create-Visual-Studio-2019-Project.md

@ -1,7 +1,7 @@
# 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**.
* 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**)
@ -10,15 +10,15 @@
## Creating your own project
* Create **new project > Console App**
* Go to **Project > Properties**
* In opened window go to **Configuration Properties > C/C++ > General** and add ge">_...\raylib\src folder_ (contains _.h_ files) to **Additional Include Directories**
* In opened window go to **Configuration Properties > C/C++ > General** and add sb">`...\raylib\src folder` (contains _.h_ files) to **Additional Include Directories**
* Go to **C/C++ > Preprocessor** and include the following **Preprocessor Definitions** (for Windows platform):
- ` GRAPHICS_API_OPENGL_33`
- ` PLATFORM_DESKTOP`
* Go to **C/C++ > Advanced** and set **Compile As** to **Compile as C Code (/TC)**
* Go to **Linker > General** and add ge">_...\raylib\projects\VS2019\bin\x64\Release.DLL_ folder to **Additional Library Directories**
* Go to **C/C++ > Advanced** and set **Compile As** to **Compile as C Code (/TC)** (if you want to yse code from examples)
* Go to **Linker > General** and add sb">`...\raylib\projects\VS2019\bin\x64\Release.DLL` folder to **Additional Library Directories**
* Go to **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)
* 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)
* Set your project's platform to **x64** (if you build your libraries in x64)
## Start coding
* Go to https://www.raylib.com/examples.html and grab some code to your .cpp file
* Set your project platform to x64 (if you build your libraries in x64)
* Go to https://www.raylib.com/examples.html and grab some code to your .cpp file

正在加载...
取消
保存