use of playn.java.SWTPlatform in project playn by threerings.
the class TestsGameJava method main.
public static void main(String[] args) {
SWTPlatform.Config config = new SWTPlatform.Config();
if (args.length > 0) {
config.scaleFactor = Float.parseFloat(args[0]);
}
config.width = 800;
config.height = 600;
SWTPlatform platform = SWTPlatform.register(config);
platform.setTitle("Tests");
// plug in a lwjgl implementation for fullscreen test
setHost(new LWJGLFullscreen());
run(new TestsGame());
}
Aggregations