本文整理汇总了Java中ethanjones.cubes.graphics.assets.Assets.preInit方法的典型用法代码示例。如果您正苦于以下问题:Java Assets.preInit方法的具体用法?Java Assets.preInit怎么用?Java Assets.preInit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ethanjones.cubes.graphics.assets.Assets
的用法示例。
在下文中一共展示了Assets.preInit方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: preInit
import ethanjones.cubes.graphics.assets.Assets; //导入方法依赖的package包/类
public static void preInit(AdapterInterface aI) {
if (preInit)
return;
preInit = true;
if (Compatibility.get() == null) {
Log.error(new CubesException("No Compatibility module for this platform: " + Gdx.app.getType().name()
+ ", OS: " + System.getProperty("os.name") + ", Arch:" + System.getProperty("os.arch")));
}
Cubes.adapterInterface = aI;
Compatibility.get().getBaseFolder().mkdirs();
Log.info(Branding.DEBUG); // Can't log till base folder setup
Log.info("https://github.com/ictrobot/Cubes");
Debug.printProperties();
Compatibility.get().logEnvironment();
Executor.init();
Assets.preInit();
}
示例2: preInit
import ethanjones.cubes.graphics.assets.Assets; //导入方法依赖的package包/类
public static void preInit(AdapterInterface adapterInterface) {
if (preInit) return;
preInit = true;
if (Compatibility.get() == null) {
Log.error(new CubesException("No Compatibility module for this platform: " + Gdx.app.getType().name() + ", OS: " + System.getProperty("os.name") + ", Arch:" + System.getProperty("os.arch")));
}
Cubes.adapterInterface = adapterInterface;
Compatibility.get().getBaseFolder().mkdirs();
Log.info(Branding.DEBUG); //Can't log till base folder setup
Log.info("https://github.com/ictrobot/Cubes");
Debug.printProperties();
Compatibility.get().logEnvironment();
Executor.init();
Assets.preInit();
}