Search in sources :

Example 41 with LwjglApplicationConfiguration

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

the class DemoLauncher method getConf.

public LwjglApplicationConfiguration getConf() {
    // Eidolons. getApplication().getGraphics().setFullscreenMode();
    LwjglApplicationConfiguration conf = new LwjglApplicationConfiguration();
    conf.title = getTitle();
    // if (Gdx.graphics.isGL30Available())
    conf.useGL30 = true;
    conf.resizable = false;
    OptionsMaster.init();
    conf.fullscreen = false;
    fullscreen = OptionsMaster.getGraphicsOptions().getBooleanValue(GRAPHIC_OPTION.FULLSCREEN);
    conf.foregroundFPS = FRAMERATE;
    conf.backgroundFPS = isStopOnInactive() ? -1 : FRAMERATE;
    conf.vSyncEnabled = OptionsMaster.getGraphicsOptions().getBooleanValue(GRAPHIC_OPTION.VSYNC);
    initResolution(conf);
    initIcon(conf);
    return conf;
}
Also used : LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration)

Example 42 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project GoGoLand by MarkusRa1.

the class Main method main.

public static void main(String[] arg) {
    reader = new ReadFromGo();
    // new Thread(reader).start();
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.title = "GoGoLand";
    config.width = 1280;
    config.height = 800;
    new LwjglApplication(new Graphics(), config);
}
Also used : Graphics(uib.bamboozle.ui.Graphics) LwjglApplication(com.badlogic.gdx.backends.lwjgl.LwjglApplication) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration) ReadFromGo(uib.bamboozle.communication.ReadFromGo)

Example 43 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project TH902 by cn-s3bit.

the class Launcher method main.

/**
 * Entry point.
 */
public static void main(String[] args) {
    Game game = new GameMain(new PlatformRelatedInterfaces() {

        @Override
        public IFont getFont(String fontName, boolean isBold, boolean isItalic, int size) {
            FreetypeFont font = new FreetypeFont();
            font.initialize(fontName, isBold, isItalic, size);
            return font;
        }

        @Override
        public void setFPS(int fps) {
            config.foregroundFPS = fps;
        }

        @Override
        public String[] getCommandLineParams() {
            return args;
        }
    });
    config = new LwjglApplicationConfiguration();
    config.fullscreen = false;
    config.width = 960;
    config.height = 720;
    config.resizable = false;
    config.title = GameMain.GAME_TITLE;
    config.foregroundFPS = 60;
    config.addIcon("resources/icon32.png", FileType.Internal);
    lwjglApplication = new LwjglApplication(game, config);
}
Also used : PlatformRelatedInterfaces(cn.s3bit.th902.PlatformRelatedInterfaces) Game(com.badlogic.gdx.Game) LwjglApplication(com.badlogic.gdx.backends.lwjgl.LwjglApplication) GameMain(cn.s3bit.th902.GameMain) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration) IFont(cn.s3bit.th902.utils.IFont)

Example 44 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project high-flyer by sangngh.

the class DesktopLauncher method main.

public static void main(String[] arg) {
    GameSettings settings = new GameSettings(AspectRatio.STANDARD.calculateWidth(600), 600);
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.title = "High Flyer - Soars to the sky!";
    config.useGL30 = false;
    config.height = settings.getWindowHeight();
    config.width = settings.getWindowWidth();
    new LwjglApplication(new GameEngine(settings, new GameState(), ScreenManager.INSTANCE), config);
}
Also used : LwjglApplication(com.badlogic.gdx.backends.lwjgl.LwjglApplication) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration) GameEngine(com.relic.highflyer.GameEngine) GameState(com.relic.highflyer.GameState) GameSettings(com.relic.highflyer.GameSettings)

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