@Override
@SideOnly(Side.CLIENT)
public void render() {
Minecraft.getMinecraft().getTextureManager().bindTexture(location);
GL11.glBindTexture(GL11.GL_TEXTURE_2D, Minecraft.getMinecraft().getTextureManager().getTexture(location).getGlTextureId());
final Tessellator t = Tessellator.getInstance();
final VertexBuffer r = t.getBuffer();
r.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
r.pos(0, 16, 0).tex(0, 1).endVertex();
r.pos(16, 16, 0).tex(1, 1).endVertex();
r.pos(16, 0, 0).tex(1, 0).endVertex();
r.pos(0, 0, 0).tex(0, 0).endVertex();
t.draw();
}
TextureTabIconRenderer.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:HeroUtils
作者:
评论列表
文章目录