当前位置: 首页>>代码示例>>Java>>正文


Java ARBMultitexture类代码示例

本文整理汇总了Java中org.lwjgl.opengl.ARBMultitexture的典型用法代码示例。如果您正苦于以下问题:Java ARBMultitexture类的具体用法?Java ARBMultitexture怎么用?Java ARBMultitexture使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ARBMultitexture类属于org.lwjgl.opengl包,在下文中一共展示了ARBMultitexture类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setLightmapTextureCoords

import org.lwjgl.opengl.ARBMultitexture; //导入依赖的package包/类
/**
 * 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_;
    }
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:21,代码来源:OpenGlHelper.java

示例2: setLightmapTextureCoords

import org.lwjgl.opengl.ARBMultitexture; //导入依赖的package包/类
/**
 * 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;
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:21,代码来源:OpenGlHelper.java

示例3: setLightmapTextureCoords

import org.lwjgl.opengl.ARBMultitexture; //导入依赖的package包/类
/**
 * 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;
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:21,代码来源:OpenGlHelper.java

示例4: func_147993_b

import org.lwjgl.opengl.ARBMultitexture; //导入依赖的package包/类
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);
        }
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:17,代码来源:ShaderManager.java

示例5: setLightmapTextureCoords

import org.lwjgl.opengl.ARBMultitexture; //导入依赖的package包/类
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_;
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:18,代码来源:OpenGlHelper.java

示例6: setActiveTexture

import org.lwjgl.opengl.ARBMultitexture; //导入依赖的package包/类
/**
 * 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);
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:15,代码来源:OpenGlHelper.java

示例7: setClientActiveTexture

import org.lwjgl.opengl.ARBMultitexture; //导入依赖的package包/类
/**
 * 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);
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:15,代码来源:OpenGlHelper.java

示例8: setLightmapTextureCoords

import org.lwjgl.opengl.ARBMultitexture; //导入依赖的package包/类
/**
 * 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_);
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:15,代码来源:OpenGlHelper.java

示例9: setActiveTexture

import org.lwjgl.opengl.ARBMultitexture; //导入依赖的package包/类
/**
 * 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);
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:15,代码来源:OpenGlHelper.java

示例10: setClientActiveTexture

import org.lwjgl.opengl.ARBMultitexture; //导入依赖的package包/类
/**
 * 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);
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:15,代码来源:OpenGlHelper.java

示例11: bindTextureForSource

import org.lwjgl.opengl.ARBMultitexture; //导入依赖的package包/类
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);
}
 
开发者ID:Ivorforce,项目名称:IvToolkit,代码行数:11,代码来源:IvDepthBuffer.java

示例12: setActiveTexture

import org.lwjgl.opengl.ARBMultitexture; //导入依赖的package包/类
public static void setActiveTexture(int p_77473_0_)
{
    if (field_153215_z)
    {
        ARBMultitexture.glActiveTextureARB(p_77473_0_);
    }
    else
    {
        GL13.glActiveTexture(p_77473_0_);
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:12,代码来源:OpenGlHelper.java

示例13: setClientActiveTexture

import org.lwjgl.opengl.ARBMultitexture; //导入依赖的package包/类
public static void setClientActiveTexture(int p_77472_0_)
{
    if (field_153215_z)
    {
        ARBMultitexture.glClientActiveTextureARB(p_77472_0_);
    }
    else
    {
        GL13.glClientActiveTexture(p_77472_0_);
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:12,代码来源:OpenGlHelper.java

示例14: func_77473_a

import org.lwjgl.opengl.ARBMultitexture; //导入依赖的package包/类
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_);
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:9,代码来源:OpenGlHelper.java

示例15: func_77472_b

import org.lwjgl.opengl.ARBMultitexture; //导入依赖的package包/类
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_);
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:9,代码来源:OpenGlHelper.java


注:本文中的org.lwjgl.opengl.ARBMultitexture类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。