public class MeshViewer implements GLEventListener, MouseListener, MouseMotionListener, KeyListener, MouseWheelListener {
- public Mesh tile = new Mesh();
- public Mesh goal = new Mesh();
+ public Mesh tile = new Mesh(false);
+ public Mesh goal = new Mesh(false);
public Matrix[] translations;
public Mesh.Vertex[] points;
float red = 0.0f;
float green = 0.0f;
float blue = 0.0f;
+ synchronized(safeTriangles) {
for(Mesh.T t : tris) {
if (red < 0.15) red = 1.0f;
if (green < 0.15) green = 1.0f;
}
*/
gl.glEnd();
-
+ }
}
}