mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 07:24:20 +00:00
fix: static method usage
This commit is contained in:
parent
4283f40244
commit
80cf5b1dcc
13 changed files with 53 additions and 47 deletions
|
|
@ -115,11 +115,11 @@ public class FullScreenWindowedTest {
|
|||
*/
|
||||
private void mainLoop() {
|
||||
while (!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)
|
||||
&& !gl.isCloseRequested()) {
|
||||
&& !Window.isCloseRequested()) {
|
||||
// allow subsystem to get a chance to run too
|
||||
gl.tick();
|
||||
Window.tick();
|
||||
|
||||
if (!gl.isMinimized()) {
|
||||
if (!Window.isMinimized()) {
|
||||
// check keyboard input
|
||||
processKeyboard();
|
||||
|
||||
|
|
@ -128,13 +128,13 @@ public class FullScreenWindowedTest {
|
|||
render();
|
||||
|
||||
// paint window
|
||||
gl.paint();
|
||||
Window.paint();
|
||||
} else {
|
||||
|
||||
// no need to render/paint if nothing has changed (ie. window dragged over)
|
||||
if (gl.isDirty()) {
|
||||
if (Window.isDirty()) {
|
||||
render();
|
||||
gl.paint();
|
||||
Window.paint();
|
||||
}
|
||||
|
||||
// don't waste cpu time, sleep more
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue