How do I use raylib with c++?

This page summarizes the projects mentioned and recommended in the original post on /r/raylib

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • raylib-cmake-template

    A minimal project template for raylib using CMake that works well in CLion & Visual Studio.

  • Or use CMake. CMake will detect a .cpp file and use g++ automatically. This looks like a good starting point.

  • raylib

    A simple and easy-to-use library to enjoy videogames programming

  • There's also a cmake example I found that downloads the library: https://github.com/raysan5/raylib/blob/master/projects/CMake/CMakeLists.txt

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • raylib-cpp

    C++ Object Oriented Wrapper for raylib

  • In addition to the CMake usage, I've also put together some C++ Object Wrappers for raylib called "raylib-cpp". It's in no way needed in order to use Raylib, but does bring raylib more inline with C++ since you can use objects for things like Images and the Window, rather than global functions. There's also a CMake template for it to help you get set up faster: https://github.com/RobLoach/raylib-cpp/tree/master/projects/CMake

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts