List of usage examples for org.lwjgl.opengl GL11 glIsEnabled
@NativeType("GLboolean") public static boolean glIsEnabled(@NativeType("GLenum") int cap)
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static boolean glIsEnabled(int a) { return GL11.glIsEnabled(a); }
From source file:xilef11.mc.realtimeclock.client.gui.Clock.java
License:Open Source License
/**Draw the Time * /*from ww w .j a v a2 s . c o m*/ */ public static void draw(Minecraft mc) { //get the correct position and scale TODO this should only be done when the config changes or the window is resized int xPos = RenderingPosHelper.getXPosByScreenSize(mc, ConfigurationHandler.clockPosX); int yPos = RenderingPosHelper.getYPosByScreenSize(mc, ConfigurationHandler.clockPosY); //draw the time GL11.glPushMatrix(); GL11.glScalef(clockScale, clockScale, 1); //fix for the weirdness in the achievements GUI boolean lightingState = GL11.glIsEnabled(GL11.GL_LIGHTING);//get the current state if (lightingState) GL11.glDisable(GL11.GL_LIGHTING);//we need this off //actually draw the time mc.fontRendererObj.drawString(getTimeString(mc), Math.round(xPos / clockScale), Math.round(yPos / clockScale), ConfigurationHandler.color, ConfigurationHandler.drawShadow); if (lightingState) GL11.glEnable(GL11.GL_LIGHTING);//if it was on, turn it back on. GL11.glPopMatrix(); }
From source file:zsawyer.mods.stereoscopic3d.renderers.StereoscopicRenderer.java
License:Open Source License
protected void savePreviousState() { previousState = new HashMap<Integer, Boolean>(); for (int enabler : enablesToCheck) { previousState.put(enabler, GL11.glIsEnabled(enabler)); DebugUtil.checkGLError();//from w w w . j a v a2 s. c om } }