public static SWTPlatform register (Config config) { SWTPlatform instance = new SWTPlatform(config); PlayN.setPlatform(instance); return instance; }
public static SWTPlatform register (Config config) { SWTPlatform instance = new SWTPlatform(config); PlayN.setPlatform(instance); return instance; }
/** * Registers the Java platform with the specified configuration. */ public static JavaPlatform register(Config config) { // guard against multiple-registration (only in headless mode because this can happen when // running tests in Maven; in non-headless mode, we want to fail rather than silently ignore // erroneous repeated registration) if (config.headless && testInstance != null) { return testInstance; } JavaPlatform instance = new JavaPlatform(config); if (config.headless) { testInstance = instance; } PlayN.setPlatform(instance); return instance; }
/** * Registers the Java platform with the specified configuration. */ public static JavaPlatform register(Config config) { // guard against multiple-registration (only in headless mode because this can happen when // running tests in Maven; in non-headless mode, we want to fail rather than silently ignore // erroneous repeated registration) if (config.headless && testInstance != null) { return testInstance; } JavaPlatform instance = new JavaPlatform(config); if (config.headless) { testInstance = instance; } PlayN.setPlatform(instance); return instance; }
/** * Prepares the HTML platform for operation. * * @param config platform-specific settings. */ public static HtmlPlatform register(Config config) { HtmlPlatform platform = new HtmlPlatform(config); PlayN.setPlatform(platform); platform.init(); return platform; }
this.gameView = new GameViewGL(appctx, platform, gl20); this.keyHandler = new KeyEventHandler(platform); PlayN.setPlatform(platform);
this.gameView = new GameViewGL(appctx, platform, gl20); this.keyHandler = new KeyEventHandler(platform); PlayN.setPlatform(platform);
setPreferredFramesPerSecond(config.targetFPS); addStrongRef(platform); PlayN.setPlatform(platform);