Examples of startDrawing()


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

  }

  public static void drawCuboidOutline(Cuboid6 c) {

    Tessellator var2 = Tessellator.instance;
    var2.startDrawing(3);
    var2.addVertex(c.min.x, c.min.y, c.min.z);
    var2.addVertex(c.max.x, c.min.y, c.min.z);
    var2.addVertex(c.max.x, c.min.y, c.max.z);
    var2.addVertex(c.min.x, c.min.y, c.max.z);
    var2.addVertex(c.min.x, c.min.y, c.min.z);
View Full Code Here

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

    var2.addVertex(c.max.x, c.min.y, c.min.z);
    var2.addVertex(c.max.x, c.min.y, c.max.z);
    var2.addVertex(c.min.x, c.min.y, c.max.z);
    var2.addVertex(c.min.x, c.min.y, c.min.z);
    var2.draw();
    var2.startDrawing(3);
    var2.addVertex(c.min.x, c.max.y, c.min.z);
    var2.addVertex(c.max.x, c.max.y, c.min.z);
    var2.addVertex(c.max.x, c.max.y, c.max.z);
    var2.addVertex(c.min.x, c.max.y, c.max.z);
    var2.addVertex(c.min.x, c.max.y, c.min.z);
View Full Code Here

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

    var2.addVertex(c.max.x, c.max.y, c.min.z);
    var2.addVertex(c.max.x, c.max.y, c.max.z);
    var2.addVertex(c.min.x, c.max.y, c.max.z);
    var2.addVertex(c.min.x, c.max.y, c.min.z);
    var2.draw();
    var2.startDrawing(1);
    var2.addVertex(c.min.x, c.min.y, c.min.z);
    var2.addVertex(c.min.x, c.max.y, c.min.z);
    var2.addVertex(c.max.x, c.min.y, c.min.z);
    var2.addVertex(c.max.x, c.max.y, c.min.z);
    var2.addVertex(c.max.x, c.min.y, c.max.z);
View Full Code Here

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

   * Draws lines for the edges of the bounding box.
   */
  public static void drawOutlinedBoundingBox(CustomHitBox hitbox) {

    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawing(1);

    // Top and Bottom faces
    addMainVertex(hitbox, 1, hitbox.middleHeight, tessellator);
    addMainVertex(hitbox, 0, 0, tessellator);

View Full Code Here

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

    {
        Tessellator tessellator = Tessellator.instance;

        if (currentGroupObject != null)
        {
            tessellator.startDrawing(currentGroupObject.glDrawingMode);
        }
        else
        {
            tessellator.startDrawing(GL11.GL_TRIANGLES);
        }
View Full Code Here

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

        {
            tessellator.startDrawing(currentGroupObject.glDrawingMode);
        }
        else
        {
            tessellator.startDrawing(GL11.GL_TRIANGLES);
        }
        tessellateAll(tessellator);

        tessellator.draw();
    }
View Full Code Here

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

    public void render()
    {
        if (faces.size() > 0)
        {
            Tessellator tessellator = Tessellator.instance;
            tessellator.startDrawing(glDrawingMode);
            render(tessellator);
            tessellator.draw();
        }
    }
View Full Code Here

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

    double arrowBackAngle = 0.75D * Math.PI;
    GL11.glEnable(GL11.GL_BLEND);
        GL11.glDisable(GL11.GL_TEXTURE_2D);
        GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    Tessellator tes = Tessellator.instance;
        tes.startDrawing(GL11.GL_TRIANGLE_FAN);
        tes.addVertex(x + (length * Math.cos(angle)), y + (length * Math.sin(angle)), zDepth);
        tes.addVertex(x + (length * 0.5D * Math.cos(angle - arrowBackAngle)), y + (length * 0.5D * Math.sin(angle - arrowBackAngle)), zDepth);
        tes.addVertex(x + (length * 0.3D * Math.cos(angle + Math.PI)), y + (length * 0.3D * Math.sin(angle + Math.PI)), zDepth);
        tes.addVertex(x + (length * 0.5D * Math.cos(angle + arrowBackAngle)), y + (length * 0.5D * Math.sin(angle + arrowBackAngle)), zDepth);
        tes.draw();
View Full Code Here

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

  public static void drawTriangle(double x1, double y1, double x2, double y2, double x3, double y3) {
        GL11.glEnable(GL11.GL_BLEND);
        GL11.glDisable(GL11.GL_TEXTURE_2D);
        GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
        Tessellator tes = Tessellator.instance;
        tes.startDrawing(GL11.GL_TRIANGLES);
        tes.addVertex(x1, y1, zDepth);
        tes.addVertex(x2, y2, zDepth);
        tes.addVertex(x3, y3, zDepth);
        tes.draw();
        GL11.glEnable(GL11.GL_TEXTURE_2D);
View Full Code Here

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

  public static void drawCircle(double x, double y, double r) {
    GL11.glEnable(GL11.GL_BLEND);
        GL11.glDisable(GL11.GL_TEXTURE_2D);
        GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    Tessellator tes = Tessellator.instance;
        tes.startDrawing(GL11.GL_TRIANGLE_FAN);
        tes.addVertex(x, y, zDepth);
        // for some the circle is only drawn if theta is decreasing rather than ascending
        double end = Math.PI * 2.0;
        double incr = end / circleSteps;
        for (double theta = -incr; theta < end; theta += incr) {
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.