Package engine.model

Examples of engine.model.ObjModel


   * @return the ObjModel or null if the file doesnt exist
   */
  public static ObjModel loadModel(String name){
    if(name == null || name.isEmpty()) return null;
    if(models.containsKey(name) == false){
      models.put(name, new ObjModel(name));
    }
    return models.get(name);
  }
View Full Code Here


    }
  }
 
  private Entity addWall(int rot, int mesh){
    Entity ent = new Entity();
    ObjModel model;
    switch(mesh){
      case 0:
        model = loadModel("tile_wall2.obj");
        break;
      case 1:
View Full Code Here

TOP

Related Classes of engine.model.ObjModel

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.