GuiTerminal.java 文件源码

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

项目:someluigis-peripherals 作者:
protected void drawInventory( float delta, int mX, int mY ){
    RenderEngine engine = mc.renderEngine;
    Tessellator buff = Tessellator.instance;

    //Bind the texture
    engine.bindTexture("/slp-gui/term.png");

    //Standard item model
    RenderHelper.disableStandardItemLighting();

    //Draw the leaflet
    buff.setTranslation(guiLeft +8, guiTop +114, 0);

    buff.startDrawingQuads();
        buff.addVertexWithUV(0,     0,      0, 1,           0);
        buff.addVertexWithUV(0,     90,     0, 422f/512f,   0);
        buff.addVertexWithUV(256,   90,     0, 422f/512f,   1); 
        buff.addVertexWithUV(256,   0,      0, 1,           1);
    buff.draw();

    buff.setTranslation(0, 0, 0);

    //Draw slots
    super.drawScreen(mX, mY, delta);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号