mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-08 07:54:05 +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
|
|
@ -39,7 +39,7 @@ import java.util.Map;
|
|||
|
||||
import org.lwjgl.BufferUtils;
|
||||
import org.lwjgl.Sys;
|
||||
import org.lwjgl.opengl.Window;
|
||||
import org.lwjgl.opengl.Display;
|
||||
import org.lwjgl.LWJGLException;
|
||||
|
||||
/**
|
||||
|
|
@ -281,8 +281,8 @@ public class Keyboard {
|
|||
* @throws LWJGLException if the keyboard could not be created for any reason
|
||||
*/
|
||||
public static void create() throws LWJGLException {
|
||||
if (!Window.isCreated())
|
||||
throw new IllegalStateException("Window must be created before you can create Keyboard");
|
||||
if (!Display.isCreated())
|
||||
throw new IllegalStateException("Display must be created before you can create Keyboard");
|
||||
if (!initialized)
|
||||
initialize();
|
||||
if (created)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue