Yup, currently I'm using 1.0beta2.
But I just found out lesson 17 and later doesn't work on Linux.
I receive "X Error - serial:19, error_code: BadValue(integer parameter our of rance for operation), request_code:1, minor_code:0"
I'm quite sure the problem is the DisplayMode. In lesson 17 I started including Fullscreenmode.
Up to lesson 16 I used this to create the Display:
Display.setDisplayMode(new DisplayMode(640, 480));
Display.setVSyncEnabled(true);
Display.setTitle(this.windowTitle);
Display.create();
Since lesson 17 I'm using this:
DisplayMode modes[] = Display.getAvailableDisplayModes(); // Get the available display modes
DisplayMode selection = new DisplayMode(0, 0);
for (int i = 0; i < modes.length; i++) {
if (modes[i].getWidth() == 640 && modes[i].getHeight() == 480 && (modes[i].getBitsPerPixel() == 24 || modes[i].getBitsPerPixel() == 32)) {
selection = modes[i];
break;
}
}
Display.setDisplayMode(selection); // Set the display mode
Display.setVSyncEnabled(true); // Enable VSync
Display.setTitle(this.windowTitle);
Display.create();
When I'm at home I'll try to change the line DisplayMode selection = new DisplayMode(0, 0); to DisplayMode selection = new DisplayMode(640, 480);, so there's a default window mode.
I think you cannot emumerate the resolutions in Linux. I had the same problem using Java/AWT. There's an example on the Sun / Java3D website, and it only returned the current resolution (1280x1024). In windows it returns everything supported by the graphics card.
Bug?
Regards,
xindon