surface handles

This commit is contained in:
Greg Wells
2025-06-03 14:14:49 -04:00
parent d39f598d3c
commit fbc30509c4
21 changed files with 83 additions and 65 deletions

View File

@@ -14,7 +14,7 @@
#error "Must define GLFW_EXPOSE_NATIVE_COCOA on macos"
#endif
static gnReturnCode gnCreateGLFWWindowSurface(struct gnWindowSurface_t* windowSurface, struct gnInstance_t* instance, GLFWwindow* window) {
static gnReturnCode gnCreateGLFWWindowSurface(gnWindowSurfaceHandle* windowSurface, struct gnInstance_t* instance, GLFWwindow* window) {
gnMacOSWindowSurfaceInfo surfaceCreateInfo = {
.layer = gnCreateCAMetalLayer(glfwGetCocoaWindow(window))
};