276277278279280281282283284285
@Override public void glDeleteTextures (int n, IntBuffer textures) { for (int i = 0; i < n; i++) { int id = textures.get(); WebGLTexture texture = this.textures.get(id); deallocateTextureId(id); gl.deleteTexture(texture); } }
334335336337338339340341342
gl.frontFace(mode); } @Override public void glGenTextures (int n, IntBuffer textures) { WebGLTexture texture = gl.createTexture(); int id = allocateTextureId(texture); textures.put(id); }
275276277278279280281282283284
333334335336337338339340341