    001package cpw.mods.fml.client;
    002
    003import org.lwjgl.opengl.GL11;
    004
    005import net.minecraft.client.renderer.texture.Texture;
    006import net.minecraft.client.renderer.texture.TextureStitched;
    007
    008public class OpenGL43TextureHelper extends TextureHelper {
    009
    010    public OpenGL43TextureHelper()
    011    {
    012//        GL43.
    013//        glCopyMethod = Class.forName("org.lwjgl.OpenGL")
    014    }
    015    @Override
    016    public void doTextureCopy(Texture atlas, Texture source, int atlasX, int atlasY)
    017    {
    018//        System.out.printf("Src: %d Targ: %d, Coords %d %d %d %d\n", source.getGlTextureId(), atlas.getGlTextureId(), atlasX, atlasY, source.getWidth(), source.getHeight());
    019//        GL43.glCopyImageSubData(source.getGlTextureId(), GL11.GL_TEXTURE_2D, 0, 0, 0, 0, atlas.getGlTextureId(), GL11.GL_TEXTURE_2D, 0, atlasX, atlasY, 0, source.getWidth(), source.getHeight(), 1);
    020//        System.out.printf("Err: %x\n", GL11.glGetError());
    021    }
    022
    023    @Override
    024    public void doTextureUpload(TextureStitched source)
    025    {
    026//        source.createAndUploadTextures();
    027    }
    028
    029}