]> git.jsancho.org Git - guile-irrlicht.git/blob - irrlicht/bindings/scene.scm
TOC with direct C++
[guile-irrlicht.git] / irrlicht / bindings / scene.scm
1 ;;; guile-irrlicht --- FFI bindings for Irrlicht Engine
2 ;;; Copyright (C) 2019 Javier Sancho <jsf@jsancho.org>
3 ;;;
4 ;;; This file is part of guile-irrlicht.
5 ;;;
6 ;;; Guile-irrlicht is free software; you can redistribute it and/or modify
7 ;;; it under the terms of the GNU Lesser General Public License as
8 ;;; published by the Free Software Foundation; either version 3 of the
9 ;;; License, or (at your option) any later version.
10 ;;;
11 ;;; Guile-irrlicht is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 ;;; General Public License for more details.
15 ;;;
16 ;;; You should have received a copy of the GNU Lesser General Public
17 ;;; License along with guile-irrlicht.  If not, see
18 ;;; <http://www.gnu.org/licenses/>.
19
20
21 (define-module (irrlicht bindings scene)
22   #:use-module (system foreign)
23   #:use-module (irrlicht util foreign))
24
25 ;;  irr_scene_EMD2_ANIMATION_TYPE enum
26 (define-public EMAT_STAND                 0)
27 (define-public EMAT_RUN                   1)
28 (define-public EMAT_ATTACK                2)
29 (define-public EMAT_PAIN_A                3)
30 (define-public EMAT_PAIN_B                4)
31 (define-public EMAT_PAIN_C                5)
32 (define-public EMAT_JUMP                  6)
33 (define-public EMAT_FLIP                  7)
34 (define-public EMAT_SALUTE                8)
35 (define-public EMAT_FALLBACK              9)
36 (define-public EMAT_WAVE                 10)
37 (define-public EMAT_POINT                11)
38 (define-public EMAT_CROUCH_STAND         12)
39 (define-public EMAT_CROUCH_WALK          13)
40 (define-public EMAT_CROUCH_ATTACK        14)
41 (define-public EMAT_CROUCH_PAIN          15)
42 (define-public EMAT_CROUCH_DEATH         16)
43 (define-public EMAT_DEATH_FALLBACK       17)
44 (define-public EMAT_DEATH_FALLFORWARD    18)
45 (define-public EMAT_DEATH_FALLBACKSLOW   19)
46 (define-public EMAT_BOOM                 20)
47 (define-public EMAT_COUNT                21)
48
49 ;; irr_scene_E_PRIMITIVE_TYPE enum
50 (define-public EPT_POINTS          0)
51 (define-public EPT_LINE_STRIP      1)
52 (define-public EPT_LINE_LOOP       2)
53 (define-public EPT_LINES           3)
54 (define-public EPT_TRIANGLE_STRIP  4)
55 (define-public EPT_TRIANGLE_FAN    5)
56 (define-public EPT_TRIANGLES       6)
57 (define-public EPT_QUAD_STRIP      7)
58 (define-public EPT_QUADS           8)
59 (define-public EPT_POLYGON         9)
60 (define-public EPT_POINT_SPRITES  10)
61
62 ;; Scene functions
63 (define-foreign add-animated-mesh-scene-node
64   '* "irr_scene_addAnimatedMeshSceneNode" (list '* '* '* int '* '* '* int))
65
66 (define-foreign add-animator
67   void "irr_scene_addAnimator" (list '* '*))
68
69 (define-foreign add-camera-scene-node
70   '* "irr_scene_addCameraSceneNode" (list '* '* '* '* int int))
71
72 (define-foreign add-camera-scene-node-fps
73   '* "irr_scene_addCameraSceneNodeFPS" (list '* '* float float int '* int int float int int))
74
75 (define-foreign add-custom-scene-node
76   '* "irr_scene_addCustomSceneNode" (list '* '* int '* '* '* '* '* '* '*))
77
78 (define-foreign add-octree-scene-node
79   '* "irr_scene_addOctreeSceneNode" (list '* '* '* int int int))
80
81 (define-foreign create-rotation-animator
82   '* "irr_scene_createRotationAnimator" (list '* '*))
83
84 (define-foreign draw-all
85   void "irr_scene_drawAll" (list '*))
86
87 (define-foreign get-absolute-transformation
88   '* "irr_scene_getAbsoluteTransformation" (list '*))
89
90 (define-foreign get-mesh
91   '* "irr_scene_getMesh" (list '* '*))
92
93 (define-foreign get-root-scene-node
94   '* "irr_scene_getRootSceneNode" (list '*))
95
96 (define-foreign set-material-flag
97   void "irr_scene_setMaterialFlag" (list '* int int))
98
99 (define-foreign set-material-texture
100   void "irr_scene_setMaterialTexture" (list '* int '*))
101
102 (define-foreign set-md2-animation
103   void "irr_scene_setMD2Animation" (list '* int))
104
105 (define-foreign set-position
106   void "irr_scene_setPosition" (list '* '*))