inline OpenGL constants to lwjgl GLxx
This commit is contained in:
parent
a891ab4d3a
commit
783adb350b
20 changed files with 183 additions and 495 deletions
|
@ -2,6 +2,8 @@ package game.renderer.entity;
|
|||
|
||||
import java.util.Map;
|
||||
|
||||
import org.lwjgl.opengl.GL13;
|
||||
|
||||
import com.google.common.collect.Maps;
|
||||
|
||||
import game.Game;
|
||||
|
@ -233,7 +235,7 @@ public class RenderManager
|
|||
|
||||
int j = i % 65536;
|
||||
int k = i / 65536;
|
||||
WCF.glMultiTexCoord2f(WCF.GL_TEXTURE1, (float)j / 1.0F, (float)k / 1.0F);
|
||||
WCF.glMultiTexCoord2f(GL13.GL_TEXTURE1, (float)j / 1.0F, (float)k / 1.0F);
|
||||
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
return this.renderEntity(entity, d0 - this.renderPosX, d1 - this.renderPosY, d2 - this.renderPosZ, partialTicks);
|
||||
}
|
||||
|
@ -250,7 +252,7 @@ public class RenderManager
|
|||
int i = entityIn.getBrightnessForRender(partialTicks);
|
||||
int j = i % 65536;
|
||||
int k = i / 65536;
|
||||
WCF.glMultiTexCoord2f(WCF.GL_TEXTURE1, (float)j / 1.0F, (float)k / 1.0F);
|
||||
WCF.glMultiTexCoord2f(GL13.GL_TEXTURE1, (float)j / 1.0F, (float)k / 1.0F);
|
||||
GlState.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
render.renderName(entityIn, d0 - this.renderPosX, d1 - this.renderPosY, d2 - this.renderPosZ);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue