internal/glfw/glfw: move cocoa_* and nsgl_* files

This commit is contained in:
Hajime Hoshi 2023-07-15 12:38:43 +09:00
parent 647d2aca14
commit 31bad92c23
9 changed files with 3 additions and 18 deletions

View File

@ -1,15 +0,0 @@
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2012 The glfw3-go Authors
// SPDX-FileCopyrightText: 2023 The Ebitengine Authors
package glfw
/*
#cgo CFLAGS: -x objective-c
#include "glfw/src/cocoa_init.m"
#include "glfw/src/cocoa_monitor.m"
#include "glfw/src/cocoa_window.m"
#include "glfw/src/cocoa_time.c"
#include "glfw/src/nsgl_context.m"
*/
import "C"

View File

@ -74,9 +74,9 @@ typedef void* id;
#endif #endif
#include "posix_thread.h" #include "posix_thread.h"
#include "nsgl_context.h" #include "nsgl_context_darwin.h"
#include "egl_context.h" #include "egl_context.h"
#include "osmesa_context.h" #include "./glfw/src/osmesa_context.h"
#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL) #define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL)
#define _glfw_dlclose(handle) dlclose(handle) #define _glfw_dlclose(handle) dlclose(handle)

View File

@ -113,7 +113,7 @@ typedef void (APIENTRY * PFNGLGETINTEGERVPROC)(GLenum,GLint*);
typedef const GLubyte* (APIENTRY * PFNGLGETSTRINGIPROC)(GLenum,GLuint); typedef const GLubyte* (APIENTRY * PFNGLGETSTRINGIPROC)(GLenum,GLuint);
#if defined(_GLFW_COCOA) #if defined(_GLFW_COCOA)
#include "./glfw/src/cocoa_platform.h" #include "cocoa_platform_darwin.h"
#elif defined(_GLFW_X11) #elif defined(_GLFW_X11)
#include "./glfw/src/x11_platform.h" #include "./glfw/src/x11_platform.h"
#elif defined(_GLFW_WAYLAND) #elif defined(_GLFW_WAYLAND)