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); }
/** * 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; }
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); }
/** 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); }
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); }
public GdxTest instance () { return new AccelerometerTest(); }
public GdxTest instance () { return new ActionTest(); }
public GdxTest instance () { return new ActionSequenceTest(); }
public GdxTest instance () { return new AnimationTest(); }
public GdxTest instance () { return new AnnotationTest(); }
public GdxTest instance () { return new AssetManagerTest(); }
public GdxTest instance () { return new AtlasIssueTest(); }
public GdxTest instance () { return new BitmapFontAlignmentTest(); }
public GdxTest instance () { return new BitmapFontFlipTest(); }
public GdxTest instance () { return new BitmapFontTest(); }
public GdxTest instance () { return new BitmapFontMetricsTest(); }
public GdxTest instance () { return new BlitTest(); }
public GdxTest instance () { return new Box2DCharacterControllerTest(); }
public GdxTest instance () { return new Box2DTest(); }
public GdxTest instance () { return new Box2DTestCollection(); }
public GdxTest instance () { return new BufferUtilsTest(); }
public GdxTest instance () { return new ComplexActionTest(); }
public GdxTest instance () { return new CustomShaderSpriteBatchTest(); }
public GdxTest instance () { return new DecalTest(); }
public GdxTest instance () { return new LabelScaleTest(); }
public GdxTest instance () { return new EdgeDetectionTest(); }
public GdxTest instance () { return new FilterPerformanceTest(); }
public GdxTest instance () { return new FrameBufferTest(); }
public GdxTest instance () { return new GestureDetectorTest(); }
public GdxTest instance () { return new GroupCullingTest(); }
public GdxTest instance () { return new GroupFadeTest(); }
public GdxTest instance () { return new I18NSimpleMessageTest(); }
public GdxTest instance () { return new ImageScaleTest(); }
public GdxTest instance () { return new ImageTest(); }
public GdxTest instance () { return new IndexBufferObjectShaderTest(); }
public GdxTest instance () { return new IntegerBitmapFontTest(); }
public GdxTest instance () { return new InverseKinematicsTest(); }
public GdxTest instance () { return new IsometricTileTest(); }
public GdxTest instance () { return new KinematicBodyTest(); }
public GdxTest instance () { return new LifeCycleTest(); }