return id;
}
public synchronized void update2dTexture_ConstanctColor(int color, int id) {
IntBuffer ibuf = bbuf.asIntBuffer();
for (int i = 0; i < ibuf.capacity(); i++) ibuf.put(i, color);
GL11.glBindTexture(GL11.GL_TEXTURE_2D, id);
int targetFormat = GL11.GL_RGBA;
GL11.glTexSubImage2D(GL11.GL_TEXTURE_2D, 0, targetFormat, TEXTURE_RESX, TEXTURE_RESY, 0, GL11.GL_RGBA,
GL11.GL_UNSIGNED_BYTE, bbuf.asIntBuffer());