inline OpenGL functions to lwjgl GLxx
This commit is contained in:
parent
783adb350b
commit
a2ffb2991d
90 changed files with 1008 additions and 1204 deletions
|
@ -1,5 +1,7 @@
|
|||
package game.renderer.tileentity;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import game.block.Block;
|
||||
import game.init.Blocks;
|
||||
import game.init.Items;
|
||||
|
@ -8,7 +10,6 @@ import game.renderer.GlState;
|
|||
import game.tileentity.TileEntityBanner;
|
||||
import game.tileentity.TileEntityChest;
|
||||
import game.tileentity.TileEntitySkull;
|
||||
import game.window.WCF;
|
||||
import game.world.Facing;
|
||||
|
||||
public class TileEntityItemStackRenderer
|
||||
|
@ -43,13 +44,13 @@ public class TileEntityItemStackRenderer
|
|||
|
||||
if (TileEntitySkullRenderer.instance != null)
|
||||
{
|
||||
WCF.glPushMatrix();
|
||||
WCF.glTranslatef(-0.5F, 0.0F, -0.5F);
|
||||
WCF.glScalef(2.0F, 2.0F, 2.0F);
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef(-0.5F, 0.0F, -0.5F);
|
||||
GL11.glScalef(2.0F, 2.0F, 2.0F);
|
||||
GlState.disableCull();
|
||||
TileEntitySkullRenderer.instance.renderSkull(0.0F, 0.0F, 0.0F, Facing.UP, 0.0F, -1);
|
||||
GlState.enableCull();
|
||||
WCF.glPopMatrix();
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue