Package com.forgeessentials.client.util

Examples of com.forgeessentials.client.util.ClientSelection


            renderBlockBox(tess);
        }

        if (info.getSelection() != null)
        {
            ClientSelection sel = info.getSelection();

            float x = sel.getLowPoint().getX() - sel.getEnd().getX();
            float y = sel.getLowPoint().getY() - sel.getEnd().getY();
            float z = (float) (sel.getLowPoint().getZ() - sel.getEnd().getZ()) - 1;

            // translate to the low point..
            GL11.glTranslated(x, y, z);

            GL11.glScalef(1.0F, -1.0F, -1.0F);
            GL11.glColor3f(0, 5, 100);
            // renderBlockBox(tess);
            renderBlockBoxTo(tess, new ClientPoint(sel.getXLength(), -sel.getYLength(), -sel.getZLength()));
        }

        GL11.glDisable(GL12.GL_RESCALE_NORMAL);
        GL11.glEnable(GL11.GL_DEPTH_TEST);
        GL11.glEnable(GL11.GL_TEXTURE_2D);
View Full Code Here


    public void setPoint1(ClientPoint sel1)
    {
        this.sel1 = sel1;
        if (sel1 != null && sel2 != null)
        {
            selection = new ClientSelection(sel1, sel2);
        }
    }
View Full Code Here

    public void setPoint2(ClientPoint sel2)
    {
        this.sel2 = sel2;
        if (sel1 != null && sel2 != null)
        {
            selection = new ClientSelection(sel1, sel2);
        }
    }
View Full Code Here

TOP

Related Classes of com.forgeessentials.client.util.ClientSelection

Copyright © 2018 www.massapicom. 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.