    001    package net.minecraft.src;
    002
    003    import cpw.mods.fml.common.Side;
    004    import cpw.mods.fml.common.asm.SideOnly;
    005    import java.util.concurrent.Callable;
    006    import net.minecraft.client.Minecraft;
    007    import org.lwjgl.opengl.GL11;
    008
    009    @SideOnly(Side.CLIENT)
    010    public class CallableGLInfo implements Callable
    011    {
    012        /** The Minecraft instance. */
    013        final Minecraft mc;
    014
    015        public CallableGLInfo(Minecraft par1Minecraft)
    016        {
    017            this.mc = par1Minecraft;
    018        }
    019
    020        public String getTexturePack()
    021        {
    022            return GL11.glGetString(GL11.GL_RENDERER) + " GL version " + GL11.glGetString(GL11.GL_VERSION) + ", " + GL11.glGetString(GL11.GL_VENDOR);
    023        }
    024
    025        public Object call()
    026        {
    027            return this.getTexturePack();
    028        }
    029    }