Backend for a binding to the Microsoft DirectX 9 API.
|Latest on Hackage:||0.1.1|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
You need need recentish ghc (6.4.x should work).
DirectX should be installed somewhere, examples assume %DXSDK%
First, you need to prepare mingw-usable import libraries for
directx DLLS. This is easiest with mingw tool reimp, available on
mingw-utilities on mingw site ( www.mingw.org ) Installing
mingw and msys are beyond this simple readme.
Cabal setup scripts assume that those libraries are situated in
%DXSDK%\Mingw. If you have mingw and msys installed, doing
cp ../Lib/x86/*.lib .
ls | xargs -n 1 reimp
This will turn all but DxErr libs into mingw-compatible import
libraries by running reimp on each .lib
DxErr-libraries are not needed and take quite a lot of time to go
The bindings are split into multiple packages. To compile and install
packages, you need to compile Setup.hs
ghc --make Setup.hs -o setup
After you have setup.exe, you need to enter a package directory and
give cabal commands configure, build and install.
..\setup configure --dx-sdk=%DXSDK%
Recommended order to build packages is base, d3d, d3dx so that dependencies