Examples of JoglApplication


Examples of com.badlogic.gdx.backends.jogl.JoglApplication




        // Create a new JoglApplication so that Gdx stuff works properly
        new JoglApplication(new ApplicationListener() {

            @Override
            public void create() {
            }
View Full Code Here

Examples of com.badlogic.gdx.backends.jogl.JoglApplication

        settings.maxWidth = 2048;
        settings.maxHeight = 2048;


        // Create a new JoglApplication so that Gdx stuff works properly
        JoglApplication application = new JoglApplication(new ApplicationListener() {

            @Override
            public void create() {
            }

            @Override
            public void dispose() {
                m_generated = true;

            }

            @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 (!inputDir.exists()) {
            throw new RuntimeException("Input directory does not exist");
        }
        try {
            packer.processMap(inputDir, outputDir, settings);
        } catch (IOException ex) {
            Logger.getLogger(JPacker.class.getName()).log(Level.SEVERE, null, ex);
        }

        application.exit();
        m_newMap = true;

    }
View Full Code Here

Examples of com.badlogic.gdx.backends.jogl.JoglApplication

  /**
   * Main method ran on the desktop version
   * @param args
   */
  public static void main(String[] args) {
    new JoglApplication(new Skitg(), "Swift Kick in the Grass", 800, 480, false);

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.