Example usage for com.badlogic.gdx Application LOG_DEBUG

List of usage examples for com.badlogic.gdx Application LOG_DEBUG

Introduction

In this page you can find the example usage for com.badlogic.gdx Application LOG_DEBUG.

Prototype

int LOG_DEBUG

To view the source code for com.badlogic.gdx Application LOG_DEBUG.

Click Source Link

Usage

From source file:es.eucm.ead.editor.demobuilder.EditorDemoBuilder.java

License:Open Source License

/**
 * Builds the game, saves it to disk, and runs it.
 *//*  w  w  w .  j a va 2s.com*/
public void run() {
    if (!built) {
        build();
    }
    save();
    EngineDesktop engine = new EngineDesktop((int) gameWidth, (int) gameHeight) {
        @Override
        protected void dispose() {
            EditorDemoBuilder.this.clean();
            super.dispose();
        }
    };
    engine.run(rootFolder.file().getAbsolutePath(), false, false);
    Gdx.app.setLogLevel(Application.LOG_DEBUG);
}

From source file:es.eucm.ead.editor.EditorDesktop.java

License:Open Source License

@Override
public void create() {
    // Setting debug ASAP
    if (debug) {//from  w ww . j  a v  a 2  s .  c o  m
        Gdx.app.setLogLevel(Application.LOG_DEBUG);
    }
    super.create();
}

From source file:es.eucm.ead.editor.MokapDesktop.java

License:Open Source License

public static void main(String[] args) {

    final DesktopDebugConfiguration config = DesktopDebugConfiguration.build();
    AbstractPlatform mokapDesktopPlatform = new MokapDesktopPlatform();
    mokapDesktopPlatform.setApplicationArguments(args);
    MokapApplicationListener mokapApplicationListener = new MokapApplicationListener(mokapDesktopPlatform) {
        @Override//w ww . ja v a2 s  .c  om
        protected Controller buildController() {
            Controller controller = super.buildController();
            if (config.editorLanguage != null) {
                controller.getPreferences().putString(Preferences.EDITOR_LANGUAGE, config.editorLanguage);
                controller.setLanguage(config.editorLanguage);
            }
            return controller;
        }
    };
    new LwjglApplication(mokapApplicationListener, config);
    Gdx.app.setLogLevel(Application.LOG_DEBUG);
}

From source file:es.eucm.ead.editor.nogui.NoGUIEditorDesktop.java

License:Open Source License

@Override
public void create() {
    Gdx.app.setLogLevel(Application.LOG_DEBUG);
    super.create();
    Gdx.gl.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
    tooltipManager = new TooltipManager(stage.getRoot(),
            controller.getApplicationAssets().getSkin().get("tooltip", LabelStyle.class));

}

From source file:es.eucm.ead.engine.demobuilder.ExecutableDemoBuilder.java

License:Open Source License

/**
 * Builds the game, saves it to disk, and runs it.
 *///  w w w .j av  a  2  s .  c o m
public void run() {
    final EngineDesktop engine = new EngineDesktop((int) gameWidth, (int) gameHeight) {
        @Override
        protected void dispose() {
            ExecutableDemoBuilder.this.clean();
            super.dispose();
        }
    };

    prepare();
    if (!built) {
        build();
    }
    save();
    engine.setSize((int) gameWidth, (int) gameHeight);
    engine.run(rootFolder.file().getAbsolutePath(), false);
    if (debug()) {
        Gdx.app.postRunnable(new Runnable() {
            @Override
            public void run() {
                Stage stage = engine.getApplicationListener().getStage();
                stage.setDebugAll(true);
            }
        });
    }
    Gdx.app.setLogLevel(Application.LOG_DEBUG);
}

From source file:es.eucm.ead.engine.demos.ConversationDemo.java

License:Open Source License

public static void main(String args[]) {
    EngineDesktop engine = new EngineDesktop(1066, 600);
    engine.run("conversationdemo", true);
    Gdx.app.setLogLevel(Application.LOG_DEBUG);
}

From source file:es.eucm.ead.engine.demos.EngineTechDemo.java

License:Open Source License

public static void main(String args[]) {
    EngineDesktop engine = new EngineDesktop();
    engine.run("techdemo", true);
    Gdx.app.setLogLevel(Application.LOG_DEBUG);
}

From source file:es.eucm.ead.engine.demos.Parity2Demo.java

License:Open Source License

public static void main(String args[]) {
    EngineDesktop engine = new EngineDesktop(1920, 1080);
    engine.run("parity2.0", true);
    Gdx.app.setLogLevel(Application.LOG_DEBUG);
}

From source file:es.eucm.ead.engine.demos.TransitionsDemo.java

License:Open Source License

public static void main(String args[]) {
    EngineDesktop engine = new EngineDesktop(640, 360);
    engine.run("transitionsdemo", true);
    Gdx.app.setLogLevel(Application.LOG_DEBUG);
}

From source file:es.eucm.ead.engine.demos.VideoDemo.java

License:Open Source License

public static void main(String args[]) {
    EngineDesktop engine = new EngineDesktop(1066, 600);
    engine.run("videodemo", true);
    Gdx.app.setLogLevel(Application.LOG_DEBUG);
}