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