From dd2b7988d3aa135ae9247df2ca89274247ed5612 Mon Sep 17 00:00:00 2001 From: jsancho Date: Sun, 1 May 2011 15:37:31 +0000 Subject: [PATCH] =?utf8?q?Mapeo=20de=20primeras=20funciones=20SDL,=20falta?= =?utf8?q?=20mirar=20c=C3=B3mo=20se=20hace=20el=20mapeo=20de=20las=20const?= =?utf8?q?antes=20y=20de=20las=20estructuras?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/gacela_SDL.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/gacela_SDL.c b/src/gacela_SDL.c index b1a60e6..205092a 100644 --- a/src/gacela_SDL.c +++ b/src/gacela_SDL.c @@ -1,17 +1,29 @@ #include #include -#include #include "gacela_SDL.h" SCM gacela_SDL_Init (SCM flags) { - return scm_make_integer (SDL_Init (scm_num2int (flags, "SDL_Init"))); + return scm_int2num (SDL_Init (scm_num2int (flags, 0, "SDL_Init"))); +} + +SCM +gacela_SDL_Quit () +{ + SDL_Quit (); + return SCM_UNSPECIFIED; +} + +SCM +gacela_SDL_SetVideoMode (SCM width, SCM height, SCM bpp, SCM flags) +{ } void* SDL_register_functions (void* data) { - scm_c_define_gsubr ("SDL_Init", 1, 0, 0, &gacela_SDL_Init); + scm_c_define_gsubr ("SDL_Init", 1, 0, 0, gacela_SDL_Init); + scm_c_define_gsubr ("SDL_Quit", 0, 0, 0, gacela_SDL_Quit); return NULL; } -- 2.39.5