Search in sources :

Example 21 with LwjglApplicationConfiguration

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

the class PreLauncher method getConf.

public static LwjglApplicationConfiguration getConf() {
    LwjglApplicationConfiguration conf = new LwjglApplicationConfiguration();
    LwjglApplicationConfiguration.disableAudio = true;
    conf.title = "Eidolons: Battlecraft v" + Launcher.VERSION;
    conf.forceExit = false;
    conf.resizable = false;
    conf.width = 600;
    conf.height = 800;
    System.setProperty("org.lwjgl.opengl.Window.undecorated", "true");
    conf.useGL30 = true;
    conf.initialBackgroundColor = (new Color(0, 0, 0, 0.1f));
    conf.resizable = false;
    conf.resizable = false;
    try {
        conf.addIcon(PathFinder.getImagePath() + "mini/new/logo32.png", FileType.Absolute);
        conf.addIcon(PathFinder.getImagePath() + "mini/new/logo64.png", FileType.Absolute);
    } catch (Exception e) {
        main.system.ExceptionMaster.printStackTrace(e);
    }
    return conf;
}
Also used : Color(com.badlogic.gdx.graphics.Color) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration) IOException(java.io.IOException)

Example 22 with LwjglApplicationConfiguration

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

the class GdxLauncher method getConf.

private static LwjglApplicationConfiguration getConf() {
    LwjglApplicationConfiguration conf = new LwjglApplicationConfiguration();
    conf.title = "Eidolons: Battlecraft v" + Launcher.VERSION;
    conf.useGL30 = true;
    conf.width = 1600;
    conf.height = 900;
    conf.fullscreen = false;
    // conf.fullscreen = true;
    return conf;
}
Also used : LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration)

Example 23 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project HackerHop by nicovank.

the class GameDesktop method main.

public static void main(String[] args) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.height = 720;
    config.width = 540;
    config.resizable = false;
    new LwjglApplication(new MainController(), config);
}
Also used : LwjglApplication(com.badlogic.gdx.backends.lwjgl.LwjglApplication) MainController(com.hackerhop.game.core.MainController) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration)

Example 24 with LwjglApplicationConfiguration

use of com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration in project semiprime by entangledloops.

the class DesktopLauncher method main.

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

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

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