Creating of display does never work. The code is very simple so I dont think that I make misstake + I was following the tutorial.
public class BasicOpengl
{
public static final int FRAMERATE = 60;
public static final String GAME_TITLE = "Game";
public static boolean finished;
public static float angle;
public static void main(String args[])
{
boolean fullscreen = (args.length == 1 && args[0].equals("-fullscreen"));
try {
init(fullscreen);
} catch (Exception e) {
e.printStackTrace(System.err);
Sys.alert(GAME_TITLE, "An error occured and the game will exit.");
} finally {
}
System.exit(0);
}
private static void init(boolean fullscreen) throws Exception
{
Display.setTitle(GAME_TITLE);
Display.setFullscreen(fullscreen);
Display.setVSyncEnabled(true);
Display.create();
while(true)
{
Display.update();
}
}
}
