X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=gacela_GL.lisp;h=38e03ca8c6a9e62449a0b721cba7ef7def307290;hb=b1bda2479eebac341086054f217e20faadb7f7a7;hp=4ab7c888146bb45338dbb8cdac19c64752605010;hpb=b4bb1b1a7180f521bceb564003d906308f93b5b7;p=gacela.git diff --git a/gacela_GL.lisp b/gacela_GL.lisp index 4ab7c88..38e03ca 100644 --- a/gacela_GL.lisp +++ b/gacela_GL.lisp @@ -61,6 +61,7 @@ ;;; Buffers, Pixel Drawing/Reading (defconstant GL_RGB #x1907) +(defconstant GL_RGBA #x1908) ;;; Hints (defconstant GL_PERSPECTIVE_CORRECTION_HINT #x0C50) @@ -79,6 +80,7 @@ ;;; OpenGL 1.2 (defconstant GL_BGR #x80E0) +(defconstant GL_BGRA #x80E1) ;;; OpenGL Functions (defcfun "void gacela_glBegin (int mode)" 0 @@ -96,6 +98,9 @@ (defcfun "void gacela_glColor3f (float red, float green, float blue)" 0 "glColor3f (red, green, blue);") +(defcfun "void gacela_glColor4f (float red, float green, float blue, float alpha)" 0 + "glColor4f (red, green, blue, alpha);") + (defcfun "void gacela_glDepthFunc (int func)" 0 "glDepthFunc (func);") @@ -126,6 +131,9 @@ (defcfun "void gacela_glTranslatef (float x, float y, float z)" 0 "glTranslatef (x, y, z);") +(defcfun "void gacela_glVertex2f (float x, float y)" 0 + "glVertex2f (x, y);") + (defcfun "void gacela_glVertex3f (float x, float y, float z)" 0 "glVertex3f (x, y, z);") @@ -184,6 +192,7 @@ (defentry glClearColor (float float float float) (void "gacela_glClearColor")) (defentry glClearDepth (double) (void "gacela_glClearDepth")) (defentry glColor3f (float float float) (void "gacela_glColor3f")) +(defentry glColor4f (float float float float) (void "gacela_glColor4f")) (defentry glDepthFunc (int) (void "gacela_glDepthFunc")) (defentry glEnable (int) (void "gacela_glEnable")) (defentry glDisable (int) (void "gacela_glDisable")) @@ -194,6 +203,7 @@ (defentry glRotatef (float float float float) (void "gacela_glRotatef")) (defentry glShadeModel (int) (void "gacela_glShadeModel")) (defentry glTranslatef (float float float) (void "gacela_glTranslatef")) +(defentry glVertex2f (float float) (void "gacela_glVertex2f")) (defentry glVertex3f (float float float) (void "gacela_glVertex3f")) (defentry glViewport (int int int int) (void "gacela_glViewport")) (defentry glGenTextures (int) (object "gacela_glGenTextures"))