raylib-d on underlevel for himmel

Jan Hönig e3300ac44b Added a simple example преди 5 години
example e3300ac44b Added a simple example преди 5 години
source 4fcfdcf1bf Add Raylib 3.0 support преди 5 години
.gitignore 763f95c8dd wrap rlgl, add @nogc nothrow преди 5 години
LICENSE cded121463 LICENSE преди 5 години
README.md 029d86cbfd Update README.md преди 5 години
dub.json 3cff361868 please work преди 5 години
dub.selections.json 3d142f9087 upload преди 5 години
raylib_logo.png c7d8029a64 Add files via upload преди 5 години

README.md

raylib-d DUB

(static) D bindings for raylib, a simple and easy-to-use library to learn videogames programming.

Installation

dub add raylib-d

First, get a copy of Raylib

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).

In order to link against raylib, add it to your dub.json.

"libs": [ "raylib" ]

Sample

import raylib;

void main()
{
	InitWindow(800, 600, "Hello, Raylib-D!");
	while (!WindowShouldClose())
	{
		BeginDrawing();
		ClearBackground(RAYWHITE);
		DrawText("Hello, World!", 400, 300, 28, BLACK);
		EndDrawing();
	}
	CloseWindow();
}

Docs / cheatsheet

License

raylib-d is licensed under an unmodified zlib/libpng license. View LICENSE.