    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        /** Reference to the Minecraft object. */
    013        final Minecraft mc;
    014
    015        public CallableGLInfo(Minecraft par1Minecraft)
    016        {
    017            this.mc = par1Minecraft;
    018        }
    019
    020        /**
    021         * Gets what OpenGL version you have.
    022         */
    023        public String getGLVersion()
    024        {
    025            return GL11.glGetString(GL11.GL_RENDERER) + " GL version " + GL11.glGetString(GL11.GL_VERSION) + ", " + GL11.glGetString(GL11.GL_VENDOR);
    026        }
    027
    028        public Object call()
    029        {
    030            return this.getGLVersion();
    031        }
    032    }