Search in sources :

Example 11 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project gdx-skineditor by cobolfoo.

the class DesktopLauncher method main.

/**
	 * Entry point
	 */
public static void main(String[] arg) {
    // Set look and feel for Swing dialogs
    try {
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    } catch (Exception e) {
        e.printStackTrace();
    }
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = 1024;
    config.height = 768;
    config.resizable = true;
    config.title = "Skin Editor for libGDX (v0.3)";
    config.backgroundFPS = 1;
    config.vSyncEnabled = true;
    new LwjglApplication(new SkinEditorGame(), config);
}
Also used : LwjglApplication(com.badlogic.gdx.backends.lwjgl.LwjglApplication) SkinEditorGame(org.shadebob.skineditor.SkinEditorGame) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration)

Example 12 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration 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;
}
Also used : LwjglApplication(com.badlogic.gdx.backends.lwjgl.LwjglApplication) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration) GdxTest(com.badlogic.gdx.tests.utils.GdxTest)

Example 13 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration 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);
}
Also used : LwjglApplication(com.badlogic.gdx.backends.lwjgl.LwjglApplication) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration)

Example 14 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration 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);
}
Also used : RubeLoaderTest(com.gushikustudios.rube.RubeLoaderTest) LwjglApplication(com.badlogic.gdx.backends.lwjgl.LwjglApplication) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration)

Example 15 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project myFirstGame by Juicebox47.

the class DesktopLauncher method main.

public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = Configuration.WIDTH;
    config.height = Configuration.HEIGHT;
    config.title = Configuration.title;
    new LwjglApplication(new MyFirstGame(), config);
}
Also used : LwjglApplication(com.badlogic.gdx.backends.lwjgl.LwjglApplication) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration) MyFirstGame(com.mygdx.game.MyFirstGame)

Aggregations

LwjglApplication (com.badlogic.gdx.backends.lwjgl.LwjglApplication)19 LwjglApplicationConfiguration (com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration)19 GdxTest (com.badlogic.gdx.tests.utils.GdxTest)2 RubeLoaderTest (com.gushikustudios.rube.RubeLoaderTest)2 AmazingMazeGame (ca.hiphiparray.amazingmaze.AmazingMazeGame)1 ApplicationAdapter (com.badlogic.gdx.ApplicationAdapter)1 ApplicationListener (com.badlogic.gdx.ApplicationListener)1 DisplayMode (com.badlogic.gdx.Graphics.DisplayMode)1 FileHandle (com.badlogic.gdx.files.FileHandle)1 Color (com.badlogic.gdx.graphics.Color)1 PixmapPacker (com.badlogic.gdx.graphics.g2d.PixmapPacker)1 FreeTypeFontGenerator (com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator)1 BitmapFontWriter (com.badlogic.gdx.tools.bmfont.BitmapFontWriter)1 Settings (com.badlogic.gdx.tools.texturepacker.TexturePacker.Settings)1 GdxRuntimeException (com.badlogic.gdx.utils.GdxRuntimeException)1 BdxApp (com.comp.proj.BdxApp)1 MyFirstGame (com.mygdx.game.MyFirstGame)1 Main (io.github.voidzombie.tests.Main)1 File (java.io.File)1 IOException (java.io.IOException)1