Examples of startDrawing()


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

  public static void drawCircleBorder(double x, double y, double r, double width) {
    GL11.glEnable(GL11.GL_BLEND);
        GL11.glDisable(GL11.GL_TEXTURE_2D);
        GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    Tessellator tes = Tessellator.instance;
        tes.startDrawing(GL11.GL_TRIANGLE_STRIP);
        // for some the circle is only drawn if theta is decreasing rather than ascending
        double end = Math.PI * 2.0;
        double incr = end / circleSteps;
        double r2 = r + width;
        for (double theta = -incr; theta < end; theta += incr) {
View Full Code Here

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

        if(Minecraft.getMinecraft().gameSettings.fancyGraphics) {
            for(ChunkPosition pos : showingPositions) {
                GL11.glPushMatrix();
                GL11.glTranslated(pos.chunkPosX + 0.25, pos.chunkPosY + 0.25, pos.chunkPosZ + 0.25);
                GL11.glScaled(0.5, 0.5, 0.5);
                t.startDrawing(GL11.GL_LINES);
                t.setColorRGBA_I(0, ticksExisted < 150 ? 150 : (200 - ticksExisted) * 3);

                t.addVertex(0, 0, 0);
                t.addVertex(0, 1, 0);
                t.addVertex(1, 1, 0);
View Full Code Here

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

            y += 28F;
            x -= 18;
            y -= (particleProgress - 0.7F) * 70;
        }
        Tessellator tess = Tessellator.instance;
        tess.startDrawing(GL11.GL_LINES);
        tess.addVertex(x, y, zLevel);
        tess.addVertex(x, y + 1D, zLevel);
        tess.draw();
    }
}
View Full Code Here

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

        GL11.glTranslated((getInter(endX, lastTickLine.endX, partialTick) - startX) * renderProgress, (getInter(endY, lastTickLine.endY, partialTick) - startY) * renderProgress, (getInter(endZ, lastTickLine.endZ, partialTick) - startZ) * renderProgress);
        GL11.glRotatef(rotationYaw, 0.0F, 1.0F, 0.0F);
        GL11.glRotatef(rotationPitch, 0.0F, 0.0F, 1.0F);
        Tessellator tess = Tessellator.instance;
        GL11.glEnable(GL11.GL_LINE_SMOOTH);
        tess.startDrawing(GL11.GL_LINE_LOOP);
        tess.setColorOpaque_I(color);
        double size = 5 / 16D;
        for(int i = 0; i < PneumaticCraftUtils.circlePoints; i++) {
            tess.addVertex(0, PneumaticCraftUtils.sin[i] * size, PneumaticCraftUtils.cos[i] * size);
        }
View Full Code Here

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

    }

    @SideOnly(Side.CLIENT)
    public void render(){
        Tessellator tess = Tessellator.instance;
        tess.startDrawing(GL11.GL_LINES);
        tess.addVertex(startX, startY, startZ);
        tess.addVertex(startX + (endX - startX) * progress, startY + (endY - startY) * progress, startZ + (endZ - startZ) * progress);
        tess.draw();
    }

View Full Code Here

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

    }

    @SideOnly(Side.CLIENT)
    public void renderInterpolated(RenderProgressingLine lastTickLine, float partialTick){
        Tessellator tess = Tessellator.instance;
        tess.startDrawing(GL11.GL_LINES);
        tess.addVertex(getInter(startX, lastTickLine.startX, partialTick), getInter(startY, lastTickLine.startY, partialTick), getInter(startZ, lastTickLine.startZ, partialTick));
        tess.addVertex(getInter(startX, lastTickLine.startX, partialTick) + (getInter(endX, lastTickLine.endX, partialTick) - getInter(startX, lastTickLine.startX, partialTick)) * progress, getInter(startY, lastTickLine.startY, partialTick) + (getInter(startY, lastTickLine.startY, partialTick) - getInter(endY, lastTickLine.endY, partialTick)) * progress, getInter(startZ, lastTickLine.startZ, partialTick) + (getInter(endZ, lastTickLine.endZ, partialTick) - getInter(startZ, lastTickLine.startZ, partialTick)) * progress);
        tess.draw();
    }

View Full Code Here

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

        GL11.glEnable(GL11.GL_LINE_SMOOTH);

        double caseDistance = 0D;
        // draw the bar
        // GL11.glLineWidth((float)(maxY - minY) * 1.95F);
        tessellator.startDrawing(GL11.GL_QUADS);
        // tessellator.setColorRGBA_F(red, green, blue, alpha);
        tessellator.addVertex(minX + (maxX - minX) * caseDistance, minY + (maxY - minY) * caseDistance, zLevel);
        tessellator.addVertex(minX + (maxX - minX) * caseDistance, minY + (maxY - minY) * (1D - caseDistance), zLevel);
        tessellator.addVertex(minX + (maxX - minX) * caseDistance + (maxX - minX) * (1D - 2 * caseDistance) * progress / 100D, minY + (maxY - minY) * (1D - caseDistance), zLevel);
        tessellator.addVertex(minX + (maxX - minX) * caseDistance + (maxX - minX) * (1D - 2 * caseDistance) * progress / 100D, minY + (maxY - minY) * caseDistance, zLevel);
View Full Code Here

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

        tessellator.draw();

        GL11.glColor4f(0, 0, 0, 1);
        // draw the casing.
        tessellator.startDrawing(GL11.GL_LINE_LOOP);
        // tessellator.setColorRGBA_F(red, green, blue, alpha);
        tessellator.addVertex(minX, minY, zLevel);
        tessellator.addVertex(minX, maxY, zLevel);
        tessellator.addVertex(maxX, maxY, zLevel);
        tessellator.addVertex(maxX, minY, zLevel);
View Full Code Here

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

                    red = (path.getCurrentPathLength() - i) * 0.005D;
                }
                GL11.glColor4d(red, 1 - red, 0, 0.5D);
                PathPoint lastPoint = path.getPathPointFromIndex(i - 1);
                PathPoint pathPoint = path.getPathPointFromIndex(i);
                tess.startDrawing(GL11.GL_LINE_STRIP);
                tess.addVertex(lastPoint.xCoord + 0.5D, lastPoint.yCoord, lastPoint.zCoord + 0.5D);
                tess.addVertex((lastPoint.xCoord + pathPoint.xCoord) / 2D + 0.5D, Math.max(lastPoint.yCoord, pathPoint.yCoord), (lastPoint.zCoord + pathPoint.zCoord) / 2D + 0.5D);
                tess.addVertex(pathPoint.xCoord + 0.5D, pathPoint.yCoord, pathPoint.zCoord + 0.5D);
                tess.draw();
            }
View Full Code Here

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

        // GL11.glLineWidth((float)size * 20F);
        GL11.glEnable(GL11.GL_LINE_SMOOTH);

        GL11.glRotatef((float)renderRotationAngle, 0, 0, 1);
        tessellator.startDrawing(GL11.GL_TRIANGLE_STRIP);
        tessellator.setNormal(0F, 1F, 0F);
        // 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
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.