mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-04 22:17:59 +00:00
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:
parent
d03916ebec
commit
84110e9c13
25 changed files with 945 additions and 885 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue