X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=gacela_GL.lisp;h=c17b049cc0f8688c232f931390a30565ef1570bc;hb=d0e2cdc7308eabc4727729f9ac085f2959696b90;hp=ad71629959d02e9c0a428e4981676c45ed2f6d1e;hpb=862921d72ab5a90aee46074c40da8c0688a3a20d;p=gacela.git diff --git a/gacela_GL.lisp b/gacela_GL.lisp index ad71629..c17b049 100644 --- a/gacela_GL.lisp +++ b/gacela_GL.lisp @@ -15,7 +15,10 @@ ;;; along with this program. If not, see . -(in-package :gacela) +(eval-when (compile load eval) + (when (not (find-package 'gacela)) (make-package 'gacela :nicknames '(gg) :use '(lisp))) + (in-package 'gacela :nicknames '(gg) :use '(lisp))) + (defmacro mapcconst (type c-type name) (let ((c-header (concatenate 'string c-type " gacela_" name " (void)")) @@ -200,6 +203,12 @@ (defcfun "void gacela_glOrtho (float left, float right, float bottom, float top, float near_val, float far_val)" 0 "glOrtho (left, right, bottom, top, near_val, far_val);") +(defcfun "void gacela_glPushMatrix (void)" 0 + "glPushMatrix ();") + +(defcfun "void gacela_glPopMatrix (void)" 0 + "glPopMatrix ();") + (defcfun "void gacela_gluPerspective (double fovy, double aspect, double zNear, double zFar)" 0 "gluPerspective (fovy, aspect, zNear, zFar);") @@ -238,6 +247,8 @@ (defentry glNormal3f (float float float) (void "gacela_glNormal3f")) (defentry glBlendFunc (int int) (void "gacela_glBlendFunc")) (defentry glOrtho (float float float float float float) (void "gacela_glOrtho")) +(defentry glPushMatrix () (void "gacela_glPushMatrix")) +(defentry glPopMatrix () (void "gacela_glPopMatrix")) (defentry gluPerspective (double double double double) (void "gacela_gluPerspective")) (defentry gluBuild2DMipmaps (int int int int int int int) (int "gacela_gluBuild2DMipmaps"))