use of com.badlogic.gdx.backends.lwjgl.LwjglApplication in project semiprime by entangledloops.
the class DesktopLauncher method main.
public static void main(String[] arg) {
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
new LwjglApplication(new Semiprime(), config);
}
use of com.badlogic.gdx.backends.lwjgl.LwjglApplication in project libgdx by libgdx.
the class TiledMapPackerTestRender method main.
public static void main(String[] args) throws Exception {
File file = new File(MAP_PATH);
if (!file.exists()) {
System.out.println("Please run TiledMapPackerTest.");
return;
}
new LwjglApplication(new TiledMapPackerTestRender(), "", 640, 480);
}
use of com.badlogic.gdx.backends.lwjgl.LwjglApplication in project libgdx by libgdx.
the class LwjglTestStarter method runTest.
/**
* 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) {
boolean useGL30 = false;
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;
if (useGL30) {
config.useGL30 = true;
ShaderProgram.prependVertexCode = "#version 140\n#define varying out\n#define attribute in\n";
ShaderProgram.prependFragmentCode = "#version 140\n#define varying in\n#define texture2D texture\n#define gl_FragColor fragColor\nout vec4 fragColor;\n";
} else {
config.useGL30 = false;
ShaderProgram.prependVertexCode = "";
ShaderProgram.prependFragmentCode = "";
}
new LwjglApplication(test, config);
return true;
}
use of com.badlogic.gdx.backends.lwjgl.LwjglApplication in project RubeLoader by tescott.
the class RubeLoaderTestDesktop method mainLaunch.
/**
* @param args
*/
public static void mainLaunch(int width, int height, boolean useAssetManager, int rubeListIndex) {
LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration();
cfg.title = GAME_NAME;
cfg.width = width;
cfg.height = height;
new LwjglApplication(new RubeLoaderTest(useAssetManager, rubeListIndex), cfg);
}
use of com.badlogic.gdx.backends.lwjgl.LwjglApplication in project libgdx-inGameConsole by StrongJoshua.
the class Box2DTest method main.
public static void main(String[] args) {
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
new LwjglApplication(new Box2DTest(), config);
}
Aggregations