Linux part:

Merged Window and Display into org.lwjgl.Display
Added support for persistent context. This will enable LWJGL games
to avoid recreating the context resources like textures and display
lists when switching between windowed and fullscreen and/or context
dimensions.

Added PixelFormat class instead of individual parameters to Display.create
and Pbuffer constructor.
This commit is contained in:
Elias Naur 2004-07-02 19:02:00 +00:00
parent d03916ebec
commit 84110e9c13
25 changed files with 945 additions and 885 deletions

View file

@ -36,6 +36,7 @@ import java.io.IOException;
import org.lwjgl.input.Controller;
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.Display;
/**
* $Id$
@ -135,7 +136,7 @@ public final class Sys {
Runtime.getRuntime().addShutdownHook(new Thread() {
public void run() {
Display.resetDisplayMode();
Display.destroy();
if (Keyboard.isCreated())
Keyboard.destroy();
if (Mouse.isCreated())