From: Javier Sancho Date: Thu, 3 Oct 2019 11:32:57 +0000 (+0200) Subject: hello world X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=ec67738bf76d57b118d890b8fd29a2dfa7be6d52;p=guile-irrlicht.git hello world --- diff --git a/examples/hello.scm b/examples/hello.scm new file mode 100644 index 0000000..116c408 --- /dev/null +++ b/examples/hello.scm @@ -0,0 +1,24 @@ +;;; guile-irrlicht --- FFI bindings for Irrlicht Engine +;;; Copyright (C) 2019 Javier Sancho +;;; +;;; 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 +;;; . + + +(use-modules (irrlicht)) + +(define device (create-device 'opengl)) +(define driver (get-video-driver device))