Java 类net.minecraft.client.shader.TesselatorVertexState 实例源码

项目:4Space-5    文件:Tessellator.java   
public TesselatorVertexState getVertexState(float p_147564_1_, float p_147564_2_, float p_147564_3_)
{
    ;
    ;
    ;
    ;
    int[] aint = new int[this.rawBufferIndex];
    PriorityQueue priorityqueue = new PriorityQueue(this.rawBufferIndex, new QuadComparator(this.rawBuffer, p_147564_1_ + (float)this.xOffset, p_147564_2_ + (float)this.yOffset, p_147564_3_ + (float)this.zOffset));
    byte b0 = 32;
    for (int i = 0; i < this.rawBufferIndex; i += b0) {
        priorityqueue.add(Integer.valueOf(i));
    }
    for (int i = 0; !priorityqueue.isEmpty(); i += b0)
    {
        int j = ((Integer)priorityqueue.remove()).intValue();
        for (int k = 0; k < b0; k++) {
            aint[(i + k)] = this.rawBuffer[(j + k)];
        }
    }
    System.arraycopy(aint, 0, this.rawBuffer, 0, aint.length);
    return new TesselatorVertexState(aint, this.rawBufferIndex, this.vertexCount, this.hasTexture, this.hasBrightness, this.hasNormals, this.hasColor);
}
项目:4Space-5    文件:Tessellator.java   
public void setVertexState(TesselatorVertexState p_147565_1_)
{
    ;
    ;
    while ((p_147565_1_.getRawBuffer().length > this.rawBufferSize) && (this.rawBufferSize > 0)) {
        this.rawBufferSize <<= 1;
    }
    if (this.rawBufferSize > this.rawBuffer.length) {
        this.rawBuffer = new int[this.rawBufferSize];
    }
    System.arraycopy(p_147565_1_.getRawBuffer(), 0, this.rawBuffer, 0, p_147565_1_.getRawBuffer().length);
    this.rawBufferIndex = p_147565_1_.getRawBufferIndex();
    this.vertexCount = p_147565_1_.getVertexCount();
    this.hasTexture = p_147565_1_.getHasTexture();
    this.hasBrightness = p_147565_1_.getHasBrightness();
    this.hasColor = p_147565_1_.getHasColor();
    this.hasNormals = p_147565_1_.getHasNormals();
}
项目:4Space-1.7    文件:Tessellator.java   
public TesselatorVertexState getVertexState(float p_147564_1_, float p_147564_2_, float p_147564_3_)
{
    ;
    ;
    ;
    ;
    int[] aint = new int[this.rawBufferIndex];
    PriorityQueue priorityqueue = new PriorityQueue(this.rawBufferIndex, new QuadComparator(this.rawBuffer, p_147564_1_ + (float)this.xOffset, p_147564_2_ + (float)this.yOffset, p_147564_3_ + (float)this.zOffset));
    byte b0 = 32;
    for (int i = 0; i < this.rawBufferIndex; i += b0) {
        priorityqueue.add(Integer.valueOf(i));
    }
    for (int i = 0; !priorityqueue.isEmpty(); i += b0)
    {
        int j = ((Integer)priorityqueue.remove()).intValue();
        for (int k = 0; k < b0; k++) {
            aint[(i + k)] = this.rawBuffer[(j + k)];
        }
    }
    System.arraycopy(aint, 0, this.rawBuffer, 0, aint.length);
    return new TesselatorVertexState(aint, this.rawBufferIndex, this.vertexCount, this.hasTexture, this.hasBrightness, this.hasNormals, this.hasColor);
}
项目:4Space-1.7    文件:Tessellator.java   
public void setVertexState(TesselatorVertexState p_147565_1_)
{
    ;
    ;
    while ((p_147565_1_.getRawBuffer().length > this.rawBufferSize) && (this.rawBufferSize > 0)) {
        this.rawBufferSize <<= 1;
    }
    if (this.rawBufferSize > this.rawBuffer.length) {
        this.rawBuffer = new int[this.rawBufferSize];
    }
    System.arraycopy(p_147565_1_.getRawBuffer(), 0, this.rawBuffer, 0, p_147565_1_.getRawBuffer().length);
    this.rawBufferIndex = p_147565_1_.getRawBufferIndex();
    this.vertexCount = p_147565_1_.getVertexCount();
    this.hasTexture = p_147565_1_.getHasTexture();
    this.hasBrightness = p_147565_1_.getHasBrightness();
    this.hasColor = p_147565_1_.getHasColor();
    this.hasNormals = p_147565_1_.getHasNormals();
}
项目:Cauldron    文件:Tessellator.java   
public TesselatorVertexState getVertexState(float p_147564_1_, float p_147564_2_, float p_147564_3_)
{
    int[] aint = new int[this.rawBufferIndex];
    PriorityQueue priorityqueue = new PriorityQueue(this.rawBufferIndex, new QuadComparator(this.rawBuffer, p_147564_1_ + (float)this.xOffset, p_147564_2_ + (float)this.yOffset, p_147564_3_ + (float)this.zOffset));
    byte b0 = 32;
    int i;

    for (i = 0; i < this.rawBufferIndex; i += b0)
    {
        priorityqueue.add(Integer.valueOf(i));
    }

    for (i = 0; !priorityqueue.isEmpty(); i += b0)
    {
        int j = ((Integer)priorityqueue.remove()).intValue();

        for (int k = 0; k < b0; ++k)
        {
            aint[i + k] = this.rawBuffer[j + k];
        }
    }

    System.arraycopy(aint, 0, this.rawBuffer, 0, aint.length);
    return new TesselatorVertexState(aint, this.rawBufferIndex, this.vertexCount, this.hasTexture, this.hasBrightness, this.hasNormals, this.hasColor);
}
项目:Cauldron    文件:Tessellator.java   
public void setVertexState(TesselatorVertexState p_147565_1_)
{
    while (p_147565_1_.getRawBuffer().length > rawBufferSize && rawBufferSize > 0)
    {
        rawBufferSize <<= 1;
    }
    if (rawBufferSize > rawBuffer.length)
    {
        rawBuffer = new int[rawBufferSize];
    }
    System.arraycopy(p_147565_1_.getRawBuffer(), 0, this.rawBuffer, 0, p_147565_1_.getRawBuffer().length);
    this.rawBufferIndex = p_147565_1_.getRawBufferIndex();
    this.vertexCount = p_147565_1_.getVertexCount();
    this.hasTexture = p_147565_1_.getHasTexture();
    this.hasBrightness = p_147565_1_.getHasBrightness();
    this.hasColor = p_147565_1_.getHasColor();
    this.hasNormals = p_147565_1_.getHasNormals();
}
项目:Cauldron    文件:Tessellator.java   
public TesselatorVertexState getVertexState(float p_147564_1_, float p_147564_2_, float p_147564_3_)
{
    int[] aint = new int[this.rawBufferIndex];
    PriorityQueue priorityqueue = new PriorityQueue(this.rawBufferIndex, new QuadComparator(this.rawBuffer, p_147564_1_ + (float)this.xOffset, p_147564_2_ + (float)this.yOffset, p_147564_3_ + (float)this.zOffset));
    byte b0 = 32;
    int i;

    for (i = 0; i < this.rawBufferIndex; i += b0)
    {
        priorityqueue.add(Integer.valueOf(i));
    }

    for (i = 0; !priorityqueue.isEmpty(); i += b0)
    {
        int j = ((Integer)priorityqueue.remove()).intValue();

        for (int k = 0; k < b0; ++k)
        {
            aint[i + k] = this.rawBuffer[j + k];
        }
    }

    System.arraycopy(aint, 0, this.rawBuffer, 0, aint.length);
    return new TesselatorVertexState(aint, this.rawBufferIndex, this.vertexCount, this.hasTexture, this.hasBrightness, this.hasNormals, this.hasColor);
}
项目:Cauldron    文件:Tessellator.java   
public void setVertexState(TesselatorVertexState p_147565_1_)
{
    while (p_147565_1_.getRawBuffer().length > rawBufferSize && rawBufferSize > 0)
    {
        rawBufferSize <<= 1;
    }
    if (rawBufferSize > rawBuffer.length)
    {
        rawBuffer = new int[rawBufferSize];
    }
    System.arraycopy(p_147565_1_.getRawBuffer(), 0, this.rawBuffer, 0, p_147565_1_.getRawBuffer().length);
    this.rawBufferIndex = p_147565_1_.getRawBufferIndex();
    this.vertexCount = p_147565_1_.getVertexCount();
    this.hasTexture = p_147565_1_.getHasTexture();
    this.hasBrightness = p_147565_1_.getHasBrightness();
    this.hasColor = p_147565_1_.getHasColor();
    this.hasNormals = p_147565_1_.getHasNormals();
}
项目:Resilience-Client-Source    文件:Tessellator.java   
public TesselatorVertexState getVertexState(float p_147564_1_, float p_147564_2_, float p_147564_3_)
{
    if (this.rawBufferIndex < 1)
    {
        return null;
    }
    else
    {
        int[] var4 = new int[this.rawBufferIndex];
        PriorityQueue var5 = new PriorityQueue(this.rawBufferIndex, new QuadComparator(this.rawBuffer, p_147564_1_ + (float)this.xOffset, p_147564_2_ + (float)this.yOffset, p_147564_3_ + (float)this.zOffset));
        byte var6 = 32;
        int var7;

        for (var7 = 0; var7 < this.rawBufferIndex; var7 += var6)
        {
            var5.add(Integer.valueOf(var7));
        }

        for (var7 = 0; !var5.isEmpty(); var7 += var6)
        {
            int var8 = ((Integer)var5.remove()).intValue();

            for (int var9 = 0; var9 < var6; ++var9)
            {
                var4[var7 + var9] = this.rawBuffer[var8 + var9];
            }
        }

        System.arraycopy(var4, 0, this.rawBuffer, 0, var4.length);
        return new TesselatorVertexState(var4, this.rawBufferIndex, this.vertexCount, this.hasTexture, this.hasBrightness, this.hasNormals, this.hasColor);
    }
}
项目:Resilience-Client-Source    文件:Tessellator.java   
public void setVertexState(TesselatorVertexState p_147565_1_)
{
    System.arraycopy(p_147565_1_.getRawBuffer(), 0, this.rawBuffer, 0, p_147565_1_.getRawBuffer().length);
    this.rawBufferIndex = p_147565_1_.getRawBufferIndex();
    this.vertexCount = p_147565_1_.getVertexCount();
    this.hasTexture = p_147565_1_.getHasTexture();
    this.hasBrightness = p_147565_1_.getHasBrightness();
    this.hasColor = p_147565_1_.getHasColor();
    this.hasNormals = p_147565_1_.getHasNormals();
}
项目:Resilience-Client-Source    文件:WorldRendererSmooth.java   
protected void postRenderBlocksSmooth(int renderpass, EntityLivingBase entityLiving, boolean updateFinished)
{
    if (Config.isTranslucentBlocksFancy() && renderpass == 1 && !this.tempSkipRenderPass[renderpass])
    {
        TesselatorVertexState tsv = this.tessellator.getVertexState((float)entityLiving.posX, (float)entityLiving.posY, (float)entityLiving.posZ);

        if (this.tempVertexState == null)
        {
            this.tempVertexState = tsv;
        }
        else
        {
            this.tempVertexState.addTessellatorVertexState(tsv);
        }
    }

    this.bytesDrawn += this.tessellator.draw();
    this.tessellator.setRenderingChunk(false);

    if (!Config.isFastRender())
    {
        GL11.glPopMatrix();
    }

    GL11.glEndList();
    this.tessellator.setTranslation(0.0D, 0.0D, 0.0D);
}
项目:SteamPowerAdditions    文件:TessellatorV2.java   
@Override
public TesselatorVertexState getVertexState(float x, float y, float z) {
    return tessellator.getVertexState(x, y, z);
}
项目:SteamPowerAdditions    文件:TessellatorV2.java   
@Override
public void setVertexState(TesselatorVertexState state) {
    tessellator.setVertexState(state);
}
项目:Cauldron    文件:Tezzelator.java   
public TesselatorVertexState sortQuads(float p_sortQuads_1_, float p_sortQuads_2_, float p_sortQuads_3_)
{
    return t.getVertexState(p_sortQuads_1_, p_sortQuads_2_, p_sortQuads_3_);
}
项目:Cauldron    文件:Tezzelator.java   
public void restoreState(TesselatorVertexState p_restoreState_1_)
{
    t.setVertexState(p_restoreState_1_);
}
项目:Cauldron    文件:Tezzelator.java   
public TesselatorVertexState sortQuads(float p_sortQuads_1_, float p_sortQuads_2_, float p_sortQuads_3_)
{
    return t.getVertexState(p_sortQuads_1_, p_sortQuads_2_, p_sortQuads_3_);
}
项目:Cauldron    文件:Tezzelator.java   
public void restoreState(TesselatorVertexState p_restoreState_1_)
{
    t.setVertexState(p_restoreState_1_);
}