Update Display.java
This commit is contained in:
parent
2dbf9a61fa
commit
d9a6c05240
1 changed files with 3 additions and 3 deletions
|
@ -89,8 +89,8 @@ public class Display {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean wasResized(){
|
public static boolean wasResized(){
|
||||||
ByteBuffer w = BufferUtils.createByteBuffer(4);
|
IntBuffer w = BufferUtils.createIntBuffer(1);
|
||||||
ByteBuffer h = BufferUtils.createByteBuffer(4);
|
IntBuffer h = BufferUtils.createIntBuffer(1);
|
||||||
glfwGetWindowSize(window, w, h);
|
glfwGetWindowSize(window, w, h);
|
||||||
int width = w.getInt(0);
|
int width = w.getInt(0);
|
||||||
int height = h.getInt(0);
|
int height = h.getInt(0);
|
||||||
|
@ -119,7 +119,7 @@ public class Display {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isCloseRequested(){
|
public static boolean isCloseRequested(){
|
||||||
return glfwWindowShouldClose(window) == GL_TRUE;
|
return glfwWindowShouldClose(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void createContext(){
|
public static void createContext(){
|
||||||
|
|
Reference in a new issue