194195196197198199200201202203204
gl.glTexCoord2f(textureRight, textureTop); gl.glVertex3f(1.0f, 0.0f, 0.0f); gl.glTexCoord2f(textureRight, textureTop); gl.glVertex3f(1.0f, 1.0f, 0.0f); gl.glTexCoord2f(textureLeft, textureTop); gl.glVertex3f(0.0f, 1.0f, 0.0f); gl.glEnd(); }
197198199200201202203204205206207
gl.glTexCoord2f(textureRight, textureTop); gl.glVertex3f(1.0f, 1.0f, 0.0f); gl.glTexCoord2f(textureLeft, textureTop); gl.glVertex3f(0.0f, 1.0f, 0.0f); gl.glEnd(); } /** * Called back before the OpenGL context is destroyed. Release resource such as buffers