mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
Added GLU and GLUT, and core GL commands
This commit is contained in:
parent
fec4678286
commit
1b741fdfc5
8 changed files with 439 additions and 9 deletions
|
|
@ -62,7 +62,9 @@ public class Keyboard {
|
|||
private static native void initIDs();
|
||||
|
||||
/**
|
||||
* "Create" the keyboard. The display must first have been created.
|
||||
* "Create" the keyboard. The display must first have been created. The
|
||||
* reason for this is so the keyboard has a window to "focus" in.
|
||||
*
|
||||
* @throw Exception if the keyboard could not be created for any reason
|
||||
*/
|
||||
public static void create() throws Exception {
|
||||
|
|
@ -118,6 +120,7 @@ public class Keyboard {
|
|||
*/
|
||||
public static void read() {
|
||||
assert created : "The keyboard has not been created.";
|
||||
assert readBuffer != null : "Keyboard buffering has not been enabled.";
|
||||
nRead(readBufferAddress);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue