dray 5.0.0-r5
raylib bindings for dlang
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
dray
dlang bindings to redthing1 raylib v5.0.0 (based on the official upstream 5.0.0 release).
patches:
rayguiincluded- HIDPI enabled
physacincluded
usage
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 ~/.dub/packages/dray_xxx.
note that raylib has some of its own dependencies such as OpenGL.
build (unix/linux/mac)
dub build
build (windows (not recommended))
first, download an LDC2 win-x64 release to get the native libraries we need.
Use the lib directory of the archive as WINLIB_BASE and the lib/mingw directory as WINLIB_MINGW.
Then place raylib.lib and WinMM.lib in the dray package directory.
You can get raylib artifacts for dray windows here.
You can get WinMM.lib, MSVCRT.lib, OLDNAMES.lib here. You should place those in your WINLIB_BASE path.
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 phobos2-ldc-shared.dll and druntime-ldc-shared.dll to your executable directory.
demo
see demo, which demonstrates a simple application using these Raylib bindings.
- 5.0.0-r5 released a year ago
- redthing1/dray
- apache-2.0
- Copyright (c) 2013-2020 Ramon Santamaria (@raysan5), Copyright © 2020, redthing1
- Authors:
- Dependencies:
- fluent-asserts
- Versions:
-
Show all 24 versions5.0.0-r5 2024-Jul-16 5.0.0-r4 2024-Jul-15 5.0.0-r3 2024-Jul-15 5.0.0-r2 2024-Jul-15 5.0.0-r1 2024-Jul-13 - Download Stats:
-
-
0 downloads today
-
4 downloads this week
-
9 downloads this month
-
1969 downloads total
-
- Score:
- 1.7
- Short URL:
- dray.dub.pm