- Dependencies
You need to link and build raylib yourself in order to use this library.
rlw
is the C++ namespace wrapper for raylib. windows.h
can be used without clashes with raylib as long as raylib.h
is not in any header or main.cpp
.
Disclaimer: This is not raylib-cpp
in a namespace but rather functional C99 raylib
put into a namespace to be used in C++.
#include "RaylibWrapper/RaylibWrapper.hpp"
using namespace rlw;
int main() {
initWindow(800, 600, "game title");
while (!WindowShouldClose()) {
BeginDrawing();
EndDrawing();
}
closeWindow();
return 0;
}
#include "RaylibWrapper/RaylibWrapper.hpp"
int main() {
rlw::initWindow(800, 600, "game title");
while (!rlw::WindowShouldClose()) {
rlw::BeginDrawing();
rlw::EndDrawing();
}
rlw::closeWindow();
return 0;
}
This project builds upon the excellent work of the raylib team:
- Raylib - A simple and easy-to-use library to enjoy videogames programming.
- License: Zlib/libpng License