Java 类org.lwjgl.opengl.ARBMultitexture 实例源码

项目:BaseClient    文件:OpenGlHelper.java   
/**
 * 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_;
    }
}
项目:BaseClient    文件:OpenGlHelper.java   
/**
 * 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_;
    }
}
项目:Backmemed    文件:OpenGlHelper.java   
/**
 * 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;
    }
}
项目:CustomWorldGen    文件:OpenGlHelper.java   
/**
 * 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;
    }
}
项目:Resilience-Client-Source    文件:OpenGlHelper.java   
/**
 * 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;
    }
}
项目:ExpandedRailsMod    文件:OpenGlHelper.java   
/**
 * 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;
    }
}
项目:Cauldron    文件:ShaderManager.java   
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);
        }
    }
}
项目:Cauldron    文件:OpenGlHelper.java   
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_;
    }
}
项目:Cauldron    文件:ShaderManager.java   
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);
        }
    }
}
项目:Cauldron    文件:OpenGlHelper.java   
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_;
    }
}
项目:RuneCraftery    文件:OpenGlHelper.java   
/**
 * 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;
    }
}
项目:BetterNutritionMod    文件:OpenGlHelper.java   
/**
 * 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;
    }
}
项目:DecompiledMinecraft    文件:OpenGlHelper.java   
/**
 * 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);
    }
}
项目:DecompiledMinecraft    文件:OpenGlHelper.java   
/**
 * 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);
    }
}
项目:DecompiledMinecraft    文件:OpenGlHelper.java   
/**
 * 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_);
    }
}
项目:BaseClient    文件:OpenGlHelper.java   
/**
 * 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);
    }
}
项目:BaseClient    文件:OpenGlHelper.java   
/**
 * 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);
    }
}
项目:BaseClient    文件:OpenGlHelper.java   
/**
 * 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);
    }
}
项目:BaseClient    文件:OpenGlHelper.java   
/**
 * 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);
    }
}
项目:Backmemed    文件:OpenGlHelper.java   
/**
 * 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);
    }
}
项目:Backmemed    文件:OpenGlHelper.java   
/**
 * 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);
    }
}
项目:CustomWorldGen    文件:OpenGlHelper.java   
/**
 * 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);
    }
}
项目:CustomWorldGen    文件:OpenGlHelper.java   
/**
 * 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);
    }
}
项目:Resilience-Client-Source    文件:OpenGlHelper.java   
/**
 * 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);
    }
}
项目:Resilience-Client-Source    文件:OpenGlHelper.java   
/**
 * 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);
    }
}
项目:IvToolkit    文件:IvDepthBuffer.java   
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);
}
项目:ExpandedRailsMod    文件:OpenGlHelper.java   
/**
 * 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);
    }
}
项目:ExpandedRailsMod    文件:OpenGlHelper.java   
/**
 * 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);
    }
}
项目:Cauldron    文件:OpenGlHelper.java   
public static void setActiveTexture(int p_77473_0_)
{
    if (field_153215_z)
    {
        ARBMultitexture.glActiveTextureARB(p_77473_0_);
    }
    else
    {
        GL13.glActiveTexture(p_77473_0_);
    }
}
项目:Cauldron    文件:OpenGlHelper.java   
public static void setClientActiveTexture(int p_77472_0_)
{
    if (field_153215_z)
    {
        ARBMultitexture.glClientActiveTextureARB(p_77472_0_);
    }
    else
    {
        GL13.glClientActiveTexture(p_77472_0_);
    }
}
项目:Cauldron    文件:OpenGlHelper.java   
public static void setActiveTexture(int p_77473_0_)
{
    if (field_153215_z)
    {
        ARBMultitexture.glActiveTextureARB(p_77473_0_);
    }
    else
    {
        GL13.glActiveTexture(p_77473_0_);
    }
}
项目:Cauldron    文件:OpenGlHelper.java   
public static void setClientActiveTexture(int p_77472_0_)
{
    if (field_153215_z)
    {
        ARBMultitexture.glClientActiveTextureARB(p_77472_0_);
    }
    else
    {
        GL13.glClientActiveTexture(p_77472_0_);
    }
}
项目:RuneCraftery    文件:OpenGlHelper.java   
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_);
   }

}
项目:RuneCraftery    文件:OpenGlHelper.java   
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_);
   }

}
项目:RuneCraftery    文件:OpenGlHelper.java   
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_);
   }

}
项目:RuneCraftery    文件:OpenGlHelper.java   
/**
 * 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);
    }
}
项目:RuneCraftery    文件:OpenGlHelper.java   
/**
 * 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);
    }
}
项目:OpenGX    文件:RenderUtils.java   
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);
    }
}
项目:OpenGX    文件:RenderUtils.java   
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);
    }
}
项目:BetterNutritionMod    文件:OpenGlHelper.java   
/**
 * 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);
    }
}