Package com.badlogic.gdx.graphics.glutils

Examples of com.badlogic.gdx.graphics.glutils.ShapeRenderer.triangle()


        if (vertices == null || triangles == null) continue;
        if (drawMeshTriangles) {
          shapes.setColor(triangleLineColor);
          for (int ii = 0, nn = triangles.length; ii < nn; ii += 3) {
            int v1 = triangles[ii] * 5, v2 = triangles[ii + 1] * 5, v3 = triangles[ii + 2] * 5;
            shapes.triangle(vertices[v1], vertices[v1 + 1], //
              vertices[v2], vertices[v2 + 1], //
              vertices[v3], vertices[v3 + 1] //
              );
          }
        }
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.