Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

schveiguy/raylib-d2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARCHIVED

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.

raylib-d2 DUB

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

Installation

dub add raylib-d2

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" ]

For more information look into the wiki.

Example

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();
}

License

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

About

Resurrection of raylib-d library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages