Draft (doesn't work now): MGL renderer

This is currently only for debugging purpose
This commit is contained in:
khanhduytran0 committed 2023-03-23 06:51:32 +07:00
1 parent 285e7bafba
commit ed57e98a9b
8 files changed
+177 -5

No files matched your search

@@ -17,7 +17,7 @@ import org.lwjgl.*;
import org.lwjgl.system.*;
import org.lwjgl.system.macosx.*;
import static org.lwjgl.opengl.GL20.*;
import static org.lwjgl.opengl.GL46.*;
import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
@@ -804,6 +804,11 @@ public class GLFW
return invokeP(__functionAddress);
}
public static void nglfwGetFramebufferSize(@NativeType("GLFWwindow *") long window, @Nullable @NativeType("int *") long width, @Nullable @NativeType("int *") long height) {
memPutInt(width, internalGetWindow(window).width);
memPutInt(height, internalGetWindow(window).height);
}
public static void glfwGetFramebufferSize(@NativeType("GLFWwindow *") long window, @Nullable @NativeType("int *") IntBuffer width, @Nullable @NativeType("int *") IntBuffer height) {
if (CHECKS) {
checkSafe(width, 1);