当前位置: 首页>>代码示例>>Java>>正文


Java GdxTest类代码示例

本文整理汇总了Java中com.badlogic.gdx.tests.utils.GdxTest的典型用法代码示例。如果您正苦于以下问题:Java GdxTest类的具体用法?Java GdxTest怎么用?Java GdxTest使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


GdxTest类属于com.badlogic.gdx.tests.utils包,在下文中一共展示了GdxTest类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: main

import com.badlogic.gdx.tests.utils.GdxTest; //导入依赖的package包/类
public static void main (String[] argv) {
		// this is only here for me to debug native code faster
//		new SharedLibraryLoader("../../extensions/gdx-audio/libs/gdx-audio-natives.jar").load("gdx-audio");
//		new SharedLibraryLoader("../../extensions/gdx-image/libs/gdx-image-natives.jar").load("gdx-image");
//		new SharedLibraryLoader("../../extensions/gdx-freetype/libs/gdx-freetype-natives.jar").load("gdx-freetype");
//		new SharedLibraryLoader("../../extensions/gdx-controllers/gdx-controllers-desktop/libs/gdx-controllers-desktop-natives.jar").load("gdx-controllers-desktop");
//		new SharedLibraryLoader("../../gdx/libs/gdx-natives.jar").load("gdx");

		GdxTest test = new JsonReaderTest();		
		LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
		config.r = config.g = config.b = config.a = 8;
//		config.width = 320;
//		config.height = 241;
		config.width = 960;
		config.height = 600;
		new LwjglApplication(test, config);
	}
 
开发者ID:basherone,项目名称:libgdxcn,代码行数:18,代码来源:LwjglDebugStarter.java

示例2: runTest

import com.badlogic.gdx.tests.utils.GdxTest; //导入依赖的package包/类
/**
 * Runs the {@link GdxTest} with the given name.
 * 
 * @param testName the name of a test class
 * @return {@code true} if the test was found and run, {@code false} otherwise
 */
public static boolean runTest (String testName) {
	GdxTest test = GdxTests.newTest(testName);
	if (test == null) {
		return false;
	}
	LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
	config.width = 640;
	config.height = 480;
	config.title = testName;
	config.forceExit = false;
	new LwjglApplication(test, config);
	return true;
}
 
开发者ID:basherone,项目名称:libgdxcn,代码行数:20,代码来源:LwjglTestStarter.java

示例3: onCreate

import com.badlogic.gdx.tests.utils.GdxTest; //导入依赖的package包/类
public void onCreate (Bundle bundle) {
	super.onCreate(bundle);

	// obtain the test info
	Bundle extras = getIntent().getExtras();
	String testName = (String)extras.get("test");
	GdxTest test = GdxTests.newTest(testName);
	
	// and run the application...
	AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
	config.useImmersiveMode = true;
	initialize(test, config);
}
 
开发者ID:basherone,项目名称:libgdxcn,代码行数:14,代码来源:GdxTestActivity.java

示例4: runTest

import com.badlogic.gdx.tests.utils.GdxTest; //导入依赖的package包/类
/** Runs the {@link GdxTest} with the given name.
 * @param testName the name of a test class
 * @return {@code true} if the test was found and run, {@code false} otherwise */
public static JglfwApplication runTest (String testName) {
	final GdxTest test = GdxTests.newTest(testName);
	if (test == null) throw new GdxRuntimeException("Test not found: " + testName);

	final JglfwApplicationConfiguration config = new JglfwApplicationConfiguration();
	config.width = 640;
	config.height = 480;
	config.title = testName;
	config.forceExit = false;
	return new JglfwApplication(test, config);
}
 
开发者ID:basherone,项目名称:libgdxcn,代码行数:15,代码来源:JglfwTestStarter.java

示例5: main

import com.badlogic.gdx.tests.utils.GdxTest; //导入依赖的package包/类
public static void main (String[] argv) {
	// this is only here for me to debug native code faster
	new SharedLibraryLoader("../../extensions/gdx-audio/libs/gdx-audio-natives.jar").load("gdx-audio");
	new SharedLibraryLoader("../../extensions/gdx-image/libs/gdx-image-natives.jar").load("gdx-image");
	new SharedLibraryLoader("../../extensions/gdx-freetype/libs/gdx-freetype-natives.jar").load("gdx-freetype");
	new SharedLibraryLoader("../../extensions/gdx-controllers/gdx-controllers-desktop/libs/gdx-controllers-desktop-natives.jar")
		.load("gdx-controllers-desktop");
	new SharedLibraryLoader("../../gdx/libs/gdx-natives.jar").load("gdx");

	GdxTest test = new SuperKoalio();
	JglfwApplicationConfiguration config = new JglfwApplicationConfiguration();
	config.vSync = true;
	new JglfwApplication(test, config);
}
 
开发者ID:basherone,项目名称:libgdxcn,代码行数:15,代码来源:JglfwDebugStarter.java

示例6: instance

import com.badlogic.gdx.tests.utils.GdxTest; //导入依赖的package包/类
public GdxTest instance () {
	return new AccelerometerTest();
}
 
开发者ID:basherone,项目名称:libgdxcn,代码行数:4,代码来源:GwtTestWrapper.java


注:本文中的com.badlogic.gdx.tests.utils.GdxTest类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。