|
if(data != null) {
gl.glTexSubImage2D(GL.GL_TEXTURE_2D, 0, 0, 0, formatWidth, formatHeight, inputColorOrder, inputFormat, data);
}
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);
|