/** * Sets the current coordinates of the given lightmap texture */ public static void setLightmapTextureCoords(int target, float p_77475_1_, float p_77475_2_) { if (arbMultitexture) { ARBMultitexture.glMultiTexCoord2fARB(target, p_77475_1_, p_77475_2_); } else { GL13.glMultiTexCoord2f(target, p_77475_1_, p_77475_2_); } if (target == lightmapTexUnit) { lastBrightnessX = p_77475_1_; lastBrightnessY = p_77475_2_; } }
/** * Sets the current coordinates of the given lightmap texture */ public static void setLightmapTextureCoords(int target, float p_77475_1_, float t) { if (arbMultitexture) { ARBMultitexture.glMultiTexCoord2fARB(target, p_77475_1_, t); } else { GL13.glMultiTexCoord2f(target, p_77475_1_, t); } if (target == lightmapTexUnit) { lastBrightnessX = p_77475_1_; lastBrightnessY = t; } }
/** * Sets the current coordinates of the given lightmap texture */ public static void setLightmapTextureCoords(int par0, float par1, float par2) { if (useMultitextureARB) { ARBMultitexture.glMultiTexCoord2fARB(par0, par1, par2); } else { GL13.glMultiTexCoord2f(par0, par1, par2); } if (par0 == lightmapTexUnit) { lastBrightnessX = par1; lastBrightnessY = par2; } }
public void func_147993_b() { OpenGlHelper.func_153161_d(0); field_147999_d = -1; staticShaderManager = null; field_148000_e = true; for (int i = 0; i < this.field_148010_h.size(); ++i) { if (this.field_147997_f.get(this.field_147998_g.get(i)) != null) { GL13.glActiveTexture(ARBMultitexture.GL_TEXTURE0_ARB + i); GL11.glBindTexture(GL11.GL_TEXTURE_2D, 0); } } }
public static void setLightmapTextureCoords(int p_77475_0_, float p_77475_1_, float p_77475_2_) { if (field_153215_z) { ARBMultitexture.glMultiTexCoord2fARB(p_77475_0_, p_77475_1_, p_77475_2_); } else { GL13.glMultiTexCoord2f(p_77475_0_, p_77475_1_, p_77475_2_); } if (p_77475_0_ == lightmapTexUnit) { lastBrightnessX = p_77475_1_; lastBrightnessY = p_77475_2_; } }
/** * Sets the current lightmap texture to the specified OpenGL constant */ public static void setActiveTexture(int texture) { if (arbMultitexture) { ARBMultitexture.glActiveTextureARB(texture); } else { GL13.glActiveTexture(texture); } }
/** * Sets the current lightmap texture to the specified OpenGL constant */ public static void setClientActiveTexture(int texture) { if (arbMultitexture) { ARBMultitexture.glClientActiveTextureARB(texture); } else { GL13.glClientActiveTexture(texture); } }
/** * Sets the current coordinates of the given lightmap texture */ public static void setLightmapTextureCoords(int target, float p_77475_1_, float p_77475_2_) { if (arbMultitexture) { ARBMultitexture.glMultiTexCoord2fARB(target, p_77475_1_, p_77475_2_); } else { GL13.glMultiTexCoord2f(target, p_77475_1_, p_77475_2_); } }
/** * Sets the current lightmap texture to the specified OpenGL constant */ public static void setActiveTexture(int par0) { if (useMultitextureARB) { ARBMultitexture.glActiveTextureARB(par0); } else { GL13.glActiveTexture(par0); } }
/** * Sets the current lightmap texture to the specified OpenGL constant */ public static void setClientActiveTexture(int par0) { if (useMultitextureARB) { ARBMultitexture.glClientActiveTextureARB(par0); } else { GL13.glClientActiveTexture(par0); } }
public static void bindTextureForSource(int glTexture, int textureIndex) { GlStateManager.bindTexture(textureIndex); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL14.GL_TEXTURE_COMPARE_MODE, GL11.GL_NONE); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL14.GL_DEPTH_TEXTURE_MODE, GL11.GL_LUMINANCE); OpenGlHelper.setActiveTexture(glTexture); GlStateManager.bindTexture(textureIndex); OpenGlHelper.setActiveTexture(ARBMultitexture.GL_TEXTURE0_ARB); }
public static void setActiveTexture(int p_77473_0_) { if (field_153215_z) { ARBMultitexture.glActiveTextureARB(p_77473_0_); } else { GL13.glActiveTexture(p_77473_0_); } }
public static void setClientActiveTexture(int p_77472_0_) { if (field_153215_z) { ARBMultitexture.glClientActiveTextureARB(p_77472_0_); } else { GL13.glClientActiveTexture(p_77472_0_); } }
public static void func_77473_a(int p_77473_0_) { if(field_77477_c) { ARBMultitexture.glActiveTextureARB(p_77473_0_); } else { GL13.glActiveTexture(p_77473_0_); } }
public static void func_77472_b(int p_77472_0_) { if(field_77477_c) { ARBMultitexture.glClientActiveTextureARB(p_77472_0_); } else { GL13.glClientActiveTexture(p_77472_0_); } }
public static void func_77475_a(int p_77475_0_, float p_77475_1_, float p_77475_2_) { if(field_77477_c) { ARBMultitexture.glMultiTexCoord2fARB(p_77475_0_, p_77475_1_, p_77475_2_); } else { GL13.glMultiTexCoord2f(p_77475_0_, p_77475_1_, p_77475_2_); } }
public static void disableLighting() { GL11.glDisable(GL11.GL_LIGHTING); if (GLContext.getCapabilities().GL_ARB_multitexture && !GLContext.getCapabilities().OpenGL13) { ARBMultitexture.glActiveTextureARB(OpenGlHelper.lightmapTexUnit); GL11.glDisable(GL11.GL_TEXTURE_2D); ARBMultitexture.glActiveTextureARB(OpenGlHelper.defaultTexUnit); } else { GL13.glActiveTexture(OpenGlHelper.lightmapTexUnit); GL11.glDisable(GL11.GL_TEXTURE_2D); GL13.glActiveTexture(OpenGlHelper.defaultTexUnit); } }
public static void enableLighting() { GL11.glEnable(GL11.GL_LIGHTING); if (GLContext.getCapabilities().GL_ARB_multitexture && !GLContext.getCapabilities().OpenGL13) { ARBMultitexture.glActiveTextureARB(OpenGlHelper.lightmapTexUnit); GL11.glEnable(GL11.GL_TEXTURE_2D); ARBMultitexture.glActiveTextureARB(OpenGlHelper.defaultTexUnit); } else { GL13.glActiveTexture(OpenGlHelper.lightmapTexUnit); GL11.glEnable(GL11.GL_TEXTURE_2D); GL13.glActiveTexture(OpenGlHelper.defaultTexUnit); } }