X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fjwzgles.c;h=5b0b51a5dfc2a6506a92c2f1f0da7147385d08c4;hb=d1ae2829ff0fd2a96c16a0c8c5420efaa47d7b30;hp=094192c76ba61cc2feaba1d6d751ea2460e4ab9d;hpb=d5186197bc394e10a4402f7f6d23fbb14103bc50;p=xscreensaver diff --git a/hacks/glx/jwzgles.c b/hacks/glx/jwzgles.c index 094192c7..5b0b51a5 100644 --- a/hacks/glx/jwzgles.c +++ b/hacks/glx/jwzgles.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 2012-2014 Jamie Zawinski +/* xscreensaver, Copyright (c) 2012-2015 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -1588,6 +1588,12 @@ jwzgles_glVertex2f (GLfloat x, GLfloat y) jwzgles_glVertex3fv (v); } +void +jwzgles_glVertex2dv (const GLdouble *v) +{ + jwzgles_glVertex2f (v[0], v[1]); +} + void jwzgles_glVertex2fv (const GLfloat *v) { @@ -3977,6 +3983,15 @@ jwzgles_gluProject (GLdouble objx, GLdouble objy, GLdouble objz, } +void jwzgles_glViewport (GLuint x, GLuint y, GLuint w, GLuint h) +{ +# if TARGET_IPHONE_SIMULATOR +/* fprintf (stderr, "glViewport %dx%d\n", w, h); */ +# endif + glViewport (x, y, w, h); /* the real one */ +} + + /* The following functions are present in both OpenGL 1.1 and in OpenGLES 1, but are allowed within glNewList/glEndList, so we must wrap them to allow them to either be recorded in lists, or run directly. @@ -4143,7 +4158,6 @@ WRAP (glStencilOp, III) WRAP (glTexEnvf, IIF) WRAP (glTexEnvi, III) WRAP (glTranslatef, FFF) -WRAP (glViewport, IIII) #undef TYPE_IV #define TYPE_IV GLuint WRAP (glDeleteTextures, IIV)