List of usage examples for com.badlogic.gdx.backends.jogl JoglApplication JoglApplication
public JoglApplication(final ApplicationListener listener, final String title, final int width, final int height, final boolean useGL20IfAvailable)
From source file:airfoil.Main.java
License:Open Source License
public static void main(String[] argv) { Main application = new Main(); new JoglApplication(application, Main.Title, application.width, application.height, true); }
From source file:com.badlogic.gdx.graphics.g3d.test.MD2Viewer.java
public static void main(String[] argv) { new JoglApplication(new MD2Viewer(), "MD2 Viewer", 480, 320, false); }
From source file:com.badlogic.gdx.graphics.g3d.test.QbobViewer.java
License:Apache License
public static void main(String[] argv) { new JoglApplication(new QbobViewer(), "Qbob Viewer", 800, 480, false); }
From source file:com.badlogic.rtm.RtmDesktop.java
License:Apache License
public static void main(String[] argv) { new JoglApplication(new LevelRenderer(), "RTM", 480, 320, false); }
From source file:com.blastedstudios.crittercaptors.CritterCaptorsDesktop.java
License:Apache License
public static void main(String[] argv) { new JoglApplication(new CritterCaptors(), "Critter Captors", 800, 600, false); }
From source file:com.cmein.tilemap.utils.TiledMapPacker.java
License:Apache License
public static void main(String[] args) { File tmxFile, baseDir, outputDir; Settings settings = new Settings(); settings.padding = 2;/*from ww w. jav a2 s . c o m*/ settings.duplicatePadding = true; // Create a new JoglApplication so that Gdx stuff works properly new JoglApplication(new ApplicationListener() { @Override public void create() { } @Override public void dispose() { } @Override public void pause() { } @Override public void render() { } @Override public void resize(int width, int height) { } @Override public void resume() { } }, "", 0, 0, false); TiledMapPacker packer = new TiledMapPacker(); /* if (args.length != 3) { System.out.println("Usage: TMXFILE BASEDIR OUTPUTDIR"); return; } */ tmxFile = new File("data/tiledmaps/LEVEL2.tmx"); baseDir = new File("data/"); outputDir = new File("data/"); if (!baseDir.exists()) { throw new RuntimeException("Base directory does not exist"); } if (!tmxFile.exists()) { throw new RuntimeException("TMX file does not exist"); } try { packer.processMap(tmxFile, baseDir, outputDir, settings); } catch (IOException e) { throw new RuntimeException("Error processing map: " + e.getMessage()); } System.exit(0); }
From source file:com.example.jumpertutorial.JumperTutorialDesktop.java
License:Apache License
@SuppressWarnings("unused") public static void main(String[] argv) { new JoglApplication(new JumperTutorial(), "JumperTutorial", 800, 480, false); }
From source file:com.sertaogames.cactus2d.misc.TiledMapPacker.java
License:Apache License
/** Processes a directory of Tile Maps, compressing each tile set contained in any map once. * @param args args[0]: the input directory containing the tmx files (and tile sets, relative to the path listed in the tmx * file). args[1]: The output directory for the tmx files, should be empty before running. WARNING: Use caution if * you have a "../" in the path of your tile sets! The output for these tile sets will be relative to the output * directory. For example, if your output directory is "C:\mydir\output" and you have a tileset with the path * "../tileset.png", the tileset will be output to "C:\mydir\" and the maps will be in "C:\mydir\output". */ public static void main(String[] args) { File tmxFile, inputDir, outputDir; Settings settings = new Settings(); // Note: the settings below are now default... settings.padding = 2;/*from www . j a v a 2 s . c o m*/ settings.duplicatePadding = true; // Create a new JoglApplication so that Gdx stuff works properly new JoglApplication(new ApplicationListener() { @Override public void create() { } @Override public void dispose() { } @Override public void pause() { } @Override public void render() { } @Override public void resize(int width, int height) { } @Override public void resume() { } }, "", 0, 0, false); TiledMapPacker packer = new TiledMapPacker(); if (args.length != 2) { System.out.println("Usage: INPUTDIR OUTPUTDIR"); System.exit(0); } inputDir = new File(args[0]); outputDir = new File(args[1]); if (!inputDir.exists()) { throw new RuntimeException("Input directory does not exist"); } try { packer.processMap(inputDir, outputDir, settings); } catch (IOException e) { throw new RuntimeException("Error processing map: " + e.getMessage()); } System.exit(0); }
From source file:com.venura.jogl.sql.JoglDBWrapper.java
License:Apache License
public JoglDBWrapper(ApplicationListener applicationListener, String title, int height, int width, boolean is2GLAvailable, String dbType) { Database.databaseHelper = new JoglDatabase(dbType); new JoglApplication(applicationListener, title, height, width, is2GLAvailable); }
From source file:monopoly.HelloWorldDesktop.java
License:Apache License
public static void main(String[] argv) { new JoglApplication(new Monopoly(), "Monopoly", 1280, 720, false); }