Java 类com.badlogic.gdx.backends.headless.HeadlessFiles 实例源码

项目:nvlist    文件:HeadlessGdx.java   
/**
 * Initializes a headless GDX platform for testing.
 */
public static synchronized void init() {
    if (Gdx.gl instanceof MockGL) {
        // Already initialized
        return;
    }

    HeadlessNativesLoader.load();
    Gdx.app = new GdxAppStub();
    Gdx.files = new HeadlessFiles();
    Gdx.net = new HeadlessNet();
    Gdx.graphics = new MockGraphics();
    Gdx.gl20 = MockGL.newInstance();
    Gdx.gl = Gdx.gl20;
    Gdx.audio = new MockAudio();
    Gdx.input = new MockInput();
}
项目:ld37    文件:TestConfiguration.java   
public TestConfiguration() {
    GameConfig.config.setPathToResourcesAsString("src/main/resources/");
    Gdx.files = new HeadlessFiles();
    Gdx.gl = new HeadlessGl();
}
项目:swampmachine    文件:TestCoreConfiguration.java   
public TestCoreConfiguration() {
    GameConfig.config.setPathToResourcesAsString("src/test/resources/");
    Gdx.files = new HeadlessFiles();
    Gdx.gl = new HeadlessGl();
}
项目:mini2Dx    文件:UriFileHandleTest.java   
@Before
public void setUp() {
    Gdx.files = new HeadlessFiles();
}