Examples of startDrawing()


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

            tessellator.addVertex(PneumaticCraftUtils.cos[i] * (size + 0.1D), PneumaticCraftUtils.sin[i] * (size + 0.1D), 0);
        }
        tessellator.draw();

        GL11.glRotatef(180, 0, 0, 1);
        tessellator.startDrawing(GL11.GL_TRIANGLE_STRIP);
        // tessellator.setColorRGBA_F(red, green, blue, alpha);
        for(int i = 0; i < PneumaticCraftUtils.circlePoints / 4; i++) {
            tessellator.addVertex(PneumaticCraftUtils.cos[i] * size, PneumaticCraftUtils.sin[i] * size, 0);
            tessellator.addVertex(PneumaticCraftUtils.cos[i] * (size + 0.1D), PneumaticCraftUtils.sin[i] * (size + 0.1D), 0);
        }
View Full Code Here

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

        GL11.glLineWidth(2.0F);
        GL11.glEnable(GL11.GL_LINE_SMOOTH);

        GL11.glTranslated(triangleX, triangleY, 0);
        GL11.glRotatef(triangleAngle, 0, 0, 1);
        tessellator.startDrawing(GL11.GL_LINE_LOOP);
        tessellator.addVertex(5, 5, -90F);
        tessellator.addVertex(15, 5, -90F);
        tessellator.addVertex(10, 0, -90F);
        tessellator.draw();
View Full Code Here

Examples of net.minecraft.src.Tessellator.startDrawing()

  public static void startDrawingChildren(Tessellator tessellator, int drawMode) {
    Iterator i$ = tessellator.children.values().iterator();

    while (i$.hasNext()) {
      Tessellator child = (Tessellator)i$.next();
      child.startDrawing(drawMode);
    }
  }

  private static String toString(Tessellator tessellator) {
    if (tessellator == null) {
View Full Code Here

Examples of net.minecraft.src.Tessellator.startDrawing()

            GL11.glDisable(2884 /*GL_CULL_FACE*/);
            loadTexture("/mob/enderdragon/beam.png");
            GL11.glShadeModel(7425 /*GL_SMOOTH*/);
            float f9 = 0.0F - ((float)entitydragon.ticksExisted + f1) * 0.01F;
            float f10 = MathHelper.sqrt_float(f4 * f4 + f5 * f5 + f6 * f6) / 32F - ((float)entitydragon.ticksExisted + f1) * 0.01F;
            tessellator.startDrawing(5);
            int i = 8;
            for(int j = 0; j <= i; j++)
            {
               float f11 = MathHelper.sin(((float)(j % i) * 3.141593F * 2.0F) / (float)i) * 0.75F;
               float f12 = MathHelper.cos(((float)(j % i) * 3.141593F * 2.0F) / (float)i) * 0.75F;
 
View Full Code Here

Examples of net.minecraft.src.Tessellator.startDrawing()

               GL11.glRotatef(random.nextFloat() * 360F, 0.0F, 1.0F, 0.0F);
               GL11.glRotatef(random.nextFloat() * 360F, 0.0F, 0.0F, 1.0F);
               GL11.glRotatef(random.nextFloat() * 360F, 1.0F, 0.0F, 0.0F);
               GL11.glRotatef(random.nextFloat() * 360F, 0.0F, 1.0F, 0.0F);
               GL11.glRotatef(random.nextFloat() * 360F + f1 * 90F, 0.0F, 0.0F, 1.0F);
               tessellator.startDrawing(6);
               float f3 = random.nextFloat() * 20F + 5F + f2 * 10F;
               float f4 = random.nextFloat() * 2.0F + 1.0F + f2 * 2.0F;
               tessellator.setColorRGBA_I(0xffffff, (int)(255F * (1.0F - f2)));
               tessellator.addVertex(0.0D, 0.0D, 0.0D);
               tessellator.setColorRGBA_I(0xff00ff, 0);
View Full Code Here

Examples of net.minecraft.src.Tessellator.startDrawing()

        GL11.glLoadIdentity();
        GL11.glTranslatef(0.0F, 0.0F, -2000F);
        GL11.glLineWidth(1.0F);
        GL11.glDisable(GL11.GL_TEXTURE_2D);
        Tessellator tessellator = Tessellator.instance;
        tessellator.startDrawing(7);
        int i = (int)(l / 0x30d40L);
        tessellator.setColorOpaque_I(0x20000000);
        tessellator.addVertex(0.0D, displayHeight - i, 0.0D);
        tessellator.addVertex(0.0D, displayHeight, 0.0D);
        tessellator.addVertex(frameTimes.length, displayHeight, 0.0D);
View Full Code Here

Examples of net.minecraft.src.Tessellator.startDrawing()

        {
            l2 += frameTimes[j];
        }

        int k = (int)(l2 / 0x30d40L / (long)frameTimes.length);
        tessellator.startDrawing(7);
        tessellator.setColorOpaque_I(0x20400000);
        tessellator.addVertex(0.0D, displayHeight - k, 0.0D);
        tessellator.addVertex(0.0D, displayHeight, 0.0D);
        tessellator.addVertex(frameTimes.length, displayHeight, 0.0D);
        tessellator.addVertex(frameTimes.length, displayHeight - k, 0.0D);
View Full Code Here

Examples of net.minecraft.src.Tessellator.startDrawing()

        tessellator.addVertex(0.0D, displayHeight - k, 0.0D);
        tessellator.addVertex(0.0D, displayHeight, 0.0D);
        tessellator.addVertex(frameTimes.length, displayHeight, 0.0D);
        tessellator.addVertex(frameTimes.length, displayHeight - k, 0.0D);
        tessellator.draw();
        tessellator.startDrawing(1);

        for (int i1 = 0; i1 < frameTimes.length; i1++)
        {
            int k1 = ((i1 - numRecordedFrameTimes & frameTimes.length - 1) * 255) / frameTimes.length;
            int j2 = (k1 * k1) / 255;
View Full Code Here

Examples of net.minecraft.src.Tessellator.startDrawing()

        for (int j3 = 0; j3 < list.size(); j3++)
        {
            ProfilerResult profilerresult1 = (ProfilerResult)list.get(j3);
            int i4 = MathHelper.floor_double(profilerresult1.sectionPercentage / 4D) + 1;
            tessellator.startDrawing(6);
            tessellator.setColorOpaque_I(profilerresult1.getDisplayColor());
            tessellator.addVertex(i2, k2, 0.0D);

            for (int k4 = i4; k4 >= 0; k4--)
            {
View Full Code Here

Examples of net.minecraft.src.Tessellator.startDrawing()

                float f4 = MathHelper.cos(f) * (float)j1 * 0.5F;
                tessellator.addVertex((float)i2 + f2, (float)k2 - f4, 0.0D);
            }

            tessellator.draw();
            tessellator.startDrawing(5);
            tessellator.setColorOpaque_I((profilerresult1.getDisplayColor() & 0xfefefe) >> 1);

            for (int i5 = i4; i5 >= 0; i5--)
            {
                float f1 = (float)(((d + (profilerresult1.sectionPercentage * (double)i5) / (double)i4) * Math.PI * 2D) / 100D);
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.