CustomItemProperties.java 文件源码

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

项目:Backmemed 作者:
public float getTextureWidth(TextureManager p_getTextureWidth_1_)
{
    if (this.textureWidth <= 0)
    {
        if (this.textureLocation != null)
        {
            ITextureObject itextureobject = p_getTextureWidth_1_.getTexture(this.textureLocation);
            int i = itextureobject.getGlTextureId();
            int j = GlStateManager.getBoundTexture();
            GlStateManager.bindTexture(i);
            this.textureWidth = GL11.glGetTexLevelParameteri(GL11.GL_TEXTURE_2D, 0, GL11.GL_TEXTURE_WIDTH);
            GlStateManager.bindTexture(j);
        }

        if (this.textureWidth <= 0)
        {
            this.textureWidth = 16;
        }
    }

    return (float)this.textureWidth;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号