Package com.badlogic.gdx.assets.loaders

Examples of com.badlogic.gdx.assets.loaders.ModelLoader


    protected void loadResource () {
      File file = editor.showFileLoadDialog();
      if(file != null){
        try{
          String resource = file.getAbsolutePath();
          ModelLoader modelLoader = null;
          if(resource.endsWith(".obj")){
            modelLoader = new ObjLoader(new AbsoluteFileHandleResolver());
          }
          else if(resource.endsWith(".g3dj")){
            modelLoader = new G3dModelLoader(new JsonReader(), new AbsoluteFileHandleResolver());
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.assets.loaders.ModelLoader

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.