void {@native glVertex3d}(GLdouble x, GLdouble y, GLdouble z);
181182183184185186187188189190191
gl.glBegin(GL.GL_QUADS); gl.glTexCoord2f(0,0); gl.glVertex3d(-1, 1,0); gl.glTexCoord2f(extendX,0); gl.glVertex3d(1, 1,0); gl.glTexCoord2f(extendX,extendY); gl.glVertex3d(1, -1,0); gl.glTexCoord2f(0,extendY); gl.glVertex3d(-1, -1,0); gl.glEnd();
183184185186187188189190191192193
gl.glTexCoord2f(0,0); gl.glVertex3d(-1, 1,0); gl.glTexCoord2f(extendX,0); gl.glVertex3d(1, 1,0); gl.glTexCoord2f(extendX,extendY); gl.glVertex3d(1, -1,0); gl.glTexCoord2f(0,extendY); gl.glVertex3d(-1, -1,0); gl.glEnd(); drawable.swapBuffers();
185186187188189190191192193194195
gl.glTexCoord2f(extendX,0); gl.glVertex3d(1, 1,0); gl.glTexCoord2f(extendX,extendY); gl.glVertex3d(1, -1,0); gl.glTexCoord2f(0,extendY); gl.glVertex3d(-1, -1,0); gl.glEnd(); drawable.swapBuffers();