SubTexture.java 文件源码

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

项目:LoreExpansion_old 作者:
public void draw(int x, int y, int z) {
    // We don't want to bind textures unless necessary
    TextureManager manager = Minecraft.getMinecraft().getTextureManager();
    ITextureObject textureObject = manager.getTexture(texture);
    int bound = GL11.glGetInteger(GL11.GL_TEXTURE_BINDING_2D);
    if (textureObject == null || bound != textureObject.getGlTextureId()) {
        manager.bindTexture(texture);
    }

    // ...and then we draw
    SubTexture.drawTexturedModalRect(x, y, z, this.u, this.v, this.w, this.h);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号