
de.lessvoid.nifty.examples.slick2d.resolution.ResolutionDemoMain Maven / Gradle / Ivy
package de.lessvoid.nifty.examples.slick2d.resolution;
import de.lessvoid.nifty.examples.resolution.ResolutionScreen;
import de.lessvoid.nifty.examples.slick2d.SlickExampleLoader;
import org.lwjgl.opengl.DisplayMode;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import javax.annotation.Nonnull;
/**
* Demo class to execute the scroll demonstration.
*
* @author Martin Karing <[email protected]>
*/
public class ResolutionDemoMain {
/**
* Execute the demonstration.
*
* @param args call arguments - have no effect
*/
public static void main(final String[] args) {
final ResolutionControlSlick resControl = new ResolutionControlSlick();
SlickExampleLoader.createGame(new SlickExampleLoader(new ResolutionScreen(resControl)) {
@Override
protected void initGameAndGUI(@Nonnull final GameContainer container) {
resControl.setContainer((AppGameContainer) container);
super.initGameAndGUI(container);
}
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy