Example usage for org.lwjgl.opengl GL11 glScaled

List of usage examples for org.lwjgl.opengl GL11 glScaled

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL11 glScaled.

Prototype

public static native void glScaled(@NativeType("GLdouble") double x, @NativeType("GLdouble") double y,
        @NativeType("GLdouble") double z);

Source Link

Document

Double version of #glScalef Scalef .

Usage

From source file:render.Render.java

License:Open Source License

public void StartRender() {

    if (flag)//from  ww  w  .  j  a va 2s .  com
        this.resetGL();
    flag = false;

    GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_STENCIL_BUFFER_BIT);
    GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);
    GL11.glClearColor(1.0F, 1.0F, 1.0F, 1.0F);

    GL11.glColor3d(0.0F, 0.0F, 0.0F);
    GL11.glPushMatrix();
    GL11.glScaled(Normal.toPlan(1), Normal.toPlan(1), 1);
    GL11.glTranslated(Normal.rx, Normal.ry, 0);
    // double zoom = 0.00001;
    // GL11.glOrtho( -width/2*zoom, width/2*zoom, -height/2*zoom, height/2*zoom, -1, 1 );

    GL11.glColor3d(0.4, 0.9, 0.1);

    //TODO : Make color class with getGreenFloat and getGreenRGB and chromatic wheel
    // this.drawLine(new Point(20,20), new Point(20+100,20));
    //FasT.getFasT().getLogger().debug("1 meter = " + Normal.normal(100, Unit.cm));
    // this.drawLine(new Point(20,40), new Point(20+Normal.toPlan(1),40));
    GL11.glColor3d(0, 1, 0);
    this.drawSquare(new Point(-1, -1).toReal(), new Point(1, 1).toReal());

    // this.drawLine(new Point(1,1).toReal(), new Point(1,1).toReal().add(new Point(1,0)));
    // this.drawLine(new Point(1,10), new Point(20,10));

    GL11.glColor3d(0.02, 0.8, 0.95);
    this.drawLine(new Point(10, 10).mouseToReal(), new Point(10, 10).mouseToReal().add(new Point(1, 0)));

    //Draw text to show this is 1 meter
}

From source file:shadowmage.ancient_warfare.client.render.RenderMissileBase.java

License:Open Source License

@Override
public void doRender(Entity var1, double var2, double var4, double var6, float var8, float var9) {
    GL11.glPushMatrix();/*w  w w .  j  a v  a  2 s.  co  m*/
    MissileBase missile = (MissileBase) var1;
    GL11.glTranslated(var2, var4, var6);
    GL11.glRotatef(var8 - 90, 0, 1, 0);
    GL11.glRotatef(var1.rotationPitch - 90, 1, 0, 0);
    GL11.glScaled(-1, -1, 1);
    float scale = missile.ammoType.getRenderScale();
    GL11.glScalef(scale, scale, scale);
    AWTextureManager.bindTexture(missile.getTexture());
    renderMissile(missile, missile.ammoType, var2, var4, var6, var8, var9);
    GL11.glPopMatrix();
}

From source file:slimevoid.littleblocks.client.render.tileentities.LittleTilesLittleRenderer.java

License:Open Source License

public void renderLittleTiles(TileEntityLittleChunk tileentity, double x, double y, double z, float f) {
    GL11.glPushMatrix();//from  ww  w .j a v  a 2  s .c  o  m

    GL11.glTranslated(x, y, z);
    GL11.glTranslated(-tileentity.xCoord, -tileentity.yCoord, -tileentity.zCoord);
    GL11.glEnable(GL12.GL_RESCALE_NORMAL);
    float scale = 1F / LBCore.littleBlocksSize;
    GL11.glScaled(scale, scale, scale);

    RenderHelper.disableStandardItemLighting();
    GL11.glBlendFunc(770, 771);
    GL11.glEnable(GL11.GL_BLEND);
    GL11.glDisable(GL11.GL_CULL_FACE);
    if (Minecraft.isAmbientOcclusionEnabled()) {
        GL11.glShadeModel(GL11.GL_SMOOTH);
    } else {
        GL11.glShadeModel(GL11.GL_FLAT);
    }

    for (LittleTileToRender tileToRender : this.tilesToRender) {
        this.tileEntityRenderer.renderTileEntityAt(tileToRender.tileentity, tileToRender.x, tileToRender.y,
                tileToRender.z, f);
    }

    GL11.glDisable(GL12.GL_RESCALE_NORMAL);
    GL11.glPopMatrix();
}

From source file:sqr.client.model.ModelHatchedSpider.java

License:Open Source License

private void renderLongLegSpider(float partialTickTime) {
    GL11.glPushMatrix();//from  ww w  .  ja  va  2  s. co  m
    {
        GL11.glTranslated(0, 0.35D, 0);
        longLegSpiderBody.render(partialTickTime);
    }
    GL11.glPopMatrix();

    GL11.glPushMatrix();
    {
        GL11.glTranslated(0, -0.05D, 0);
        GL11.glScaled(1, 1.5D, 1);
        longLegSpiderLeg1.render(partialTickTime);
        longLegSpiderLeg2.render(partialTickTime);
        longLegSpiderLeg3.render(partialTickTime);
        longLegSpiderLeg4.render(partialTickTime);
        longLegSpiderLeg5.render(partialTickTime);
        longLegSpiderLeg6.render(partialTickTime);
        longLegSpiderLeg7.render(partialTickTime);
        longLegSpiderLeg8.render(partialTickTime);
    }
    GL11.glPopMatrix();
}

From source file:sqr.client.model.ModelHatchedSpider.java

License:Open Source License

private void renderTinyLongLegSpider(float partialTickTime) {
    GL11.glPushMatrix();// www.  j  a  v  a 2 s .  c o m
    {
        GL11.glScaled(0.5D, 0.5D, 0.5D);
        GL11.glTranslated(0.0D, 1.2D, 0.0D);
        renderLongLegSpider(partialTickTime);
    }
    GL11.glPopMatrix();
}

From source file:sqr.client.model.ModelHatchedSpider.java

License:Open Source License

private void renderSwarmSpiders(Entity entity, float partialTickTime) {
    final EntityHatchedSpider spider = (EntityHatchedSpider) entity;
    final int level = spider.getLevel();

    if (spider.isOnLadder()) {
        final Vec3 lookVector = spider.getLookVec();

        if (lookVector.xCoord <= -0.90 || lookVector.zCoord <= -0.90) {
            GL11.glRotatef(270, 1, 0, 0);
            GL11.glTranslated(0, -1.2, 0);
        }/*from www.jav  a 2  s.c  o m*/

        else if (lookVector.xCoord >= 0.90 || lookVector.zCoord >= 0.90) {
            GL11.glRotatef(-90, 1, 0, 0);
            GL11.glTranslated(0, -1.2, 0);
        }
    }

    if (level == 1) {
        for (int pass = 0; pass < 9; pass++) {
            GL11.glPushMatrix();
            {
                GL11.glScaled(0.3D, 0.3D, 0.3D);
                GL11.glTranslated(0, 3.6D, 0D);

                switch (pass) {
                case 0:
                    GL11.glTranslated(0D, 0.0D, -2.0D);
                    break;
                case 1:
                    GL11.glTranslated(0D, 0, 2.0D);
                    break;
                case 2:
                    GL11.glTranslated(1.8D, 0, 0D);
                    break;
                case 3:
                    GL11.glTranslated(-1.8D, 0, 0D);
                    break;
                case 4:
                    GL11.glTranslated(1.8D, 0, -2.0D);
                    break;
                case 5:
                    GL11.glTranslated(-1.8D, 0, -2.0D);
                    break;
                case 6:
                    GL11.glTranslated(1.8D, 0, 2.0D);
                    break;
                case 7:
                    GL11.glTranslated(-1.8D, 0, 2.0D);
                    break;
                default:
                    break;
                }
                renderDefaultSpider(partialTickTime);
            }
            GL11.glPopMatrix();
        }
    }

    else if (level == 2) {
        for (int pass = 0; pass < 13; pass++) {
            GL11.glPushMatrix();
            {
                GL11.glScaled(0.2D, 0.2D, 0.2D);
                GL11.glTranslated(0, 6.1D, 0D);

                switch (pass) {
                case 0:
                    GL11.glTranslated(0D, 0.0D, -2.0D);
                    break;
                case 1:
                    GL11.glTranslated(0D, 0, 2.0D);
                    break;
                case 2:
                    GL11.glTranslated(1.8D, 0, 0D);
                    break;
                case 3:
                    GL11.glTranslated(-1.8D, 0, 0D);
                    break;
                case 4:
                    GL11.glTranslated(1.8D, 0, -2.0D);
                    break;
                case 5:
                    GL11.glTranslated(-1.8D, 0, -2.0D);
                    break;
                case 6:
                    GL11.glTranslated(1.8D, 0, 2.0D);
                    break;
                case 7:
                    GL11.glTranslated(3.5D, 0, 0.0D);
                    break;
                case 8:
                    GL11.glTranslated(-3.5D, 0, 0.0D);
                    break;
                case 9:
                    GL11.glTranslated(0D, 0, 0D);
                    break;
                case 10:
                    GL11.glTranslated(0D, 0, 4D);
                    break;
                case 11:
                    GL11.glTranslated(-1.8D, 0, 2.0D);
                    break;
                case 12:
                    GL11.glTranslated(0D, 0, -4D);
                    break;
                default:
                    break;
                }
                renderDefaultSpider(partialTickTime);
            }
            GL11.glPopMatrix();
        }
    }

    else if (level == 3) {
        for (int pass = 0; pass < 25; pass++) {
            GL11.glPushMatrix();
            {
                GL11.glScaled(0.15D, 0.15D, 0.15D);
                GL11.glTranslated(0, 8.6D, 0D);

                switch (pass) {
                case 0:
                    GL11.glTranslated(0D, 0.0D, -2.0D);
                    break;
                case 1:
                    GL11.glTranslated(0D, 0, 2.0D);
                    break;
                case 2:
                    GL11.glTranslated(1.8D, 0, 0D);
                    break;
                case 3:
                    GL11.glTranslated(-1.8D, 0, 0D);
                    break;
                case 4:
                    GL11.glTranslated(1.8D, 0, -2.0D);
                    break;
                case 5:
                    GL11.glTranslated(-1.8D, 0, -2.0D);
                    break;
                case 6:
                    GL11.glTranslated(1.8D, 0, 2.0D);
                    break;
                case 7:
                    GL11.glTranslated(3.5D, 0, 0.0D);
                    break;
                case 8:
                    GL11.glTranslated(-3.5D, 0, 0.0D);
                    break;
                case 9:
                    GL11.glTranslated(0D, 0, 0D);
                    break;
                case 10:
                    GL11.glTranslated(0D, 0, 4D);
                    break;
                case 11:
                    GL11.glTranslated(-1.8D, 0, 2.0D);
                    break;
                case 12:
                    GL11.glTranslated(0D, 0, -4D);
                    break;
                case 13:
                    GL11.glTranslated(1.8D, 0, -4D);
                    break;
                case 14:
                    GL11.glTranslated(-1.8D, 0, -4D);
                    break;
                case 15:
                    GL11.glTranslated(3.5D, 0, -4D);
                    break;
                case 16:
                    GL11.glTranslated(-3.5D, 0, -4D);
                    break;
                case 17:
                    GL11.glTranslated(-3.5D, 0, -2D);
                    break;
                case 18:
                    GL11.glTranslated(-3.5D, 0, 4D);
                    break;
                case 19:
                    GL11.glTranslated(-3.5D, 0, 2D);
                    break;
                case 20:
                    GL11.glTranslated(1.8D, 0, 4D);
                    break;
                case 21:
                    GL11.glTranslated(3.5D, 0, 4D);
                    break;
                case 22:
                    GL11.glTranslated(3.5D, 0, 2D);
                    break;
                case 23:
                    GL11.glTranslated(3.5D, 0, -2D);
                    break;
                case 24:
                    GL11.glTranslated(-1.8D, 0, 4D);
                    break;
                default:
                    break;
                }
                renderDefaultSpider(partialTickTime);
            }
            GL11.glPopMatrix();
        }
    }
}

From source file:sqr.client.render.RenderHatchedSpider.java

License:Open Source License

@Override
protected void preRenderCallback(EntityLivingBase entityLiving, float partialTickTime) {
    final EntityHatchedSpider hatchedSpider = (EntityHatchedSpider) entityLiving;

    if (hatchedSpider.cocoonType == EnumCocoonType.EMPTY) {
        GL11.glScaled(0.5D, 0.5D, 0.5D);
    }/*from ww  w.j  a va 2  s. c  o m*/

    else if (hatchedSpider.cocoonType == EnumCocoonType.ZOMBIE) {
        final int level = hatchedSpider.getLevel();
        double scale = 1.0D;

        switch (level) {
        case 1:
            scale = 1.0D;
            break;
        case 2:
            scale = 1.3D;
            break;
        case 3:
            scale = 1.5D;
            break;
        default:
            scale = 1.3D;
            break;
        }

        GL11.glScaled(scale, scale, scale);
    }

    else if (hatchedSpider.cocoonType == EnumCocoonType.ENDERMAN) {
        GL11.glScaled(1.3D, 1.3D, 1.3D);

    }

    else {
        super.preRenderCallback(entityLiving, partialTickTime);
    }
}

From source file:sqr.client.render.RenderSpiderQueen.java

License:Open Source License

@Override
public void renderEquippedItems(AbstractClientPlayer clientPlayer, float partialTickTime) {
    RenderPlayerEvent.Specials.Pre event = new RenderPlayerEvent.Specials.Pre(clientPlayer, this,
            partialTickTime);/* ww  w.  j  a  v a 2 s . c  om*/

    if (MinecraftForge.EVENT_BUS.post(event)) {
        return;
    }

    GL11.glColor3f(1.0F, 1.0F, 1.0F);
    GL11.glScaled(-1, -1, -1);
    GL11.glTranslated(-0.05D, 0.3D, -0.15D);
    super.renderArrowsStuckInEntity(clientPlayer, partialTickTime);
    ItemStack itemstack = clientPlayer.inventory.armorItemInSlot(3);

    if (itemstack != null && event.renderHelmet) {
        GL11.glPushMatrix();
        this.modelBipedMain.head.postRender(0.0625F);
        float f1;

        if (itemstack.getItem() instanceof ItemBlock) {
            IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(itemstack, EQUIPPED);
            boolean is3D = (customRenderer != null
                    && customRenderer.shouldUseRenderHelper(EQUIPPED, itemstack, BLOCK_3D));

            if (is3D || RenderBlocks
                    .renderItemIn3d(Block.getBlockFromItem(itemstack.getItem()).getRenderType())) {
                f1 = 0.625F;
                GL11.glTranslatef(0.0F, -0.25F, 0.0F);
                GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
                GL11.glScalef(f1, -f1, -f1);
            }

            this.renderManager.itemRenderer.renderItem(clientPlayer, itemstack, 0);
        } else if (itemstack.getItem() == Items.skull) {
            f1 = 1.0625F;
            GL11.glScalef(f1, -f1, -f1);
            GameProfile gameprofile = null;

            if (itemstack.hasTagCompound()) {
                NBTTagCompound nbttagcompound = itemstack.getTagCompound();

                if (nbttagcompound.hasKey("SkullOwner", 10)) {
                    gameprofile = NBTUtil.func_152459_a(nbttagcompound.getCompoundTag("SkullOwner"));
                } else if (nbttagcompound.hasKey("SkullOwner", 8)
                        && !StringUtils.isNullOrEmpty(nbttagcompound.getString("SkullOwner"))) {
                    gameprofile = new GameProfile((UUID) null, nbttagcompound.getString("SkullOwner"));
                }
            }

            TileEntitySkullRenderer.field_147536_b.func_152674_a(-0.5F, 0.0F, -0.5F, 1, 180.0F,
                    itemstack.getItemDamage(), gameprofile);
        }

        GL11.glPopMatrix();
    }

    float f3;

    if (clientPlayer.getCommandSenderName().equals("deadmau5") && clientPlayer.func_152123_o()) {
        this.bindTexture(clientPlayer.getLocationSkin());

        for (int j = 0; j < 2; ++j) {
            float f10 = clientPlayer.prevRotationYaw
                    + (clientPlayer.rotationYaw - clientPlayer.prevRotationYaw) * partialTickTime
                    - (clientPlayer.prevRenderYawOffset
                            + (clientPlayer.renderYawOffset - clientPlayer.prevRenderYawOffset)
                                    * partialTickTime);
            float f2 = clientPlayer.prevRotationPitch
                    + (clientPlayer.rotationPitch - clientPlayer.prevRotationPitch) * partialTickTime;
            GL11.glPushMatrix();
            GL11.glRotatef(f10, 0.0F, 1.0F, 0.0F);
            GL11.glRotatef(f2, 1.0F, 0.0F, 0.0F);
            GL11.glTranslatef(0.375F * (float) (j * 2 - 1), 0.0F, 0.0F);
            GL11.glTranslatef(0.0F, -0.375F, 0.0F);
            GL11.glRotatef(-f2, 1.0F, 0.0F, 0.0F);
            GL11.glRotatef(-f10, 0.0F, 1.0F, 0.0F);
            f3 = 1.3333334F;
            GL11.glScalef(f3, f3, f3);
            GL11.glPopMatrix();
        }
    }

    boolean flag = clientPlayer.func_152122_n();
    flag = event.renderCape && flag;
    float f5;

    if (flag && !clientPlayer.isInvisible() && !clientPlayer.getHideCape()) {
        this.bindTexture(clientPlayer.getLocationCape());
        GL11.glPushMatrix();
        GL11.glTranslatef(0.0F, 0.0F, 0.125F);
        double d3 = clientPlayer.field_71091_bM
                + (clientPlayer.field_71094_bP - clientPlayer.field_71091_bM) * (double) partialTickTime
                - (clientPlayer.prevPosX
                        + (clientPlayer.posX - clientPlayer.prevPosX) * (double) partialTickTime);
        double d4 = clientPlayer.field_71096_bN
                + (clientPlayer.field_71095_bQ - clientPlayer.field_71096_bN) * (double) partialTickTime
                - (clientPlayer.prevPosY
                        + (clientPlayer.posY - clientPlayer.prevPosY) * (double) partialTickTime);
        double d0 = clientPlayer.field_71097_bO
                + (clientPlayer.field_71085_bR - clientPlayer.field_71097_bO) * (double) partialTickTime
                - (clientPlayer.prevPosZ
                        + (clientPlayer.posZ - clientPlayer.prevPosZ) * (double) partialTickTime);
        f5 = clientPlayer.prevRenderYawOffset
                + (clientPlayer.renderYawOffset - clientPlayer.prevRenderYawOffset) * partialTickTime;
        double d1 = (double) MathHelper.sin(f5 * (float) Math.PI / 180.0F);
        double d2 = (double) (-MathHelper.cos(f5 * (float) Math.PI / 180.0F));
        float f6 = (float) d4 * 10.0F;

        if (f6 < -6.0F) {
            f6 = -6.0F;
        }

        if (f6 > 32.0F) {
            f6 = 32.0F;
        }

        float f7 = (float) (d3 * d1 + d0 * d2) * 100.0F;
        float f8 = (float) (d3 * d2 - d0 * d1) * 100.0F;

        if (f7 < 0.0F) {
            f7 = 0.0F;
        }

        float f9 = clientPlayer.prevCameraYaw
                + (clientPlayer.cameraYaw - clientPlayer.prevCameraYaw) * partialTickTime;
        f6 += MathHelper.sin((clientPlayer.prevDistanceWalkedModified
                + (clientPlayer.distanceWalkedModified - clientPlayer.prevDistanceWalkedModified)
                        * partialTickTime)
                * 6.0F) * 32.0F * f9;

        if (clientPlayer.isSneaking()) {
            f6 += 25.0F;
        }

        GL11.glRotatef(6.0F + f7 / 2.0F + f6, 1.0F, 0.0F, 0.0F);
        GL11.glRotatef(f8 / 2.0F, 0.0F, 0.0F, 1.0F);
        GL11.glRotatef(-f8 / 2.0F, 0.0F, 1.0F, 0.0F);
        GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);
        GL11.glPopMatrix();
    }

    ItemStack itemstack1 = clientPlayer.inventory.getCurrentItem();

    if (itemstack1 != null && event.renderItem) {
        GL11.glPushMatrix();
        this.modelBipedMain.armRight.postRender(0.0625F);
        GL11.glTranslatef(-0.0625F, 0.4375F, 0.0625F);

        if (clientPlayer.fishEntity != null) {
            itemstack1 = new ItemStack(Items.stick);
        }

        EnumAction enumaction = null;

        if (clientPlayer.getItemInUseCount() > 0) {
            enumaction = itemstack1.getItemUseAction();
        }

        IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(itemstack1, EQUIPPED);
        boolean is3D = (customRenderer != null
                && customRenderer.shouldUseRenderHelper(EQUIPPED, itemstack1, BLOCK_3D));

        if (is3D || itemstack1.getItem() instanceof ItemBlock
                && RenderBlocks.renderItemIn3d(Block.getBlockFromItem(itemstack1.getItem()).getRenderType())) {
            f3 = 0.5F;
            GL11.glTranslatef(0.0F, 0.1875F, -0.3125F);
            f3 *= 0.75F;
            GL11.glRotatef(20.0F, 1.0F, 0.0F, 0.0F);
            GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F);
            GL11.glScalef(-f3, -f3, f3);
        } else if (itemstack1.getItem() == Items.bow) {
            f3 = 0.625F;
            GL11.glTranslatef(0.0F, 0.125F, 0.3125F);
            GL11.glRotatef(-20.0F, 0.0F, 1.0F, 0.0F);
            GL11.glScalef(f3, -f3, f3);
            GL11.glRotatef(-100.0F, 1.0F, 0.0F, 0.0F);
            GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F);
        } else if (itemstack1.getItem().isFull3D()) {
            f3 = 0.625F;

            if (itemstack1.getItem().shouldRotateAroundWhenRendering()) {
                GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
                GL11.glTranslatef(0.0F, -0.125F, 0.0F);
            }

            if (clientPlayer.getItemInUseCount() > 0 && enumaction == EnumAction.block) {
                GL11.glTranslatef(0.05F, 0.0F, -0.1F);
                GL11.glRotatef(-50.0F, 0.0F, 1.0F, 0.0F);
                GL11.glRotatef(-10.0F, 1.0F, 0.0F, 0.0F);
                GL11.glRotatef(-60.0F, 0.0F, 0.0F, 1.0F);
            }

            GL11.glTranslatef(0.0F, 0.1875F, 0.0F);
            GL11.glScalef(f3, -f3, f3);
            GL11.glRotatef(-100.0F, 1.0F, 0.0F, 0.0F);
            GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F);
        } else {
            f3 = 0.375F;
            GL11.glTranslatef(0.25F, 0.1875F, -0.1875F);
            GL11.glScalef(f3, f3, f3);
            GL11.glRotatef(60.0F, 0.0F, 0.0F, 1.0F);
            GL11.glRotatef(-90.0F, 1.0F, 0.0F, 0.0F);
            GL11.glRotatef(20.0F, 0.0F, 0.0F, 1.0F);
        }

        float f4;
        float f12;
        int k;

        if (itemstack1.getItem().requiresMultipleRenderPasses()) {
            for (k = 0; k <= itemstack1.getItem().getRenderPasses(itemstack1.getItemDamage()); ++k) {
                int i = itemstack1.getItem().getColorFromItemStack(itemstack1, k);
                f12 = (float) (i >> 16 & 255) / 255.0F;
                f4 = (float) (i >> 8 & 255) / 255.0F;
                f5 = (float) (i & 255) / 255.0F;
                GL11.glColor4f(f12, f4, f5, 1.0F);
                this.renderManager.itemRenderer.renderItem(clientPlayer, itemstack1, k);
            }
        } else {
            k = itemstack1.getItem().getColorFromItemStack(itemstack1, 0);
            float f11 = (float) (k >> 16 & 255) / 255.0F;
            f12 = (float) (k >> 8 & 255) / 255.0F;
            f4 = (float) (k & 255) / 255.0F;
            GL11.glColor4f(f11, f12, f4, 1.0F);
            this.renderManager.itemRenderer.renderItem(clientPlayer, itemstack1, 0);
        }

        GL11.glPopMatrix();
    }
    MinecraftForge.EVENT_BUS.post(new RenderPlayerEvent.Specials.Post(clientPlayer, this, partialTickTime));
}

From source file:stevekung.mods.moreplanets.planets.fronos.render.entities.RenderMarshmallow.java

License:Creative Commons License

public void preRenderCallback(EntityMarshmallow living, float par2) {
    if (living.isSitting()) {
        GL11.glScaled(0.8F, 0.8F, 0.8F);
    }
}

From source file:tk.ivybits.engine.gl.GL.java

License:Open Source License

public static void glScaled(double a, double b, double c) {
    GL11.glScaled(a, b, c);
}