WorldRenderer.java 文件源码

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

项目:BaseClient 作者:
public void setVertexState(WorldRenderer.State state)
{
    this.rawIntBuffer.clear();
    this.func_181670_b(state.getRawBuffer().length);
    this.rawIntBuffer.put(state.getRawBuffer());
    this.vertexCount = state.getVertexCount();
    this.vertexFormat = new VertexFormat(state.getVertexFormat());

    if (state.stateQuadSprites != null)
    {
        if (this.quadSprites == null)
        {
            this.quadSprites = new TextureAtlasSprite[this.getBufferQuadSize()];
        }

        TextureAtlasSprite[] atextureatlassprite = state.stateQuadSprites;
        System.arraycopy(atextureatlassprite, 0, this.quadSprites, 0, atextureatlassprite.length);
    }
    else
    {
        this.quadSprites = null;
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号