--- /dev/null
+;;; guile-irrlicht --- FFI bindings for Irrlicht Engine
+;;; Copyright (C) 2019 Javier Sancho <jsf@jsancho.org>
+;;;
+;;; This file is part of guile-irrlicht.
+;;;
+;;; Guile-irrlicht is free software; you can redistribute it and/or modify
+;;; it under the terms of the GNU Lesser General Public License as
+;;; published by the Free Software Foundation; either version 3 of the
+;;; License, or (at your option) any later version.
+;;;
+;;; Guile-irrlicht is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;;; General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU Lesser General Public
+;;; License along with guile-irrlicht. If not, see
+;;; <http://www.gnu.org/licenses/>.
+
+
+(define-module (irrlicht bindings scene)
+ #:use-module (system foreign))
+
+(define cirr (dynamic-link "libCIrrlicht"))
+
+;; irr_scene_EMD2_ANIMATION_TYPE enum
+(define-public EMAT_STAND 0)
+(define-public EMAT_RUN 1)
+(define-public EMAT_ATTACK 2)
+(define-public EMAT_PAIN_A 3)
+(define-public EMAT_PAIN_B 4)
+(define-public EMAT_PAIN_C 5)
+(define-public EMAT_JUMP 6)
+(define-public EMAT_FLIP 7)
+(define-public EMAT_SALUTE 8)
+(define-public EMAT_FALLBACK 9)
+(define-public EMAT_WAVE 10)
+(define-public EMAT_POINT 11)
+(define-public EMAT_CROUCH_STAND 12)
+(define-public EMAT_CROUCH_WALK 13)
+(define-public EMAT_CROUCH_ATTACK 14)
+(define-public EMAT_CROUCH_PAIN 15)
+(define-public EMAT_CROUCH_DEATH 16)
+(define-public EMAT_DEATH_FALLBACK 17)
+(define-public EMAT_DEATH_FALLFORWARD 18)
+(define-public EMAT_DEATH_FALLBACKSLOW 19)
+(define-public EMAT_BOOM 20)
+(define-public EMAT_COUNT 21)
+
+;; Scene functions
+(define-public add-animated-mesh-scene-node
+ (pointer->procedure
+ '*
+ (dynamic-func "irr_scene_addAnimatedMeshSceneNode" cirr)
+ (list '* '* '* int '* '* '* int)))
+
+(define-public add-camera-scene-node
+ (pointer->procedure
+ '*
+ (dynamic-func "irr_scene_addCameraSceneNode" cirr)
+ (list '* '* '* '* int int)))
+
+(define-public draw-all
+ (pointer->procedure
+ void
+ (dynamic-func "irr_scene_drawAll" cirr)
+ (list '*)))
+
+(define-public get-mesh
+ (pointer->procedure
+ '*
+ (dynamic-func "irr_scene_getMesh" cirr)
+ (list '* '*)))
+
+(define-public set-material-flag-am
+ (pointer->procedure
+ void
+ (dynamic-func "irr_scene_setMaterialFlagAM" cirr)
+ (list '* int int)))
+
+(define-public set-material-texture-am
+ (pointer->procedure
+ void
+ (dynamic-func "irr_scene_setMaterialTextureAM" cirr)
+ (list '* int '*)))
+
+(define-public set-md2-animation
+ (pointer->procedure
+ void
+ (dynamic-func "irr_scene_setMD2Animation" cirr)
+ (list '* int)))