Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.81 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.81 KB

extras-cpp

Useful comonents for use the [Raylib](https://www.raylib.com/) library (C++ language version).

Building

raylib-extras is setup to use premake to generate static libraries and examples for Visual Studio 2022 and makefiles for gcc on linux/mac OS and mingw on windows. The system is based on game-premake and will download raylib for you. Please see https://github.com/raylib-extras/game-premake for more info.

Components

raylib-extras is broken up into modular components. Most components are designed to be used standalone.

rlColors.h

C++ versions of the built in raylib colors.

Cameras

There are 3 different camera controllers provided in raylib-extras. Each one is intended to show an example of a different way to move the camera around a scene.

rlFPCamera

This is a first person camera. It uses the traditional mouse and WASD keys for movement. It provides position and view angle data back to the calling application. See cameras/rlFPCamera/samples/example.cpp for a simple use case.

fpCamera

rlTPCamera

This is a third person camera. It uses the traditional mouse and WASD keys for movement. It follows a target position and lets the user rotate around that as it moves. See cameras/rlTPCamera/samples/example.cpp for a simple use case. tpCamera

Other langauges

raylib-extras is broken up into seperate repositories per language.