mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
Full GLStatemanager substitution
This commit is contained in:
1 parent
9cd7a4a0d5
commit
2dae52a9ff
135 files changed
+1629
-1596
No files matched your search
@@ -54,20 +54,20 @@ public class ModelBrewery extends ModelBase {
|
||||
float deg = (float) time / 16F;
|
||||
float polerot = -deg * 25F;
|
||||
|
||||
GL11.glTranslatef(0F, offset, 0F);
|
||||
GL11.glRotatef(polerot, 0F, 1F, 0F);
|
||||
GlStateManager.translate(0F, offset, 0F);
|
||||
GlStateManager.rotate(polerot, 0F, 1F, 0F);
|
||||
if(render.brewery.getStackInSlot(0) != null) {
|
||||
GL11.glRotatef(180F, 1F, 0F, 0F);
|
||||
GL11.glTranslatef(-1F / 8F, -0.5F, 1F / 128F);
|
||||
GlStateManager.rotate(180F, 1F, 0F, 0F);
|
||||
GlStateManager.translate(-1F / 8F, -0.5F, 1F / 128F);
|
||||
render.renderItemStack(render.brewery.getStackInSlot(0));
|
||||
GL11.glTranslatef(1F / 8F, 0.5F, -1F / 128F);
|
||||
GL11.glRotatef(-180F, 1F, 0F, 0F);
|
||||
GlStateManager.translate(1F / 8F, 0.5F, -1F / 128F);
|
||||
GlStateManager.rotate(-180F, 1F, 0F, 0F);
|
||||
}
|
||||
|
||||
Pole.render(f);
|
||||
Top.render(f);
|
||||
Bottom.render(f);
|
||||
GL11.glRotatef(-polerot, 0F, 1F, 0F);
|
||||
GlStateManager.rotate(-polerot, 0F, 1F, 0F);
|
||||
|
||||
float degper = (float) (2F * Math.PI) / plates;
|
||||
for(int i = 0; i < plates; i++) {
|
||||
@@ -76,27 +76,27 @@ public class ModelBrewery extends ModelBase {
|
||||
if(time == -1)
|
||||
offset1 = 0F;
|
||||
|
||||
GL11.glTranslatef(0F, offset1, 0F);
|
||||
GlStateManager.translate(0F, offset1, 0F);
|
||||
if(render.brewery.getStackInSlot(i + 1) != null) {
|
||||
float rot = Plate.rotateAngleY * 180F / (float) Math.PI;
|
||||
float transX = 0.3125F;
|
||||
float transY = 1.06F;
|
||||
float transZ = 0.1245F;
|
||||
GL11.glRotatef(rot, 0F, 1F, 0F);
|
||||
GL11.glTranslatef(transX, transY, transZ);
|
||||
GL11.glRotatef(-90F, 1F, 0F, 0F);
|
||||
GlStateManager.rotate(rot, 0F, 1F, 0F);
|
||||
GlStateManager.translate(transX, transY, transZ);
|
||||
GlStateManager.rotate(-90F, 1F, 0F, 0F);
|
||||
render.renderItemStack(render.brewery.getStackInSlot(i + 1));
|
||||
GL11.glRotatef(90F, 1F, 0F, 0F);
|
||||
GL11.glTranslatef(-transX, -transY, -transZ);
|
||||
GL11.glRotatef(-rot, 0F, 1F, 0F);
|
||||
GlStateManager.rotate(90F, 1F, 0F, 0F);
|
||||
GlStateManager.translate(-transX, -transY, -transZ);
|
||||
GlStateManager.rotate(-rot, 0F, 1F, 0F);
|
||||
}
|
||||
|
||||
Plate.render(f);
|
||||
GL11.glTranslatef(0F, -offset1, 0F);
|
||||
GlStateManager.translate(0F, -offset1, 0F);
|
||||
|
||||
deg += degper;
|
||||
}
|
||||
GL11.glTranslatef(0F, -offset, 0F);
|
||||
GlStateManager.translate(0F, -offset, 0F);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user