Rob Loach de5e6184d0 updates
2019-08-17 01:46:13 -04:00
2019-08-17 01:46:13 -04:00
2019-08-17 01:46:13 -04:00
2019-08-17 01:46:13 -04:00
2019-08-10 16:55:34 -04:00
2019-08-10 14:53:47 -04:00
2019-01-16 00:57:44 -05:00
2019-08-17 01:46:13 -04:00
2019-01-22 23:17:28 -05:00
2019-08-14 03:51:14 -04:00

raylib-cpp

C++ wrapper library around raylib, a simple and easy-to-use library to enjoy videogames programming.

Provides object-oriented wrappers around the struct interfaces.

Example

#include "raylib/raylib.hpp"

int main()
{
	int screenWidth = 800;
	int screenHeight = 450;

	raylib::Window w(screenWidth, screenHeight, "raylib-cpp - basic window");
	raylib::Texture logo("raylib_logo.png");

	SetTargetFPS(60);

	while (!w.ShouldClose())
	{
		BeginDrawing();

		ClearBackground(RAYWHITE);

		DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);

		// Object methods.
		logo.Draw(screenWidth / 2 - texture.getWidth() / 2, screenHeight / 2 - texture.getHeight() / 2);

		EndDrawing();
	}

	// UnloadTexture() and CloseWindow() are called automatically.

	return 0;
}

Development

mkdir build
cd build
cmake ..
make
make test
./examples/core_basic_window
Description
C++ Object Oriented Wrapper for raylib
Readme Zlib 19 MiB
Languages
C++ 83.9%
C 7.4%
Makefile 6.1%
CMake 2.6%