]> git.jsancho.org Git - guile-assimp.git/blob - src/low-level/scene.scm
Rewrite definition types using new C parsers
[guile-assimp.git] / src / low-level / scene.scm
1 ;;; guile-assimp, foreign interface to libassimp
2 ;;; Copyright (C) 2014 by Javier Sancho Fernandez <jsf at jsancho dot org>
3 ;;;
4 ;;; This program is free software: you can redistribute it and/or modify
5 ;;; it under the terms of the GNU General Public License as published by
6 ;;; the Free Software Foundation, either version 3 of the License, or
7 ;;; (at your option) any later version.
8 ;;;
9 ;;; This program is distributed in the hope that it will be useful,
10 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ;;; GNU General Public License for more details.
13 ;;;
14 ;;; You should have received a copy of the GNU General Public License
15 ;;; along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
17
18 (define-module (assimp low-level scene)
19   #:use-module (assimp low-level)
20   #:use-module (assimp low-level types)
21   #:use-module (system foreign))
22
23
24 (define-struct-parser parse-aiNode
25   (mName aiString-type)
26   (mTransformation aiMatrix4x4-type)
27   (mParent '*)
28   (mNumChildren unsigned-int)
29   (mChildren '*)
30   (mNumMeshes unsigned-int)
31   (mMeshes '*))
32
33 (export parse-aiNode)
34
35
36 (define-struct-parser parse-aiScene
37   (mFlags unsigned-int)
38   (mRootNode '*)
39   (mNumMeshes unsigned-int)
40   (mMeshes '*)
41   (mNumMaterials unsigned-int)
42   (mMaterials '*)
43   (mNumAnimations unsigned-int)
44   (mAnimations '*)
45   (mNumTextures unsigned-int)
46   (mTextures '*)
47   (mNumLights unsigned-int)
48   (mLights '*)
49   (mNumCameras unsigned-int)
50   (mCameras '*)
51   (mPrivate '*))
52
53 (export parse-aiScene)