raylib bindings for dlang
To use this package, run the following command in your project's root directory:
Put the following dependency into your project's dependences section:
dlang bindings to raylib v4.2.0 (based on the official upstream 4.2.0 release).
- HIDPI enabled
all you need to do is add this package as a dependency and it should automatically build the Raylib C library and link it in.
if for some reason you want to use a custom build, just place your own
libraylib.a in the package root (usually something like
raylib has some of its own dependencies such as OpenGL.
build (windows (not recommended))
first, download an LDC2
win-x64 release to get the native libraries we need.
lib directory of the archive as
WINLIB_BASE and the
lib/mingw directory as
WinMM.lib in the
dray package directory.
You can get raylib artifacts for dray windows here.
You can get
OLDNAMES.lib here. You should place those in your
WINLIB_BASE="/path/to/ldc2-1.28.1-windows-x64/ldc2-1.28.1-windows-x64/lib/" WINLIB_MINGW="/path/to/Downloads/ldc2-1.28.1-windows-x64/ldc2-1.28.1-windows-x64/lib/mingw" dub build --compiler ldc2 --arch=x86_64-windows-msvc
finally, remember to copy
druntime-ldc-shared.dll to your executable directory.
see demo, which demonstrates a simple application using these Raylib bindings.
- Registered by redthing1
- 4.2.0-r1 released 7 months ago
- Copyright (c) 2013-2020 Ramon Santamaria (@raysan5), Copyright © 2020, redthing1
4.2.0-r2 2022-Nov-10 4.2.0-r1 2022-Nov-09 4.0.0-r6 2022-Apr-10 4.0.0-r5 2022-Feb-25 4.0.0-r4 2022-Feb-25
- Download Stats:
0 downloads today
0 downloads this week
5 downloads this month
1398 downloads total
- Short URL: