]> git.jsancho.org Git - gacela.git/blobdiff - src/gacela.c
Mapeo de funciones SDL y GL casi completo, empezando subsistemas básicos
[gacela.git] / src / gacela.c
index 45c83a114e0770c02a82e4d998d76b199dfe65e2..d46c49536bba42a024c30bcd5e74453ff6b01b35 100644 (file)
@@ -1,14 +1,38 @@
-#include <GL/gl.h>
+/* Gacela, a GNU Guile extension for fast games development
+   Copyright (C) 2009 by Javier Sancho Fernandez <jsf at jsancho dot org>
+
+   This program is free software: you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation, either version 3 of the License, or
+   (at your option) any later version.
+
+   This program 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 General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
 #include <libguile.h>
 #include "gacela_SDL.h"
+#include "gacela_GL.h"
 
 static void*
 register_functions (void* data)
 {
   SDL_register_functions (NULL);
+  GL_register_functions (NULL);
   return NULL;
 }
 
+void
+load_scheme_files (void)
+{
+  scm_c_primitive_load ("gacela.scm");
+}
+
 int
 main (int argc, char *argv[])
 {
@@ -17,5 +41,6 @@ main (int argc, char *argv[])
   scm_c_eval_string ("(set-repl-prompt! \"gacela>\")");
   scm_c_eval_string ("(use-modules (ice-9 readline))");
   scm_c_eval_string ("(activate-readline)");
+  load_scheme_files ();
   scm_shell (argc, argv);
 }