dx9d3d: A binding to the Microsoft DirectX 9 API.

[ bsd3, graphics, library ] [ Propose Tags ]

A Haskell binding for the Microsoft DirectX 9.

This package doesn't have any sample code. But mokehehe wrote sample code below blog article. http://mokehehe.blogspot.com/2009/04/using-directx-from-haskell.html

This version requires DirectX SDK that is specified in --extra-include-dirs and --extra-lib-dirs PATH. See the README file for more information.


[Skip to Readme]

Modules

  • DirectX9
    • DirectX9.D3D
      • DirectX9.D3D.Base
      • DirectX9.D3D.Constant
      • DirectX9.D3D.Device
      • DirectX9.D3D.Format
      • DirectX9.D3D.Perf
      • DirectX9.D3D.Raw
      • DirectX9.D3D.Resource
      • DirectX9.D3D.Shader
        • DirectX9.D3D.Shader.Assembly
        • DirectX9.D3D.Shader.Text
      • DirectX9.D3D.Surface
      • DirectX9.D3D.Texture
      • DirectX9.D3D.Utility
        • DirectX9.D3D.Utility.Basic
        • DirectX9.D3D.Utility.FVF
        • DirectX9.D3D.Utility.Init

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.1.0.1, 0.1.0.2, 0.1.1, 0.1.1.1
Dependencies base (>=3 && <5), dx9base (>=0.1.1), Win32 [details]
License BSD-3-Clause
Author Esa Ilari Vuokko
Maintainer none
Category Graphics
Uploaded by KidoTakahiro at 2011-12-07T01:16:11Z
Distributions NixOS:0.1.1.1
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 4158 total (14 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-11-11 [all 8 reports]

Readme for dx9d3d-0.1.1.1

[back to package description]
# Installing

 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
 something like:
 
   cd $DXSDK
   mkdir Mingw
   cd Mingw
   cp ../Lib/x86/*.lib .
   rm DxErr*.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
 through reimp.

 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.
  cd base
  ..\setup configure --dx-sdk=%DXSDK%
  ..\setup build
  ..\setup install
 Recommended order to build packages is base, d3d, d3dx so that dependencies
 are met.