X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=gacela_SDL.lisp;h=502c03a102dff9270436e877ad0a45e30bced6e4;hb=c20d5336dc8c0a14afb21a57587c1f9928edab67;hp=6ff5c1b02278dbe9d5860fc920329b0af771f0d3;hpb=8caa865a3194eb573382a411df7636ebb472ca1f;p=gacela.git diff --git a/gacela_SDL.lisp b/gacela_SDL.lisp index 6ff5c1b..502c03a 100644 --- a/gacela_SDL.lisp +++ b/gacela_SDL.lisp @@ -15,7 +15,10 @@ ;;; along with this program. If not, see . -(in-package :gacela) +(when (not (find-package 'gacela)) + (make-package 'gacela :nicknames '(gg) :use '(lisp))) + +(eval-when (eval) (in-package 'gacela :nicknames '(gg) :use '(lisp))) (defmacro mapcconst (type c-type name) (let ((c-header (concatenate 'string c-type " gacela_" name " (void)")) @@ -29,9 +32,7 @@ (clines "#include ") (clines "#include ") -(clines "#include ") (clines "#include ") -(clines "#include ") ;;; SDL constants as functions (mapcconst int "int" "SDL_INIT_TIMER") @@ -140,9 +141,6 @@ (defcfun "int gacela_SDL_EnableKeyRepeat (int delay, int interval)" 0 "return SDL_EnableKeyRepeat (delay, interval);") -(defcfun "int gacela_zoomSurface (int src, float zoomx, float zoomy, int smooth)" 0 - "return zoomSurface (src, zoomx, zoomy, smooth);") - (defcfun "int gacela_SDL_ByteOrder (void)" 0 "return SDL_BYTEORDER;") @@ -185,7 +183,6 @@ ;(defentry free (int) (void "gacela_free")) (defentry SDL_GL_SwapBuffers () (void "gacela_SDL_GL_SwapBuffers")) (defentry SDL_EnableKeyRepeat (int int) (int "gacela_SDL_EnableKeyRepeat")) -(defentry zoomSurface (int float float int) (int "gacela_zoomSurface")) (defentry SDL_ByteOrder () (int "gacela_SDL_ByteOrder")) ;;; C-Gacela Functions @@ -211,7 +208,6 @@ ;(defentry apply-surface2 (int int int int int int int int int) (void "apply_surface")) ;(defentry render-text2 (int string int int int) (int "render_text")) -;(defentry fill-surface (int int int int) (void "fill_surface")) ;(defentry box-collision (int int int int int int) (int "box_collision")) ;(defentry create-SDL_Surface (int int int int int int) (int "create_SDL_Surface")) ;(defentry copy-SDL_Surface (int) (int "copy_SDL_Surface"))