EnergyHUD.java 文件源码

java
阅读 12 收藏 0 点赞 0 评论 0

项目:Bewitchment 作者:
private void renderTexture(double x, double y, double width, double height, double vMin, double vMax) {
    Tessellator tessellator = Tessellator.getInstance();
    BufferBuilder buff = tessellator.getBuffer();

    buff.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
    buff.pos(x, y + height, 0).tex(0, vMax).endVertex();
    buff.pos(x + width, y + height, 0).tex(1, vMax).endVertex();
    buff.pos(x + width, y, 0).tex(1, vMin).endVertex();
    buff.pos(x, y, 0).tex(0, vMin).endVertex();

    tessellator.draw();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号