This was a resurrected copy of onroundit's raylib-d package. In the meantime, onroundit has redirected the dub package to point at my repository for raylib-d. Which means, this package is no longer required. I will leave this up in case anyone is depending on it currently, but I will release 3.1.1 which will warn people the package is not maintained, and to switch to raylib-d.
(static) D bindings for raylib, a simple and easy-to-use library to learn videogames programming.
dub add raylib-d2
You can get the library by compiling it from the source, download the official precompiled binaries or download them from our repository (originally taken from official releases, sorted in folders for each system).
"libs": [ "raylib" ]
For more information look into the wiki.
import raylib;
void main()
{
InitWindow(800, 600, "Hello, Raylib-D!");
while (!WindowShouldClose())
{
BeginDrawing();
ClearBackground(Colors.RAYWHITE);
DrawText("Hello, World!", 400, 300, 28, Colors.BLACK);
EndDrawing();
}
CloseWindow();
}
raylib-d is licensed under an unmodified zlib/libpng license. View LICENSE.