mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 17:32:02 +01:00
internal/glfw/glfw: move cocoa_* and nsgl_* files
This commit is contained in:
parent
647d2aca14
commit
31bad92c23
@ -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"
|
@ -74,9 +74,9 @@ typedef void* id;
|
||||
#endif
|
||||
|
||||
#include "posix_thread.h"
|
||||
#include "nsgl_context.h"
|
||||
#include "nsgl_context_darwin.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_dlclose(handle) dlclose(handle)
|
@ -113,7 +113,7 @@ typedef void (APIENTRY * PFNGLGETINTEGERVPROC)(GLenum,GLint*);
|
||||
typedef const GLubyte* (APIENTRY * PFNGLGETSTRINGIPROC)(GLenum,GLuint);
|
||||
|
||||
#if defined(_GLFW_COCOA)
|
||||
#include "./glfw/src/cocoa_platform.h"
|
||||
#include "cocoa_platform_darwin.h"
|
||||
#elif defined(_GLFW_X11)
|
||||
#include "./glfw/src/x11_platform.h"
|
||||
#elif defined(_GLFW_WAYLAND)
|
||||
|
Loading…
Reference in New Issue
Block a user