Search in sources :

Example 36 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)

Example 37 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project libgdx-inGameConsole by StrongJoshua.

the class StageTest method main.

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

Example 38 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project var3dframe by Var3D.

the class VDesktopLauncher method getConfig.

public static LwjglApplicationConfiguration getConfig(int width, int height, float scale) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = (int) (width * scale);
    config.height = (int) (height * scale);
    config.samples = 4;
    return config;
}
Also used : LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration)

Example 39 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project Red-Team by CSC480-18S.

the class DesktopLauncher method main.

public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    // config.fullscreen = true;
    config.height = 1080;
    config.width = 1920;
    if (arg.length == 0)
        new LwjglApplication(new GameAdapter(), config);
    else if (arg[0].compareTo("-stats") == 0)
        new LwjglApplication(new StatsAdapter(), config);
}
Also used : LwjglApplication(com.badlogic.gdx.backends.lwjgl.LwjglApplication) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration) StatsAdapter(com.csc480.stats.StatsAdapter) GameAdapter(com.csc480.game.GameAdapter)

Example 40 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project Eidolons by IDemiurge.

the class TestVideoMaster method getConf.

protected static LwjglApplicationConfiguration getConf() {
    // Eidolons. getApplication().getGraphics().setFullscreenMode();
    LwjglApplicationConfiguration conf = new LwjglApplicationConfiguration();
    conf.title = "Eidolons: Battlecraft v" + Launcher.VERSION;
    // if (Gdx.graphics.isGL30Available())
    conf.useGL30 = true;
    OptionsMaster.init();
    // false;
    conf.fullscreen = OptionsMaster.getGraphicsOptions().getBooleanValue(GRAPHIC_OPTION.FULLSCREEN);
    conf.foregroundFPS = 60;
    conf.backgroundFPS = -1;
    conf.width = 1600;
    conf.height = 900;
    return conf;
}
Also used : LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration)

Aggregations

LwjglApplicationConfiguration (com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration)44 LwjglApplication (com.badlogic.gdx.backends.lwjgl.LwjglApplication)37 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