Package org.lwjgl.util.glu

Examples of org.lwjgl.util.glu.GLUtessellator.gluTessBeginPolygon()


    public static void _renderShape(Shape s, int resolution) {
        PathIterator pi = s.getPathIterator(null);
        Point2D.Float current = new Point2D.Float();
        _beginTesselator();
        GLUtessellator tess = _tess;
        tess.gluTessBeginPolygon(null);
        switch (pi.getWindingRule()) {
            case PathIterator.WIND_EVEN_ODD:
                tess.gluTessProperty(GLU.GLU_TESS_WINDING_RULE, GLU.GLU_TESS_WINDING_ODD);
                break;
            case PathIterator.WIND_NON_ZERO:
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.