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,11 +1,12 @@
|
|||
package game.renderer.layers;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import game.entity.npc.EntityNPC;
|
||||
import game.renderer.GlState;
|
||||
import game.renderer.entity.RenderHumanoid;
|
||||
import game.renderer.model.ModelRenderer;
|
||||
import game.util.ExtMath;
|
||||
import game.window.WCF;
|
||||
|
||||
public class LayerCape implements LayerRenderer<EntityNPC>
|
||||
{
|
||||
|
@ -30,8 +31,8 @@ public class LayerCape implements LayerRenderer<EntityNPC>
|
|||
entitylivingbaseIn.getLocationCape() != null) {
|
||||
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.renderer.bindTexture(entitylivingbaseIn.getLocationCape());
|
||||
WCF.glPushMatrix();
|
||||
WCF.glTranslatef(0.0F, 0.0F, 0.125F);
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef(0.0F, 0.0F, 0.125F);
|
||||
if(entitylivingbaseIn.isPlayer()) {
|
||||
EntityNPC player = (EntityNPC)entitylivingbaseIn;
|
||||
double d0 = player.prevChasingPosX + (player.chasingPosX - player.prevChasingPosX) * (double)partialTicks - (entitylivingbaseIn.prevX + (entitylivingbaseIn.posX - entitylivingbaseIn.prevX) * (double)partialTicks);
|
||||
|
@ -58,17 +59,17 @@ public class LayerCape implements LayerRenderer<EntityNPC>
|
|||
f1 += 25.0F;
|
||||
}
|
||||
|
||||
WCF.glRotatef(6.0F + f2 / 2.0F + f1, 1.0F, 0.0F, 0.0F);
|
||||
WCF.glRotatef(f3 / 2.0F, 0.0F, 0.0F, 1.0F);
|
||||
WCF.glRotatef(-f3 / 2.0F, 0.0F, 1.0F, 0.0F);
|
||||
GL11.glRotatef(6.0F + f2 / 2.0F + f1, 1.0F, 0.0F, 0.0F);
|
||||
GL11.glRotatef(f3 / 2.0F, 0.0F, 0.0F, 1.0F);
|
||||
GL11.glRotatef(-f3 / 2.0F, 0.0F, 1.0F, 0.0F);
|
||||
}
|
||||
else {
|
||||
WCF.glRotatef(entitylivingbaseIn.isSneakingVisually() ? 25.0F : 5.0F, 1.0F, 0.0F, 0.0F);
|
||||
GL11.glRotatef(entitylivingbaseIn.isSneakingVisually() ? 25.0F : 5.0F, 1.0F, 0.0F, 0.0F);
|
||||
}
|
||||
WCF.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);
|
||||
GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);
|
||||
this.bipedCape.rotationPointY = this.shift + (entitylivingbaseIn.isSneakingVisually() ? 2.0f : 0.0f);
|
||||
this.bipedCape.render(0.0625F);
|
||||
WCF.glPopMatrix();
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue