001package net.minecraft.client.renderer.entity;
002
003import cpw.mods.fml.relauncher.Side;
004import cpw.mods.fml.relauncher.SideOnly;
005import net.minecraft.client.model.ModelBase;
006import net.minecraft.entity.EntityLiving;
007import net.minecraft.entity.monster.EntityGiantZombie;
008import org.lwjgl.opengl.GL11;
009
010@SideOnly(Side.CLIENT)
011public class RenderGiantZombie extends RenderLiving
012{
013    /** Scale of the model to use */
014    private float scale;
015
016    public RenderGiantZombie(ModelBase par1ModelBase, float par2, float par3)
017    {
018        super(par1ModelBase, par2 * par3);
019        this.scale = par3;
020    }
021
022    /**
023     * Applies the scale to the transform matrix
024     */
025    protected void preRenderScale(EntityGiantZombie par1EntityGiantZombie, float par2)
026    {
027        GL11.glScalef(this.scale, this.scale, this.scale);
028    }
029
030    /**
031     * Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
032     * entityLiving, partialTickTime
033     */
034    protected void preRenderCallback(EntityLiving par1EntityLiving, float par2)
035    {
036        this.preRenderScale((EntityGiantZombie)par1EntityLiving, par2);
037    }
038}