Package org.mt4j.components.visibleComponents.shapes.mesh

Examples of org.mt4j.components.visibleComponents.shapes.mesh.MTTriangleMesh.generateAndUseDisplayLists()


        mesh.getGeometryInfo().setNormals(mesh.getGeometryInfo().getNormals(), mesh.isUseDirectGL(), mesh.isUseVBOs());
      }

      //If the mesh has more than 20 vertices, use a display list for faster rendering
      if (mesh.getVertexCount() > 20)
        mesh.generateAndUseDisplayLists();
      //Set the material to the mesh  (determines the reaction to the lightning)
      if (mesh.getMaterial() == null)
        mesh.setMaterial(material);
      mesh.setDrawNormals(false);
    }
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.