Package net.minecraft.client.renderer

Examples of net.minecraft.client.renderer.Tessellator.addVertex()


        tessellator.startDrawing(6);
        float height = 2;
        float width = 2;
        tessellator.setColorRGBA(72, 198, 255, 255);
        tessellator.addVertex(0.0D, 0.0D, 0.0D);
        tessellator.setColorRGBA_I(0, 0);
        tessellator.addVertex(-0.866D * width, height, -0.5F * width);
        tessellator.addVertex(0.866D * width, height, -0.5F * width);
        tessellator.addVertex(0.0D, height, 1.0F * width);
        tessellator.addVertex(-0.866D * width, height, -0.5F * width);
 
View Full Code Here


        float height = 2;
        float width = 2;
        tessellator.setColorRGBA(72, 198, 255, 255);
        tessellator.addVertex(0.0D, 0.0D, 0.0D);
        tessellator.setColorRGBA_I(0, 0);
        tessellator.addVertex(-0.866D * width, height, -0.5F * width);
        tessellator.addVertex(0.866D * width, height, -0.5F * width);
        tessellator.addVertex(0.0D, height, 1.0F * width);
        tessellator.addVertex(-0.866D * width, height, -0.5F * width);
        tessellator.draw();

 
View Full Code Here

        float width = 2;
        tessellator.setColorRGBA(72, 198, 255, 255);
        tessellator.addVertex(0.0D, 0.0D, 0.0D);
        tessellator.setColorRGBA_I(0, 0);
        tessellator.addVertex(-0.866D * width, height, -0.5F * width);
        tessellator.addVertex(0.866D * width, height, -0.5F * width);
        tessellator.addVertex(0.0D, height, 1.0F * width);
        tessellator.addVertex(-0.866D * width, height, -0.5F * width);
        tessellator.draw();

        GL11.glPopMatrix();
 
View Full Code Here

        tessellator.setColorRGBA(72, 198, 255, 255);
        tessellator.addVertex(0.0D, 0.0D, 0.0D);
        tessellator.setColorRGBA_I(0, 0);
        tessellator.addVertex(-0.866D * width, height, -0.5F * width);
        tessellator.addVertex(0.866D * width, height, -0.5F * width);
        tessellator.addVertex(0.0D, height, 1.0F * width);
        tessellator.addVertex(-0.866D * width, height, -0.5F * width);
        tessellator.draw();

        GL11.glPopMatrix();
        GL11.glDepthMask(true);
 
View Full Code Here

        tessellator.addVertex(0.0D, 0.0D, 0.0D);
        tessellator.setColorRGBA_I(0, 0);
        tessellator.addVertex(-0.866D * width, height, -0.5F * width);
        tessellator.addVertex(0.866D * width, height, -0.5F * width);
        tessellator.addVertex(0.0D, height, 1.0F * width);
        tessellator.addVertex(-0.866D * width, height, -0.5F * width);
        tessellator.draw();

        GL11.glPopMatrix();
        GL11.glDepthMask(true);
        GL11.glDisable(GL11.GL_CULL_FACE);
 
View Full Code Here

    GL11.glEnable(GL11.GL_BLEND);
    GL11.glDisable(GL11.GL_TEXTURE_2D);
    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    GL11.glColor4f(r, g, b, a);
    tessellator.startDrawingQuads();
    tessellator.addVertex(xMin, yMax, 0.0D);
    tessellator.addVertex(xMax, yMax, 0.0D);
    tessellator.addVertex(xMax, yMin, 0.0D);
    tessellator.addVertex(xMin, yMin, 0.0D);
    tessellator.draw();
    GL11.glEnable(GL11.GL_TEXTURE_2D);
View Full Code Here

    GL11.glDisable(GL11.GL_TEXTURE_2D);
    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    GL11.glColor4f(r, g, b, a);
    tessellator.startDrawingQuads();
    tessellator.addVertex(xMin, yMax, 0.0D);
    tessellator.addVertex(xMax, yMax, 0.0D);
    tessellator.addVertex(xMax, yMin, 0.0D);
    tessellator.addVertex(xMin, yMin, 0.0D);
    tessellator.draw();
    GL11.glEnable(GL11.GL_TEXTURE_2D);
    GL11.glDisable(GL11.GL_BLEND);
View Full Code Here

    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    GL11.glColor4f(r, g, b, a);
    tessellator.startDrawingQuads();
    tessellator.addVertex(xMin, yMax, 0.0D);
    tessellator.addVertex(xMax, yMax, 0.0D);
    tessellator.addVertex(xMax, yMin, 0.0D);
    tessellator.addVertex(xMin, yMin, 0.0D);
    tessellator.draw();
    GL11.glEnable(GL11.GL_TEXTURE_2D);
    GL11.glDisable(GL11.GL_BLEND);
  }
View Full Code Here

    GL11.glColor4f(r, g, b, a);
    tessellator.startDrawingQuads();
    tessellator.addVertex(xMin, yMax, 0.0D);
    tessellator.addVertex(xMax, yMax, 0.0D);
    tessellator.addVertex(xMax, yMin, 0.0D);
    tessellator.addVertex(xMin, yMin, 0.0D);
    tessellator.draw();
    GL11.glEnable(GL11.GL_TEXTURE_2D);
    GL11.glDisable(GL11.GL_BLEND);
  }
 
View Full Code Here

        double x1 = (14.0/16.0)/values.length * lastX + (1.0/16.0);
        double x2 = (14.0/16.0)/values.length * (i) + (1.0/16.0);
        double y1 = (values[i - 1] - yMin) * (_renderMax - _renderMin) / (yMax - yMin) + _renderMin;
        double y2 = (values[i] - yMin) * (_renderMax - _renderMin) / (yMax - yMin) + _renderMin;
       
        t.addVertex(x1, y1, 0.253);
        t.addVertex(x2, y2, 0.253);
       
        lastValue = values[i];
        lastX = i;
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.