-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Create Visual Studio Project
raylib 2.0 includes Visual Studio 2017 project templates for the library and some examples but maybe you want to configure the library for another Visual Studio version.
Assuming you are using Visual Studio 2017 and you downloaded raylib from github you can easily follow this step by step guide.
-
Create a new Console project so File > New > Project...
-
Go under Project > Properties of Your Project Name... > C/C++ > General and include the following additional directories:
$(raylibSrcDir)\release\include
-
Select Preprocessor and include the following preprocessor definitions (for Windows platform):
GRAPHICS_API_OPENGL_33
PLATFORM_DESKTOP
-
Under Advanced configuration choose: Compile as C Code (/TC)
-
Go to Linker > General and add the additional directory where raylib.lib file is located.
-
Go to Linker > Input and add the following additional dependencies:
raylib.lib
-
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.
www.raylib.com | itch.io | GitHub | Discord | YouTube
- Architecture
- Syntax analysis
- Data structures
- Enumerated types
- External dependencies
- GLFW dependency
- libc dependency
- Platforms and graphics
- Input system
- Default shader
- Custom shaders
- Coding conventions
- Integration with other libs
- Working on Windows
- Working on macOS
- Working on GNU Linux
- Working on Chrome OS
- Working on FreeBSD
- Working on Raspberry Pi
- Working for Android
- Working for Web (HTML5)
- Working on exaequOS Web Computer
- Creating Discord Activities
- Working anywhere with CMake
- CMake Build Options
- raylib templates: Get started easily
- How To: Quick C/C++ Setup in Visual Studio 2022, GCC or MinGW
- How To: C# Visual Studio Setup
- How To: VSCode
- How To: Eclipse
- How To: Sublime Text
- How To: Code::Blocks