當前位置: 首頁>>代碼示例>>Java>>正文


Java GlStateManager.callList方法代碼示例

本文整理匯總了Java中net.minecraft.client.renderer.GlStateManager.callList方法的典型用法代碼示例。如果您正苦於以下問題:Java GlStateManager.callList方法的具體用法?Java GlStateManager.callList怎麽用?Java GlStateManager.callList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.minecraft.client.renderer.GlStateManager的用法示例。


在下文中一共展示了GlStateManager.callList方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: renderGlList

import net.minecraft.client.renderer.GlStateManager; //導入方法依賴的package包/類
public void renderGlList()
{
    Entity entity = this.mc.getRenderViewEntity();
    double d0 = entity.prevPosX + (entity.posX - entity.prevPosX) * (double)this.partialTicks;
    double d1 = entity.prevPosY + (entity.posY - entity.prevPosY) * (double)this.partialTicks;
    double d2 = entity.prevPosZ + (entity.posZ - entity.prevPosZ) * (double)this.partialTicks;
    double d3 = (double)((float)(this.cloudTickCounter - this.cloudTickCounterUpdate) + this.partialTicks);
    float f = (float)(d0 - this.cloudPlayerX + d3 * 0.03D);
    float f1 = (float)(d1 - this.cloudPlayerY);
    float f2 = (float)(d2 - this.cloudPlayerZ);
    GlStateManager.pushMatrix();

    if (this.renderFancy)
    {
        GlStateManager.translate(-f / 12.0F, -f1, -f2 / 12.0F);
    }
    else
    {
        GlStateManager.translate(-f, -f1, -f2);
    }

    GlStateManager.callList(this.glListClouds);
    GlStateManager.popMatrix();
    GlStateManager.resetColor();
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:26,代碼來源:CloudRenderer.java

示例2: renderGlList

import net.minecraft.client.renderer.GlStateManager; //導入方法依賴的package包/類
public void renderGlList()
{
    Entity entity = this.mc.getRenderViewEntity();
    double d0 = entity.prevPosX + (entity.posX - entity.prevPosX) * (double)this.partialTicks;
    double d1 = entity.prevPosY + (entity.posY - entity.prevPosY) * (double)this.partialTicks;
    double d2 = entity.prevPosZ + (entity.posZ - entity.prevPosZ) * (double)this.partialTicks;
    double d3 = (double)((float)(this.cloudTickCounter - this.updateCloudTickCounter) + this.partialTicks);
    float f = (float)(d0 - this.updatePlayerX + d3 * 0.03D);
    float f1 = (float)(d1 - this.updatePlayerY);
    float f2 = (float)(d2 - this.updatePlayerZ);
    GlStateManager.pushMatrix();

    if (this.renderFancy)
    {
        GlStateManager.translate(-f / 12.0F, -f1, -f2 / 12.0F);
    }
    else
    {
        GlStateManager.translate(-f, -f1, -f2);
    }

    GlStateManager.callList(this.glListClouds);
    GlStateManager.popMatrix();
    GlStateManager.resetColor();
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:26,代碼來源:CloudRenderer.java

示例3: renderWithRotation

import net.minecraft.client.renderer.GlStateManager; //導入方法依賴的package包/類
@Override
public void renderWithRotation(float scale)
{
    if (!this.isHidden)
    {
        if (this.showModel)
        {
            if (!this.compiled)
            {
                this.compileDisplayList(scale);
            }

            GlStateManager.pushMatrix();
            GlStateManager.translate(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale);

            GlStateManager.scale(scaleX, scaleY, scaleZ);

            if (this.rotateAngleY != 0.0F)
            {
                GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F);
            }

            if (this.rotateAngleX != 0.0F)
            {
                GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F);
            }

            if (this.rotateAngleZ != 0.0F)
            {
                GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F);
            }

            GlStateManager.callList(this.displayList);
            GlStateManager.popMatrix();
        }
    }
}
 
開發者ID:iChun,項目名稱:BetterThanLlamas,代碼行數:38,代碼來源:ModelFancy.java

示例4: renderWithRotation

import net.minecraft.client.renderer.GlStateManager; //導入方法依賴的package包/類
public void renderWithRotation(float p_78791_1_)
{
    if (!this.isHidden)
    {
        if (this.showModel)
        {
            if (!this.compiled)
            {
                this.compileDisplayList(p_78791_1_);
            }

            GlStateManager.pushMatrix();
            GlStateManager.translate(this.rotationPointX * p_78791_1_, this.rotationPointY * p_78791_1_, this.rotationPointZ * p_78791_1_);

            if (this.rotateAngleY != 0.0F)
            {
                GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F);
            }

            if (this.rotateAngleX != 0.0F)
            {
                GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F);
            }

            if (this.rotateAngleZ != 0.0F)
            {
                GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F);
            }

            GlStateManager.callList(this.displayList);
            GlStateManager.popMatrix();
        }
    }
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:35,代碼來源:ModelRenderer.java

示例5: renderWithRotation

import net.minecraft.client.renderer.GlStateManager; //導入方法依賴的package包/類
public void renderWithRotation(float p_78791_1_)
{
    if (!this.isHidden && this.showModel)
    {
        if (!this.compiled)
        {
            this.compileDisplayList(p_78791_1_);
        }

        GlStateManager.pushMatrix();
        GlStateManager.translate(this.rotationPointX * p_78791_1_, this.rotationPointY * p_78791_1_, this.rotationPointZ * p_78791_1_);

        if (this.rotateAngleY != 0.0F)
        {
            GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F);
        }

        if (this.rotateAngleX != 0.0F)
        {
            GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F);
        }

        if (this.rotateAngleZ != 0.0F)
        {
            GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F);
        }

        GlStateManager.callList(this.displayList);
        GlStateManager.popMatrix();
    }
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:32,代碼來源:ModelRenderer.java

示例6: renderWithRotation

import net.minecraft.client.renderer.GlStateManager; //導入方法依賴的package包/類
@SideOnly(Side.CLIENT)
public void renderWithRotation(float scale)
{
    if (!this.isHidden)
    {
        if (this.showModel)
        {
            if (!this.compiled)
            {
                this.compileDisplayList(scale);
            }

            GlStateManager.pushMatrix();
            GlStateManager.translate(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale);

            if (this.rotateAngleY != 0.0F)
            {
                GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F);
            }

            if (this.rotateAngleX != 0.0F)
            {
                GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F);
            }

            if (this.rotateAngleZ != 0.0F)
            {
                GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F);
            }

            GlStateManager.callList(this.displayList);
            GlStateManager.popMatrix();
        }
    }
}
 
開發者ID:F1r3w477,項目名稱:CustomWorldGen,代碼行數:36,代碼來源:ModelRenderer.java

示例7: render

import net.minecraft.client.renderer.GlStateManager; //導入方法依賴的package包/類
public void render(float p_78785_1_)
{
    if (!this.isHidden)
    {
        if (this.showModel)
        {
            if (!this.compiled)
            {
                this.compileDisplayList(p_78785_1_);
            }

            GlStateManager.translate(this.offsetX, this.offsetY, this.offsetZ);

            if (this.rotateAngleX == 0.0F && this.rotateAngleY == 0.0F && this.rotateAngleZ == 0.0F)
            {
                if (this.rotationPointX == 0.0F && this.rotationPointY == 0.0F && this.rotationPointZ == 0.0F)
                {
                    GlStateManager.callList(this.displayList);

                    if (this.childModels != null)
                    {
                        for (int k = 0; k < this.childModels.size(); ++k)
                        {
                            ((ModelRenderer)this.childModels.get(k)).render(p_78785_1_);
                        }
                    }
                }
                else
                {
                    GlStateManager.translate(this.rotationPointX * p_78785_1_, this.rotationPointY * p_78785_1_, this.rotationPointZ * p_78785_1_);
                    GlStateManager.callList(this.displayList);

                    if (this.childModels != null)
                    {
                        for (int j = 0; j < this.childModels.size(); ++j)
                        {
                            ((ModelRenderer)this.childModels.get(j)).render(p_78785_1_);
                        }
                    }

                    GlStateManager.translate(-this.rotationPointX * p_78785_1_, -this.rotationPointY * p_78785_1_, -this.rotationPointZ * p_78785_1_);
                }
            }
            else
            {
                GlStateManager.pushMatrix();
                GlStateManager.translate(this.rotationPointX * p_78785_1_, this.rotationPointY * p_78785_1_, this.rotationPointZ * p_78785_1_);

                if (this.rotateAngleZ != 0.0F)
                {
                    GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F);
                }

                if (this.rotateAngleY != 0.0F)
                {
                    GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F);
                }

                if (this.rotateAngleX != 0.0F)
                {
                    GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F);
                }

                GlStateManager.callList(this.displayList);

                if (this.childModels != null)
                {
                    for (int i = 0; i < this.childModels.size(); ++i)
                    {
                        ((ModelRenderer)this.childModels.get(i)).render(p_78785_1_);
                    }
                }

                GlStateManager.popMatrix();
            }

            GlStateManager.translate(-this.offsetX, -this.offsetY, -this.offsetZ);
        }
    }
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:81,代碼來源:ModelRenderer.java

示例8: render

import net.minecraft.client.renderer.GlStateManager; //導入方法依賴的package包/類
public void render(float p_78785_1_)
{
    if (!this.isHidden && this.showModel)
    {
        if (!this.compiled)
        {
            this.compileDisplayList(p_78785_1_);
        }

        GlStateManager.translate(this.offsetX, this.offsetY, this.offsetZ);

        if (this.rotateAngleX == 0.0F && this.rotateAngleY == 0.0F && this.rotateAngleZ == 0.0F)
        {
            if (this.rotationPointX == 0.0F && this.rotationPointY == 0.0F && this.rotationPointZ == 0.0F)
            {
                GlStateManager.callList(this.displayList);

                if (this.childModels != null)
                {
                    for (int k = 0; k < this.childModels.size(); ++k)
                    {
                        ((ModelRenderer)this.childModels.get(k)).render(p_78785_1_);
                    }
                }
            }
            else
            {
                GlStateManager.translate(this.rotationPointX * p_78785_1_, this.rotationPointY * p_78785_1_, this.rotationPointZ * p_78785_1_);
                GlStateManager.callList(this.displayList);

                if (this.childModels != null)
                {
                    for (int j = 0; j < this.childModels.size(); ++j)
                    {
                        ((ModelRenderer)this.childModels.get(j)).render(p_78785_1_);
                    }
                }

                GlStateManager.translate(-this.rotationPointX * p_78785_1_, -this.rotationPointY * p_78785_1_, -this.rotationPointZ * p_78785_1_);
            }
        }
        else
        {
            GlStateManager.pushMatrix();
            GlStateManager.translate(this.rotationPointX * p_78785_1_, this.rotationPointY * p_78785_1_, this.rotationPointZ * p_78785_1_);

            if (this.rotateAngleZ != 0.0F)
            {
                GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F);
            }

            if (this.rotateAngleY != 0.0F)
            {
                GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F);
            }

            if (this.rotateAngleX != 0.0F)
            {
                GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F);
            }

            GlStateManager.callList(this.displayList);

            if (this.childModels != null)
            {
                for (int i = 0; i < this.childModels.size(); ++i)
                {
                    ((ModelRenderer)this.childModels.get(i)).render(p_78785_1_);
                }
            }

            GlStateManager.popMatrix();
        }

        GlStateManager.translate(-this.offsetX, -this.offsetY, -this.offsetZ);
    }
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:78,代碼來源:ModelRenderer.java

示例9: renderWithRotation

import net.minecraft.client.renderer.GlStateManager; //導入方法依賴的package包/類
public void renderWithRotation(float scale)
{
    if (!this.isHidden && this.showModel)
    {
        if (!this.compiled)
        {
            this.compileDisplayList(scale);
        }

        int i = 0;

        if (this.textureLocation != null && !this.renderGlobal.renderOverlayDamaged)
        {
            if (this.renderGlobal.renderOverlayEyes)
            {
                return;
            }

            i = GlStateManager.getBoundTexture();
            Config.getTextureManager().bindTexture(this.textureLocation);
        }

        if (this.modelUpdater != null)
        {
            this.modelUpdater.update();
        }

        boolean flag = this.scaleX != 1.0F || this.scaleY != 1.0F || this.scaleZ != 1.0F;
        GlStateManager.pushMatrix();
        GlStateManager.translate(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale);

        if (this.rotateAngleY != 0.0F)
        {
            GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F);
        }

        if (this.rotateAngleX != 0.0F)
        {
            GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F);
        }

        if (this.rotateAngleZ != 0.0F)
        {
            GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F);
        }

        if (flag)
        {
            GlStateManager.scale(this.scaleX, this.scaleY, this.scaleZ);
        }

        GlStateManager.callList(this.displayList);

        if (this.childModels != null)
        {
            for (int j = 0; j < this.childModels.size(); ++j)
            {
                ((ModelRenderer)this.childModels.get(j)).render(scale);
            }
        }

        GlStateManager.popMatrix();

        if (i != 0)
        {
            GlStateManager.bindTexture(i);
        }
    }
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:70,代碼來源:ModelRenderer.java

示例10: render

import net.minecraft.client.renderer.GlStateManager; //導入方法依賴的package包/類
@SideOnly(Side.CLIENT)
public void render(float scale)
{
    if (!this.isHidden)
    {
        if (this.showModel)
        {
            if (!this.compiled)
            {
                this.compileDisplayList(scale);
            }

            GlStateManager.translate(this.offsetX, this.offsetY, this.offsetZ);

            if (this.rotateAngleX == 0.0F && this.rotateAngleY == 0.0F && this.rotateAngleZ == 0.0F)
            {
                if (this.rotationPointX == 0.0F && this.rotationPointY == 0.0F && this.rotationPointZ == 0.0F)
                {
                    GlStateManager.callList(this.displayList);

                    if (this.childModels != null)
                    {
                        for (int k = 0; k < this.childModels.size(); ++k)
                        {
                            ((ModelRenderer)this.childModels.get(k)).render(scale);
                        }
                    }
                }
                else
                {
                    GlStateManager.translate(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale);
                    GlStateManager.callList(this.displayList);

                    if (this.childModels != null)
                    {
                        for (int j = 0; j < this.childModels.size(); ++j)
                        {
                            ((ModelRenderer)this.childModels.get(j)).render(scale);
                        }
                    }

                    GlStateManager.translate(-this.rotationPointX * scale, -this.rotationPointY * scale, -this.rotationPointZ * scale);
                }
            }
            else
            {
                GlStateManager.pushMatrix();
                GlStateManager.translate(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale);

                if (this.rotateAngleZ != 0.0F)
                {
                    GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F);
                }

                if (this.rotateAngleY != 0.0F)
                {
                    GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F);
                }

                if (this.rotateAngleX != 0.0F)
                {
                    GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F);
                }

                GlStateManager.callList(this.displayList);

                if (this.childModels != null)
                {
                    for (int i = 0; i < this.childModels.size(); ++i)
                    {
                        ((ModelRenderer)this.childModels.get(i)).render(scale);
                    }
                }

                GlStateManager.popMatrix();
            }

            GlStateManager.translate(-this.offsetX, -this.offsetY, -this.offsetZ);
        }
    }
}
 
開發者ID:F1r3w477,項目名稱:CustomWorldGen,代碼行數:82,代碼來源:ModelRenderer.java


注:本文中的net.minecraft.client.renderer.GlStateManager.callList方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。