raylib-d on underlevel for himmel

Steven Schveighoffer 7163af9a34 Fix issue with config.h definitions not being included. 3 năm trước cách đây
example f092b9c02a Merge pull request #18 from xdrie/color-enum 5 năm trước cách đây
source 7163af9a34 Fix issue with config.h definitions not being included. 3 năm trước cách đây
.gitignore 33878f596b Add linear algebra functions 5 năm trước cách đây
LICENSE cded121463 LICENSE 5 năm trước cách đây
README.md 4c98d02ce7 Update readme to fix misleading comment about broken links. Inform about 3 năm trước cách đây
dub.json 89733bab9f Add my name to authors. 3 năm trước cách đây
dub.selections.json c2534ed006 Done adding Rotor3 logic 5 năm trước cách đây
generating.md 7163af9a34 Fix issue with config.h definitions not being included. 3 năm trước cách đây
raylib_logo.png c7d8029a64 Add files via upload 5 năm trước cách đây

README.md

raylib-d DUB

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

Note: this is a resurrected copy of the original raylib-d. The original author, onroundit (Petro Romanovych) deleted his github acccount. Therefore, some links in this README are broken, and some of the history is lost for good. I will accept any PRs that fix broken links or replace original data, but the code history itself is intact.

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. The local copies of binaries are no longer available, as that history was lost.

WARNING: Make sure you get the correct copy of the raylib library based on the version of raylib-d! Getting the incorrect version will cause SILENT compatibility errors, including memory corruption.

If you depend on raylib-d vX.Y.Z, then your raylib binary should be vX.Y.0. Note that so far, raylib has never had point releases, but raylib-d may have them. Note that raylib-d version 3.1.0 is matched against raylib version 3.7.0, but should probably never have been tagged that way. There is an equivalent 3.7.0 tag now.

For example, if you depend on raylib-d version v3.0.x, then you should download raylib version 3.0.0. If you depend on raylib-d version 3.7.x, then you should download raylib version 3.7.0.

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

"libs": [ "raylib" ]

(Note: this is missing, but may be available from wayback machine)

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

Note: this is missing, but may be available from wayback machine

Docs / cheatsheet

License

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