Examples of Tessellator


Examples of net.minecraft.client.renderer.Tessellator

    drawFaces(renderer, block, sideIcon, topIcon, sideIcon, sideIcon, sideIcon, sideIcon, false);
    GL11.glColor3f(1F, 1F, 1F);

    GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
    Tessellator t = Tessellator.instance;
    t.startDrawingQuads();
    t.setBrightness(255);
    t.setNormal(0, 1, 0);
    renderer.renderFaceYPos(block, 0, 0, 0, BlockWarpGate.icons[2]);
    t.draw();
    GL11.glTranslatef(0.5F, 0.5F, 0.5F);
  }
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

  public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
    block.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
    renderer.setRenderBoundsFromBlock(block);
    renderer.renderStandardBlock(block, x, y, z);

    Tessellator t = Tessellator.instance;
    t.setColorOpaque_I(0xFFFFFF);
    t.setBrightness(255);
    renderer.renderFaceYPos(block, x, y, z, BlockWarpGate.icons[2]);

    renderer.clearOverrideBlockTexture();
    block.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
    renderer.renderStandardBlock(block, x, y, z);
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

        drawTexturedRectUV(0, 0, 0, 16, 16, icon);
        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    }

    private void renderItemInEquipped(ItemStack itemstack, Aspect aspect, IIcon icon) {
        Tessellator tessellator = Tessellator.instance;
        setColorForAspect(aspect);
        ItemRenderer.renderItemIn2D(tessellator, icon.getMaxU(), icon.getMinV(), icon.getMinU(), icon.getMaxV(), icon.getIconWidth(), icon.getIconHeight(), 0.0625F);
        GL11.glColor3f(1.0F, 1.0F, 1.0F);
    }
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

        drawTextureIn3D(icon);
        GL11.glPopMatrix();
    }

    private void drawTextureIn3D(IIcon texture) {
        Tessellator tesselator = Tessellator.instance;
        float scale = 0.7F;
        GL11.glPushMatrix();
        GL11.glScalef(scale, scale, scale);
        ItemRenderer.renderItemIn2D(tesselator, texture.getMaxU(), texture.getMinV(), texture.getMinU(), texture.getMaxV(), texture.getIconWidth(), texture.getIconHeight(), .05F);
        GL11.glPopMatrix();
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

        ItemRenderer.renderItemIn2D(tesselator, texture.getMaxU(), texture.getMinV(), texture.getMinU(), texture.getMaxV(), texture.getIconWidth(), texture.getIconHeight(), .05F);
        GL11.glPopMatrix();
    }

    private void drawTexturedRectUV(float x, float y, float z, int w, int h, IIcon icon) {
        Tessellator tesselator = Tessellator.instance;
        tesselator.startDrawingQuads();
        tesselator.addVertexWithUV(x, y + h, z, icon.getMinU(), icon.getMaxV());
        tesselator.addVertexWithUV(x + w, y + h, z, icon.getMaxU(), icon.getMaxV());
        tesselator.addVertexWithUV(x + w, y, z, icon.getMaxU(), icon.getMinV());
        tesselator.addVertexWithUV(x, y, z, icon.getMinU(), icon.getMinV());
        tesselator.draw();
    }
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

            GL11.glColor4f(r, g, b, 1F);
            Tessellator.instance.setColorRGBA_I(aspect.getColor(), 255);
        }

        renderer.setOverrideBlockTexture(block.getIcon(world, x, y, z, world.getBlockMetadata(x, y, z)));
        Tessellator tessellator = Tessellator.instance;
        tessellator.setBrightness(block.getMixedBrightnessForBlock(world, x, y, z));
        renderer.renderBlockCropsImpl(block, world.getBlockMetadata(x, y, z), x, y - 0.0625F, z);
        renderer.clearOverrideBlockTexture();
        //Tessellator.instance.setColorOpaque_I(0xFFFFFF);

        GL11.glPopAttrib();
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

  }

  public void drawTexturedModalRect16(int par1, int par2, int par3, int par4, int par5, int par6) {
    float f = 1F / 16F;
    float f1 = 1F / 16F;
    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawingQuads();
    tessellator.addVertexWithUV(par1, par2 + par6, zLevel, (par3) * f, (par4 + par6) * f1);
    tessellator.addVertexWithUV(par1 + par5, par2 + par6, zLevel, (par3 + par5) * f, (par4 + par6) * f1);
    tessellator.addVertexWithUV(par1 + par5, par2, zLevel, (par3 + par5) * f, (par4) * f1);
    tessellator.addVertexWithUV(par1, par2, zLevel, (par3) * f, (par4) * f1);
    tessellator.draw();
  }
 
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

    GL11.glDisable(GL11.GL_TEXTURE_2D);
    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 var15 = Tessellator.instance;
    var15.startDrawingQuads();
    var15.setColorRGBA_F(var8, var9, var10, var7);
    var15.addVertex(par3, par2, z);
    var15.addVertex(par1, par2, z);
    var15.setColorRGBA_F(var12, var13, var14, var11);
    var15.addVertex(par1, par4, z);
    var15.addVertex(par3, par4, z);
    var15.draw();
    GL11.glShadeModel(GL11.GL_FLAT);
    GL11.glDisable(GL11.GL_BLEND);
    GL11.glEnable(GL11.GL_ALPHA_TEST);
    GL11.glEnable(GL11.GL_TEXTURE_2D);
  }
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

    float a = (color >> 24 & 255) / 255.0F;
    float r = (color >> 16 & 255) / 255.0F;
    float g = (color >> 8 & 255) / 255.0F;
    float b = (color & 255) / 255.0F;
    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, this.zLevel);
    tessellator.addVertex(x2, y2, this.zLevel);
    tessellator.addVertex(x2, y1, this.zLevel);
    tessellator.addVertex(x1, y1, this.zLevel);
    tessellator.draw();
    GL11.glEnable(GL11.GL_TEXTURE_2D);
    GL11.glDisable(GL11.GL_BLEND);
  }
View Full Code Here

Examples of net.minecraft.client.renderer.Tessellator

  public void drawSizedTexturedModalRect(int x, int y, int u, int v, int width, int height, float texW, float texH) {

    float texU = 1 / texW;
    float texV = 1 / texH;
    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawingQuads();
    tessellator.addVertexWithUV(x + 0, y + height, this.zLevel, (u + 0) * texU, (v + height) * texV);
    tessellator.addVertexWithUV(x + width, y + height, this.zLevel, (u + width) * texU, (v + height) * texV);
    tessellator.addVertexWithUV(x + width, y + 0, this.zLevel, (u + width) * texU, (v + 0) * texV);
    tessellator.addVertexWithUV(x + 0, y + 0, this.zLevel, (u + 0) * texU, (v + 0) * texV);
    tessellator.draw();
  }
 
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.