-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Create Visual Studio Project
Ray edited this page Nov 6, 2016
·
8 revisions
Some users want to use raylib with Visual Studio IDE. raylib 1.6 includes Visual Studio 2015 project templates 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:
- Create a new library project (C)
- Include the following directories:
$(raylibSrcDir)\external\openal_soft\include
$(raylibSrcDir)\external\glfw3\include
$(raylibSrcDir)\external
- Preprocesor definitions (for Windows platform):
GRAPHICS_API_OPENGL_33
PLATFORM_DESKTOP
- Advanced Configuration:
Compile as C Code (/TC)
- Create a new Console project
- Include directory:
$(raylibSrcDir)
- Advanced Configuration:
Compile as C Code (/TC)
- Linker directories:
$(raylibSrcDir)external\glfw3\lib\win32
$(raylibSrcDir)external\openal_soft\lib\win32
- Linker additional dependencies:
glfw3.lib
openal32.lib
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)
- 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