mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-08 16:04:39 +00:00
Separated BaseGL from CoreGL and GL and renamed to GLWindow
This commit is contained in:
parent
794c802253
commit
d8f64cbb15
21 changed files with 518 additions and 575 deletions
|
|
@ -8,6 +8,7 @@ package org.lwjgl.test;
|
|||
|
||||
import org.lwjgl.*;
|
||||
import org.lwjgl.opengl.GL;
|
||||
import org.lwjgl.opengl.GLWindow;
|
||||
|
||||
/**
|
||||
* @author Brian
|
||||
|
|
@ -15,23 +16,18 @@ import org.lwjgl.opengl.GL;
|
|||
public class WindowCreationTest {
|
||||
|
||||
public static void main(String[] args) {
|
||||
GL gl = null;
|
||||
GLWindow gl = null;
|
||||
|
||||
DisplayMode[] modes = Display.getAvailableDisplayModes();
|
||||
System.out.println("Found " + modes.length + " display modes");
|
||||
|
||||
try {
|
||||
gl = new GL("WindowCreationTest", 50, 50, 320, 240, 16, 0, 0, 0);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
try {
|
||||
gl = new GLWindow("WindowCreationTest", 50, 50, 320, 240, 16, 0, 0, 0);
|
||||
gl.create();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
System.out.println("Display created");
|
||||
|
||||
while(!gl.isCloseRequested()) {
|
||||
|
|
@ -45,4 +41,4 @@ public class WindowCreationTest {
|
|||
|
||||
gl.destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue