bindbc-bgfx 0.1.1
Dynamic and static D bindings for bgfx.
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:
bindbc-bgfx
Dynamic and static D bindings for bgfx.
These bindings targets bgfx API version 100 (commit 010676412ef819ed7a2a6eece1f02f88e9666016).
Usage (DUB)
To install this library with DUB, simply run the following commands:
dub add bindbc-bgfx
dub add bindbc-loader
The library is configured to dynamic
configuration by default, and should work out of box if you have the dynamic library installed properly.
For static linking, static
configuration must be enabled:
dub.json
"subConfigurations": {
"bindbc-bgfx": "static"
}
"libs": {
"bgfxRelease", "bxRelease", "bimgRelease"
}
The bindings also support -betterC
, which can be enabled with staticBC
and dynamicBC
configurations.
Sample
import bindbc.bgfx;
loadBgfx(); // required with dynamically linked bgfx
bgfx_init_t init;
bgfx_init_ctor(&init);
bgfx_init(&init);
bgfx_reset(1280, 720, BGFX_RESET_NONE, init.resolution.format);
bgfx_shutdown();
unloadBgfx(); // optional, only with dynamically linked bgfx
- Registered by Ari Vuollet
- 0.1.1 released 3 years ago
- GoaLitiuM/bindbc-bgfx
- github.com/GoaLitiuM/bindbc-bgfx
- BSL-1.0
- Authors:
- Dependencies:
- none
- Versions:
-
0.6.1+115 2022-Mar-06 0.6.0+115 2021-Jul-05 0.5.0+112 2021-Jan-17 0.4.0+108 2020-Jul-25 0.3.1+106 2020-May-30 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
7 downloads this month
-
105 downloads total
-
- Score:
- 1.4
- Short URL:
- bindbc-bgfx.dub.pm