Search in sources :

Example 1 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project AmazingMaze by TheVirtualMachine.

the class DesktopLauncher method main.

public static void main(String[] arg) {
    System.setProperty("org.lwjgl.opengl.Display.allowSoftwareOpenGL", "true");
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    DisplayMode displayMode = LwjglApplicationConfiguration.getDesktopDisplayMode();
    config.setFromDisplayMode(displayMode);
    config.title = "Amazing Maze";
    config.vSyncEnabled = true;
    config.foregroundFPS = 0;
    config.addIcon("icons/128.png", FileType.Internal);
    config.addIcon("icons/32.png", FileType.Internal);
    config.addIcon("icons/16.png", FileType.Internal);
    new LwjglApplication(new AmazingMazeGame(), config);
}
Also used : DisplayMode(com.badlogic.gdx.Graphics.DisplayMode) AmazingMazeGame(ca.hiphiparray.amazingmaze.AmazingMazeGame) LwjglApplication(com.badlogic.gdx.backends.lwjgl.LwjglApplication) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration)

Example 2 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project Entitas-Java by Rubentxu.

the class Examples method main.

public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    preferencesManager = new PreferencesManagerGDX();
    config.title = preferencesManager.APP_NAME;
    config.width = preferencesManager.VIRTUAL_DEVICE_WIDTH;
    config.height = preferencesManager.VIRTUAL_DEVICE_HEIGHT;
    new LwjglApplication(new Examples(), config);
}
Also used : LwjglApplication(com.badlogic.gdx.backends.lwjgl.LwjglApplication) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration)

Example 3 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project Entitas-Java by Rubentxu.

the class MatchOne method main.

public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.title = "BASIC";
    config.width = SCREEN_WIDTH;
    config.height = SCREEN_HEIGHT;
    new LwjglApplication(new MatchOne(), config);
}
Also used : LwjglApplication(com.badlogic.gdx.backends.lwjgl.LwjglApplication) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration)

Example 4 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project Entitas-Java by Rubentxu.

the class Pong method main.

public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.title = "BASIC";
    config.width = SCREEN_WIDTH;
    config.height = SCREEN_HEIGHT;
    new LwjglApplication(new Pong(), config);
}
Also used : LwjglApplication(com.badlogic.gdx.backends.lwjgl.LwjglApplication) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration)

Example 5 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project Alkahest-Coffee by AlkahestDev.

the class ServerDesktop method main.

public static void main(String[] args) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    new LwjglApplication(new CoffeeServer(), config);
}
Also used : LwjglApplication(com.badlogic.gdx.backends.lwjgl.LwjglApplication) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration) CoffeeServer(me.dumfing.server.CoffeeServer)

Aggregations

LwjglApplicationConfiguration (com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration)45 LwjglApplication (com.badlogic.gdx.backends.lwjgl.LwjglApplication)38 Color (com.badlogic.gdx.graphics.Color)2 GdxTest (com.badlogic.gdx.tests.utils.GdxTest)2 RubeLoaderTest (com.gushikustudios.rube.RubeLoaderTest)2 IOException (java.io.IOException)2 AmazingMazeGame (ca.hiphiparray.amazingmaze.AmazingMazeGame)1 GameMain (cn.s3bit.th902.GameMain)1 PlatformRelatedInterfaces (cn.s3bit.th902.PlatformRelatedInterfaces)1 IFont (cn.s3bit.th902.utils.IFont)1 ApplicationAdapter (com.badlogic.gdx.ApplicationAdapter)1 ApplicationListener (com.badlogic.gdx.ApplicationListener)1 Game (com.badlogic.gdx.Game)1 DisplayMode (com.badlogic.gdx.Graphics.DisplayMode)1 LwjglPreferences (com.badlogic.gdx.backends.lwjgl.LwjglPreferences)1 FileHandle (com.badlogic.gdx.files.FileHandle)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