mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 19:49:54 +00:00
Use GlStateManager, fix up OpenGL issues
This commit is contained in:
1 parent
f49cea199e
commit
1b24ba1e5c
29 files changed
+152
-209
No files matched your search
@@ -12,11 +12,10 @@ package forestry.apiculture.render;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.renderer.GlStateManager;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import forestry.core.proxy.Proxies;
|
||||
import forestry.core.render.ForestryResource;
|
||||
|
||||
@@ -57,9 +56,9 @@ public class ModelAnalyzer extends ModelBase {
|
||||
|
||||
public void render(EnumFacing orientation, float posX, float posY, float posZ) {
|
||||
|
||||
GL11.glPushMatrix();
|
||||
GlStateManager.pushMatrix();
|
||||
|
||||
GL11.glTranslatef(posX, posY, posZ);
|
||||
GlStateManager.translate(posX, posY, posZ);
|
||||
float[] angle = {0, 0, 0};
|
||||
|
||||
if (orientation == null) {
|
||||
@@ -106,8 +105,7 @@ public class ModelAnalyzer extends ModelBase {
|
||||
Proxies.render.bindTexture(textures[2]);
|
||||
tower2.render(factor);
|
||||
|
||||
GL11.glPopMatrix();
|
||||
|
||||
GlStateManager.popMatrix();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user