Package com.badlogic.gdx.utils

Examples of com.badlogic.gdx.utils.UBJsonReader


          }
          else if(resource.endsWith(".g3dj")){
            modelLoader = new G3dModelLoader(new JsonReader(), new AbsoluteFileHandleResolver());
          }
          else if(resource.endsWith(".g3db")){
            modelLoader = new G3dModelLoader(new UBJsonReader(), new AbsoluteFileHandleResolver());
          }
          else throw new Exception();
          listener.onResourceLoaded(editor.load(resource, Model.class, modelLoader, null));

        } catch (Exception ex) {
View Full Code Here


    setLoader(Skin.class, new SkinLoader(resolver));
    setLoader(ParticleEffect.class, new ParticleEffectLoader(resolver));
    setLoader(PolygonRegion.class, new PolygonRegionLoader(resolver));
    setLoader(I18NBundle.class, new I18NBundleLoader(resolver));
    setLoader(Model.class, ".g3dj", new G3dModelLoader(new JsonReader(), resolver));
    setLoader(Model.class, ".g3db", new G3dModelLoader(new UBJsonReader(), resolver));
    setLoader(Model.class, ".obj", new ObjLoader(resolver));
    executor = new AsyncExecutor(1);
  }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.utils.UBJsonReader

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.