-
Notifications
You must be signed in to change notification settings - Fork 6
/
assimp.cabal
88 lines (84 loc) · 2.95 KB
/
assimp.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Name: assimp
Version: 0.2
Synopsis: The Assimp asset import library
Description:
/Important/: Install with
@cabal install --extra-include-dirs \/usr\/local\/include\/assimp\/@
Of course use the location of the include files on your system.
.
This library provides FFI bindings to the Assimp asset import
library. It requires Assimp to already be installed. For more
information about Assimp see the assimp website at
<http://assimp.sourceforge.net/>.
.
This release corresponds to Assimp 2.0. When this package stabilizes I
intend to track new releases of Assimp by also releasing new versions with
the same version number, but this should be considered a beta release.
Importing models is currently working. Textures and animations are
untested.
.
Here is a sample program that imports a scene and then outputs the
information contained in it.
.
> module Main where
>
> import System.Environment (getArgs)
> import Graphics.Formats.Assimp
>
> -- Defines the preprocessing we want assimp to perform
> processing = [ CalcTangentSpace
> , Triangulate
> , JoinIdenticalVertices
> , SortByPType
> ]
>
> main = do
> args <- getArgs
> mapM_ (print =<<)
> [ importFile (head args) processing -- Outputs all information in the scene
> , getVersionMajor -- Print the major version of assimp
> , getVersionMinor -- Print the minor version of assimp
> , getVersionRevision -- Print the version revision of assimp
> ]
.
See <https://github.com/joelburget/Cologne/blob/master/Cologne/AssimpImport.hs>
for more.
License: BSD3
License-file: LICENSE
Author: Joel Burget
Maintainer: joelburget@gmail.com
Copyright: Joel Burget 2011-2012
Category: Graphics
Build-type: Simple
Cabal-version: >= 1.6
Library
Exposed-modules: Graphics.Formats.Assimp
Other-modules:
Graphics.Formats.Assimp.Anim
Graphics.Formats.Assimp.Camera
Graphics.Formats.Assimp.Color4D
Graphics.Formats.Assimp.Config
Graphics.Formats.Assimp.Fun
Graphics.Formats.Assimp.Light
Graphics.Formats.Assimp.Material
Graphics.Formats.Assimp.Matrix
Graphics.Formats.Assimp.Mesh
Graphics.Formats.Assimp.PostProcess
Graphics.Formats.Assimp.Quaternion
Graphics.Formats.Assimp.Scene
Graphics.Formats.Assimp.Texture
Graphics.Formats.Assimp.Types
Graphics.Formats.Assimp.Version
Graphics.Formats.Assimp.Utils
ghc-options: -Wall
Build-depends: base >= 4 && < 5
, vect >= 0.4.6 && < 0.5
Build-tools: hsc2hs
Extensions: ForeignFunctionInterface
Extra-libraries: assimp
Include-dirs:
include,
Graphics/Formats/
Source-repository head
type: git
location: git@github.com:joelburget/assimp.git