SwingWrapper.java 文件源码

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

项目:Device-Mod-Apps 作者:
private static void drawRectWithFullTexture(double x, double y, int width, int height) {
    Tessellator tessellator = Tessellator.getInstance();
    BufferBuilder buffer = tessellator.getBuffer();
    buffer.begin(7, DefaultVertexFormats.POSITION_TEX);
    buffer.pos(x, y + height, 0).tex(0, 1).endVertex();
    buffer.pos(x + width, y + height, 0).tex(1, 1).endVertex();
    buffer.pos(x + width, y, 0).tex(1, 0).endVertex();
    buffer.pos(x, y, 0).tex(0, 0).endVertex();
    tessellator.draw();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号