Examples of startDrawingQuads()


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

    if (texture == null) {
      return;
    }
    renderer.setRenderBoundsFromBlock(block);
    GL11.glTranslated(translateX, translateY, translateZ);
    tessellator.startDrawingQuads();

    tessellator.setNormal(0.0F, -1.0F, 0.0F);
    renderer.renderFaceYNeg(block, 0.0D, 0.0D, 0.0D, texture);

    tessellator.setNormal(0.0F, 1.0F, 0.0F);
View Full Code Here

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

  }

  public static void renderIcon(double x, double y, double z, IIcon icon, int width, int height) {

    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawingQuads();
    tessellator.addVertexWithUV(x, y + height, z, icon.getMinU(), icon.getMaxV());
    tessellator.addVertexWithUV(x + width, y + height, z, icon.getMaxU(), icon.getMaxV());
    tessellator.addVertexWithUV(x + width, y, z, icon.getMaxU(), icon.getMinV());
    tessellator.addVertexWithUV(x, y, z, icon.getMinU(), icon.getMinV());
    tessellator.draw();
View Full Code Here

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

    int texture = GL11.glGetInteger(GL11.GL_TEXTURE_BINDING_2D);

    if (type == ItemRenderType.INVENTORY) {
      GL11.glDisable(GL11.GL_LIGHTING);

      tessellator.startDrawingQuads();
      tessellator.addVertexWithUV(0, 16, 0, iconMinX, iconMaxY);
      tessellator.addVertexWithUV(16, 16, 0, iconMaxX, iconMaxY);
      tessellator.addVertexWithUV(16, 0, 0, iconMaxX, iconMinY);
      tessellator.addVertexWithUV(0, 0, 0, iconMinX, iconMinY);
      tessellator.draw();
View Full Code Here

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

      tessellator.addVertexWithUV(16, 0, 0, iconMaxX, iconMinY);
      tessellator.addVertexWithUV(0, 0, 0, iconMinX, iconMinY);
      tessellator.draw();

      if (hasFluid) {
        tessellator.startDrawingQuads();
        tessellator.addVertexWithUV(0, 16, 0.001, maskMinX, maskMaxY);
        tessellator.addVertexWithUV(16, 16, 0.001, maskMaxX, maskMaxY);
        tessellator.addVertexWithUV(16, 0, 0.001, maskMaxX, maskMinY);
        tessellator.addVertexWithUV(0, 0, 0.001, maskMinX, maskMinY);
        tessellator.draw();
View Full Code Here

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

        GL11.glDepthMask(false);
        GL11.glMatrixMode(GL11.GL_TEXTURE);
        bindTexture(RenderHelper.engine(), fluidSheet);
        OpenGlHelper.glBlendFunc(GL11.GL_ONE, GL11.GL_ZERO, GL11.GL_ONE, GL11.GL_ZERO);

        tessellator.startDrawingQuads();
        tessellator.setColorOpaque_I(colorMult);
        tessellator.addVertexWithUV(0, 16, 0.001, fluidMinX, fluidMaxY);
        tessellator.addVertexWithUV(16, 16, 0.001, fluidMaxX, fluidMaxY);
        tessellator.addVertexWithUV(16, 0, 0.001, fluidMaxX, fluidMinY);
        tessellator.addVertexWithUV(0, 0, 0.001, fluidMinX, fluidMinY);
View Full Code Here

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

        GL11.glRotatef(180, 0, 1, 0);
      }
      ItemRenderer.renderItemIn2D(tessellator, iconMaxX, iconMinY, iconMinX, iconMaxY, icon.getIconWidth(), icon.getIconHeight(), 0.0625F);

      if (hasFluid) {
        tessellator.startDrawingQuads();
        tessellator.setNormal(0, 0, 1);
        tessellator.addVertexWithUV(0, 0, 0.001, maskMaxX, maskMaxY);
        tessellator.addVertexWithUV(1, 0, 0.001, maskMinX, maskMaxY);
        tessellator.addVertexWithUV(1, 1, 0.001, maskMinX, maskMinY);
        tessellator.addVertexWithUV(0, 1, 0.001, maskMaxX, maskMinY);
View Full Code Here

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

    float startX = full ? 0 : 9 * size;
    float endX = full ? 9 * size : 1;
    float startY = 0;
    float endY = 9 * size;

    tess.startDrawingQuads();
    tess.addVertexWithUV(x, y + 9, 0, startX, endY);
    tess.addVertexWithUV(x + (full ? 9 : 7), y + 9, 0, endX, endY);
    tess.addVertexWithUV(x + (full ? 9 : 7), y, 0, endX, startY);
    tess.addVertexWithUV(x, y, 0, startX, startY);
    tess.draw();
View Full Code Here

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

        GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
        Tessellator tessellator = Tessellator.instance;
        int yOffset = 0;
       
        GL11.glDisable(GL11.GL_TEXTURE_2D);
        tessellator.startDrawingQuads();
        int stringMiddle = fontRenderer.getStringWidth(text) / 2;
        tessellator.setColorRGBA_F(0.0F, 0.0F, 0.0F, 0.5F);
        tessellator.addVertex(-stringMiddle - 1, -1 + yOffset, 0.0D);
        tessellator.addVertex(-stringMiddle - 1, 8 + yOffset, 0.0D);
        tessellator.addVertex(stringMiddle + 1, 8 + yOffset, 0.0D);
View Full Code Here

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

    Tessellator tessellator = Tessellator.instance;
    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(x1, y2, 0.0D);
    tessellator.addVertex(x2, y2, 0.0D);
    tessellator.addVertex(x2, y1, 0.0D);
    tessellator.addVertex(x1, y1, 0.0D);
    tessellator.draw();
View Full Code Here

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

    GL11.glEnable(GL11.GL_BLEND);
    GL11.glDisable(GL11.GL_ALPHA_TEST);
    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    GL11.glShadeModel(GL11.GL_SMOOTH);
    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawingQuads();
    tessellator.setColorRGBA_F(r1, g1, b1, a1);
    tessellator.addVertex(x2, y1, zLevel);
    tessellator.addVertex(x1, y1, zLevel);
    tessellator.setColorRGBA_F(r2, g2, b2, a2);
    tessellator.addVertex(x1, y2, zLevel);
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.