Package net.minecraft.src

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


        if (overlayActive && overlayCounter < 3) {
            float tileX0 = overlayCounter / 3.0f;
            float tileX1 = ++overlayCounter / 3.0f;

            Tessellator tessellator = Tessellator.instance;
            tessellator.startDrawingQuads();
            tessellator.addVertexWithUV(MOO_X0, MOO_Y1, MOO_Z0, tileX0, 0.0);
            tessellator.addVertexWithUV(MOO_X0, MOO_Y0, MOO_Z0, tileX0, 1.0);
            tessellator.addVertexWithUV(MOO_X1, MOO_Y0, MOO_Z1, tileX1, 1.0);
            tessellator.addVertexWithUV(MOO_X1, MOO_Y1, MOO_Z1, tileX1, 0.0);
            tessellator.addVertexWithUV(MOO_X1, MOO_Y1, MOO_Z1, tileX0, 0.0);
View Full Code Here


        }
    }

    public static void renderSnowmanOverlay() {
        Tessellator tessellator = Tessellator.instance;
        tessellator.startDrawingQuads();

        double[] c = new double[4];

        // bottom = y-
        getTileCoordinates(0, c);
View Full Code Here

  public static boolean renderMooshroomOverlay() {
    if (overlayActive && overlayCounter < 3) {
      float tileX0 = (float)overlayCounter / 3.0F;
      float tileX1 = (float)(++overlayCounter) / 3.0F;
      Tessellator tessellator = Tessellator.instance;
      tessellator.startDrawingQuads();
      tessellator.addVertexWithUV(-0.45D, 0.5D, -0.45D, (double)tileX0, 0.0D);
      tessellator.addVertexWithUV(-0.45D, -0.5D, -0.45D, (double)tileX0, 1.0D);
      tessellator.addVertexWithUV(0.45D, -0.5D, 0.45D, (double)tileX1, 1.0D);
      tessellator.addVertexWithUV(0.45D, 0.5D, 0.45D, (double)tileX1, 0.0D);
      tessellator.addVertexWithUV(0.45D, 0.5D, 0.45D, (double)tileX0, 0.0D);
View Full Code Here

    }
  }

  public static void renderSnowmanOverlay() {
    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawingQuads();
    double[] c = new double[4];
    getTileCoordinates(0, c);
    tessellator.addVertexWithUV(0.5D, -0.5D, -0.5D, c[0], c[2]);
    tessellator.addVertexWithUV(0.5D, -0.5D, 0.5D, c[1], c[2]);
    tessellator.addVertexWithUV(-0.5D, -0.5D, 0.5D, c[1], c[3]);
View Full Code Here

        }
      }

      TexturePackAPI.bindTexture(this.texture);
      Tessellator tessellator = Tessellator.instance;
      tessellator.startDrawingQuads();
      GL11.glDisable(GL11.GL_CULL_FACE);
      GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
      dx += this.sx + this.plusSX;
      dy += this.sy + this.plusSY;
      dz += this.sz + this.plusSZ;
View Full Code Here

      SpoutClient.getHandle().renderEngine.bindTexture(beastNodeLogo.getTextureID());
      GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_NEAREST);
      GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_NEAREST);
      Tessellator tessellator = Tessellator.instance;
      //GL11.glScalef(0.5f, 0.5f, 0.5f);
      tessellator.startDrawingQuads();
      tessellator.addVertexWithUV(0.0D, 33, -90, 0.0D, 0.0D); // Draw corners
      tessellator.addVertexWithUV(147, 33, -90, beastNodeLogo.getWidth(), 0.0D);
      tessellator.addVertexWithUV(147, 0.0D, -90, beastNodeLogo.getWidth(), beastNodeLogo.getHeight());
      tessellator.addVertexWithUV(0.0D, 0.0D, -90, 0.0D, beastNodeLogo.getHeight());
      tessellator.draw();
View Full Code Here

      SpoutClient.getHandle().renderEngine.bindTexture(minecraftBizLogo.getTextureID());
      GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_NEAREST);
      GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_NEAREST);
      Tessellator tessellator = Tessellator.instance;
      //GL11.glScalef(0.5f, 0.5f, 0.5f);
      tessellator.startDrawingQuads();
      tessellator.addVertexWithUV(0.0D, 33, -90, 0.0D, 0.0D); // Draw corners
      tessellator.addVertexWithUV(147, 33, -90, minecraftBizLogo.getWidth(), 0.0D);
      tessellator.addVertexWithUV(147, 0.0D, -90, minecraftBizLogo.getWidth(), minecraftBizLogo.getHeight());
      tessellator.addVertexWithUV(0.0D, 0.0D, -90, 0.0D, minecraftBizLogo.getHeight());
      tessellator.draw();
View Full Code Here

      GL11.glTranslatef((this.width - 140), (this.height - 45), 0); // Moves texture into place
      SpoutClient.getHandle().renderEngine.bindTexture(spoutcraftTexture.getTextureID());
      GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_NEAREST);
      GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_NEAREST);
      Tessellator tessellator = Tessellator.instance;
      tessellator.startDrawingQuads();
      tessellator.addVertexWithUV(0.0D, 32, -90, 0.0D, 0.0D); // Draw corners
      tessellator.addVertexWithUV(128, 32, -90, spoutcraftTexture.getWidth(), 0.0D);
      tessellator.addVertexWithUV(128, 0.0D, -90, spoutcraftTexture.getWidth(), spoutcraftTexture.getHeight());
      tessellator.addVertexWithUV(0.0D, 0.0D, -90, 0.0D, spoutcraftTexture.getHeight());
      tessellator.draw();
View Full Code Here

    GL11.glEnable(GL11.GL_BLEND);
    GL11.glDisable(GL11.GL_ALPHA_TEST);
    GL11.glBlendFunc(770, 771);
    GL11.glShadeModel(GL11.GL_SMOOTH);
    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawingQuads();
    boolean VERT = gradient.getOrientation() == Orientation.VERTICAL;
    tessellator.setColorRGBA_F(gradient.getTopColor().getRedF(), gradient.getTopColor().getGreenF(), gradient.getTopColor().getBlueF(), gradient.getTopColor().getAlphaF());
    tessellator.addVertex((VERT ? gradient.getWidth() : 0) + gradient.getScreenX(), (VERT ? 0 : gradient.getHeight()) + gradient.getScreenY(), 0.0D);
    tessellator.addVertex(gradient.getScreenX(), gradient.getScreenY(), 0.0D);
    tessellator.setColorRGBA_F(gradient.getBottomColor().getRedF(), gradient.getBottomColor().getGreenF(), gradient.getBottomColor().getBlueF(), gradient.getBottomColor().getAlphaF());
View Full Code Here

    GL11.glDisable(3008 /*GL_ALPHA_TEST*/);
    GL11.glShadeModel(7425 /*GL_SMOOTH*/);
    GL11.glDisable(3553 /*GL_TEXTURE_2D*/);
    Tessellator var16 = Tessellator.instance;
    byte var19 = 4;
    var16.startDrawingQuads();
    var16.setColorRGBA_I(0, 0);
    var16.addVertexWithUV(0, (double)(30 + var19), 0.0D, 0.0D, 1.0D);
    var16.addVertexWithUV(this.width - 12, (double)(30 + var19), 0.0D, 1.0D, 1.0D);
    var16.setColorRGBA_I(0, 255);
    var16.addVertexWithUV(this.width - 12, 30, 0.0D, 1.0D, 0.0D);
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.