Examples of startDrawingQuads()


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

  public static void drawTexturedModalRect(int x, int y, int u, int v, int width, int height, float zLevel)
  {
    float xScale = 0.00390625F;
    float yScale = 0.00390625F;
    Tessellator var9 = Tessellator.instance;
    var9.startDrawingQuads();
    var9.addVertexWithUV(x,         y + height, zLevel, u * xScale,           (v + height) * yScale);
    var9.addVertexWithUV(x + width, y + height, zLevel, (u + width) * xScale, (v + height) * yScale);
    var9.addVertexWithUV(x + width, y,          zLevel, (u + width) * xScale, v * yScale);
    var9.addVertexWithUV(x,         y,          zLevel, u * xScale,           v * yScale);
    var9.draw();
 
View Full Code Here

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

    GL11.glRotatef(deg, 0F, 1F, 0F);
    GL11.glColor4f(1F, 1F, 1F, 1F);
    Tessellator tess = Tessellator.instance;
    double size1 = size / 2;
    double size2 = -size1;
    tess.startDrawingQuads();
    tess.addVertexWithUV(size2, 0, size1, 0, 1);
    tess.addVertexWithUV(size1, 0, size1, 1, 1);
    tess.addVertexWithUV(size1, 0, size2, 1, 0);
    tess.addVertexWithUV(size2, 0, size2, 0, 0);
    tess.draw();
View Full Code Here

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

    GL11.glRotatef(deg, 0F, 1F, 0F);
    GL11.glColor4f(1F, 1F, 1F, 1F);
    Tessellator tess = Tessellator.instance;
    double size1 = size / 2;
    double size2 = -size1;
    tess.startDrawingQuads();
    tess.addVertexWithUV(size2, 0, size1, 0, 1);
    tess.addVertexWithUV(size1, 0, size1, 1, 1);
    tess.addVertexWithUV(size1, 0, size2, 1, 0);
    tess.addVertexWithUV(size2, 0, size2, 0, 0);
    tess.draw();
View Full Code Here

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

    GL11.glDisable(GL11.GL_FOG);
    Tessellator tessellator = Tessellator.instance;
    mc.getTextureManager().bindTexture(enderField);
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    float f = 256.0F;
    tessellator.startDrawingQuads();
    float hue = (float) (Math.sin(ticks / 150D) + 1F / 2F);
    tessellator.setColorOpaque_I(Color.HSBtoRGB(hue, 0.5F, 0.4F));
    tessellator.addVertexWithUV(0.0D, height, 0.0D, 0.0D, height / f + par1);
    tessellator.addVertexWithUV(width, height, 0.0D, width / f, height / f + par1);
    tessellator.addVertexWithUV(width, 0.0D, 0.0D, width / f, par1);
View Full Code Here

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

      if(elementY <= maxY && elementY + slotHeight >= minY) {

        if(showSelectionBox && i == selectedIndex) {
          GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
          GL11.glDisable(GL11.GL_TEXTURE_2D);
          tessellator.startDrawingQuads();
          tessellator.setColorOpaque_I(8421504);
          tessellator.addVertexWithUV(minX, elementY + slotHeight + 2, 0.0D, 0.0D, 1.0D);
          tessellator.addVertexWithUV(maxX, elementY + slotHeight + 2, 0.0D, 1.0D, 1.0D);
          tessellator.addVertexWithUV(maxX, elementY - 2, 0.0D, 1.0D, 0.0D);
          tessellator.addVertexWithUV(minX, elementY - 2, 0.0D, 0.0D, 0.0D);
View Full Code Here

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

    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    GL11.glDisable(GL11.GL_ALPHA_TEST);
    GL11.glShadeModel(GL11.GL_SMOOTH);
    GL11.glDisable(GL11.GL_TEXTURE_2D);

    tessellator.startDrawingQuads();
    tessellator.setColorRGBA_I(0, 0);
    tessellator.addVertexWithUV(this.minX, this.minY + margin, 0.0D, 0.0D, 1.0D);
    tessellator.addVertexWithUV(this.maxX, this.minY + margin, 0.0D, 1.0D, 1.0D);
    tessellator.setColorRGBA_I(0, 255);
    tessellator.addVertexWithUV(this.maxX, this.minY, 0.0D, 1.0D, 0.0D);
View Full Code Here

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

    tessellator.addVertexWithUV(this.maxX, this.minY + margin, 0.0D, 1.0D, 1.0D);
    tessellator.setColorRGBA_I(0, 255);
    tessellator.addVertexWithUV(this.maxX, this.minY, 0.0D, 1.0D, 0.0D);
    tessellator.addVertexWithUV(this.minX, this.minY, 0.0D, 0.0D, 0.0D);
    tessellator.draw();
    tessellator.startDrawingQuads();
    tessellator.setColorRGBA_I(0, 255);
    tessellator.addVertexWithUV(this.minX, this.maxY, 0.0D, 0.0D, 1.0D);
    tessellator.addVertexWithUV(this.maxX, this.maxY, 0.0D, 1.0D, 1.0D);
    tessellator.setColorRGBA_I(0, 0);
    tessellator.addVertexWithUV(this.maxX, this.maxY - margin, 0.0D, 1.0D, 0.0D);
View Full Code Here

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

  public static void renderQuad2D(double x, double y, double z, double width, double height, int colorRGB) {
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    GL11.glDisable(GL11.GL_TEXTURE_2D);
    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawingQuads();
    tessellator.setColorOpaque_I(colorRGB);
    tessellator.addVertex(x, y + height, z);
    tessellator.addVertex(x + width, y + height, z);
    tessellator.addVertex(x + width, y, z);
    tessellator.addVertex(x, y, z);
View Full Code Here

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

  public static void renderQuad2D(double x, double y, double z, double width, double height, Vector4f colorRGBA) {
    GL11.glColor4f(colorRGBA.x, colorRGBA.y, colorRGBA.z, colorRGBA.w);
    GL11.glDisable(GL11.GL_TEXTURE_2D);
    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawingQuads();
    tessellator.addVertex(x, y + height, z);
    tessellator.addVertex(x + width, y + height, z);
    tessellator.addVertex(x + width, y, z);
    tessellator.addVertex(x, y, z);
    tessellator.draw();
View Full Code Here

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

    return lookMat;
  }

  public static void renderBillboard(Matrix4d lookMat, float minU, float maxU, float minV, float maxV, double size, int brightness) {
    Tessellator tes = Tessellator.instance;
    tes.startDrawingQuads();
    tes.setBrightness(brightness);

    double s = size / 2;
    Vector3d v = new Vector3d();
    v.set(-s, s, 0);
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.