Package libshapedraw.shape

Examples of libshapedraw.shape.GLUCylinder


    @Override
    public void load() {
        libShapeDraw.verifyInitialized();

        // Set up a wireframe cone pointing downward
        GLUCylinder shape = new GLUCylinder(
                new Vector3(14, 93, 0),
                Color.HOT_PINK.copy(),
                Color.HOT_PINK.copy().scaleAlpha(XrayShape.SECONDARY_ALPHA),
                2.5F, Float.MIN_NORMAL, 5.0F);
        shape.setSlices(12).setStacks(8).setWireframe(true, 3.0F);
        Vector3 vector = new Vector3();
        shape.addTransform(new ShapeTranslate(vector));
        shape.addTransform(new ShapeRotate(90.0, Axis.X)); // upright
        libShapeDraw.addShape(shape);

        // Animate it with a custom Timeline, using a Sine ease. This makes
        // the animation start out fast, then slow down at the end of each
        // cycle.
View Full Code Here

TOP

Related Classes of libshapedraw.shape.GLUCylinder

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.