directx-d ~developer

DirectX for D


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:

DirectX bindings for D language.


Running samples:

Open sample folder in terminal (a quick way is to shift-RMB in that folder in explorer and choose open command window) and symply type :

`dub run --build=x86_64`

or for x86

`dub run`

 

Some samples requires using Windows8 config if you are on Windows 8 or Windows 10, if you see linker errors just specify that config in build:

`dub run --build=x86_64 --config=Windows8`

 

Since DMD 2.067 it is now possible to use COFF .lib files for x86 builds, to do so add dflags -m32mscoff to your dub package

`"dflags" : ["-m32mscoff"]`

however at this moment something broken so one may need to call dub with --combined flag

`dub build --combined`

 


Disclaimer:

Keep in mind that this bindings is still far from ideal, any changes may broke API. It requires a lot of commitment to be finally finished, and one can find something that is not there yet from C++.

Any questions on dlang.org forum thread

 


How to contribute:

Found an error? Got "access violation"? Simply open an issue!

There is also a lot of broken things around in code, just search the sources for "FIXME:" and "TODO:"

 

Pull requests are welcome!

 


License:

MIT License

Dependencies:
none
Versions:
0.14.1 2022-Nov-15
0.14.0 2020-May-02
0.13.0 2019-Mar-06
0.12.0 2017-May-10
0.11.0 2017-Apr-14
Show all 10 versions
Download Stats:
  • 0 downloads today

  • 4 downloads this week

  • 70 downloads this month

  • 9697 downloads total

Score:
3.2
Short URL:
directx-d.dub.pm