daily update on 20241228 by nitload youmu, better dot in checking

This commit is contained in:
Nitload
2024-12-29 04:30:40 +08:00
parent 592ad55d57
commit 63c3cd17e2
45 changed files with 7193 additions and 4884 deletions
+73 -75
View File
@@ -33,7 +33,6 @@
extern "C" {
#endif
/*************************************************************************
* Doxygen documentation
*************************************************************************/
@@ -86,78 +85,76 @@ extern "C" {
* @endcode
*/
/*************************************************************************
* System headers and types
*************************************************************************/
#if !defined(GLFW_NATIVE_INCLUDE_NONE)
#if defined(GLFW_EXPOSE_NATIVE_WIN32) || defined(GLFW_EXPOSE_NATIVE_WGL)
/* This is a workaround for the fact that glfw3.h needs to export APIENTRY (for
#if defined(GLFW_EXPOSE_NATIVE_WIN32) || defined(GLFW_EXPOSE_NATIVE_WGL)
/* This is a workaround for the fact that glfw3.h needs to export APIENTRY (for
* example to allow applications to correctly declare a GL_KHR_debug callback)
* but windows.h assumes no one will define APIENTRY before it does
*/
#if defined(GLFW_APIENTRY_DEFINED)
#undef APIENTRY
#undef GLFW_APIENTRY_DEFINED
#endif
#include <windows.h>
#endif
#if defined(GLFW_APIENTRY_DEFINED)
#undef APIENTRY
#undef GLFW_APIENTRY_DEFINED
#endif
#include <windows.h>
#endif
#if defined(GLFW_EXPOSE_NATIVE_COCOA) || defined(GLFW_EXPOSE_NATIVE_NSGL)
#if defined(__OBJC__)
#import <Cocoa/Cocoa.h>
#else
#include <ApplicationServices/ApplicationServices.h>
#include <objc/objc.h>
#endif
#endif
#if defined(GLFW_EXPOSE_NATIVE_COCOA) || defined(GLFW_EXPOSE_NATIVE_NSGL)
#if defined(__OBJC__)
#import <Cocoa/Cocoa.h>
#else
#include <ApplicationServices/ApplicationServices.h>
#include <objc/objc.h>
#endif
#endif
#if defined(GLFW_EXPOSE_NATIVE_X11) || defined(GLFW_EXPOSE_NATIVE_GLX)
#include <X11/Xlib.h>
#include <X11/extensions/Xrandr.h>
#endif
#if defined(GLFW_EXPOSE_NATIVE_X11) || defined(GLFW_EXPOSE_NATIVE_GLX)
#include <X11/Xlib.h>
#include <X11/extensions/Xrandr.h>
#endif
#if defined(GLFW_EXPOSE_NATIVE_WAYLAND)
#include <wayland-client.h>
#endif
#if defined(GLFW_EXPOSE_NATIVE_WAYLAND)
#include <wayland-client.h>
#endif
#if defined(GLFW_EXPOSE_NATIVE_WGL)
/* WGL is declared by windows.h */
#endif
#if defined(GLFW_EXPOSE_NATIVE_NSGL)
/* NSGL is declared by Cocoa.h */
#endif
#if defined(GLFW_EXPOSE_NATIVE_GLX)
/* This is a workaround for the fact that glfw3.h defines GLAPIENTRY because by
#if defined(GLFW_EXPOSE_NATIVE_WGL)
/* WGL is declared by windows.h */
#endif
#if defined(GLFW_EXPOSE_NATIVE_NSGL)
/* NSGL is declared by Cocoa.h */
#endif
#if defined(GLFW_EXPOSE_NATIVE_GLX)
/* This is a workaround for the fact that glfw3.h defines GLAPIENTRY because by
* default it also acts as an OpenGL header
* However, glx.h will include gl.h, which will define it unconditionally
*/
#if defined(GLFW_GLAPIENTRY_DEFINED)
#undef GLAPIENTRY
#undef GLFW_GLAPIENTRY_DEFINED
#endif
#include <GL/glx.h>
#endif
#if defined(GLFW_EXPOSE_NATIVE_EGL)
#include <EGL/egl.h>
#endif
#if defined(GLFW_EXPOSE_NATIVE_OSMESA)
/* This is a workaround for the fact that glfw3.h defines GLAPIENTRY because by
#if defined(GLFW_GLAPIENTRY_DEFINED)
#undef GLAPIENTRY
#undef GLFW_GLAPIENTRY_DEFINED
#endif
#include <GL/glx.h>
#endif
#if defined(GLFW_EXPOSE_NATIVE_EGL)
#include <EGL/egl.h>
#endif
#if defined(GLFW_EXPOSE_NATIVE_OSMESA)
/* This is a workaround for the fact that glfw3.h defines GLAPIENTRY because by
* default it also acts as an OpenGL header
* However, osmesa.h will include gl.h, which will define it unconditionally
*/
#if defined(GLFW_GLAPIENTRY_DEFINED)
#undef GLAPIENTRY
#undef GLFW_GLAPIENTRY_DEFINED
#endif
#include <GL/osmesa.h>
#endif
#if defined(GLFW_GLAPIENTRY_DEFINED)
#undef GLAPIENTRY
#undef GLFW_GLAPIENTRY_DEFINED
#endif
#include <GL/osmesa.h>
#endif
#endif /*GLFW_NATIVE_INCLUDE_NONE*/
/*************************************************************************
* Functions
*************************************************************************/
@@ -178,7 +175,7 @@ extern "C" {
*
* @ingroup native
*/
SSCAPI const char* glfwGetWin32Adapter(GLFWmonitor* monitor);
SSCAPI const char *glfwGetWin32Adapter(GLFWmonitor *monitor);
/*! @brief Returns the display device name of the specified monitor.
*
@@ -195,7 +192,7 @@ SSCAPI const char* glfwGetWin32Adapter(GLFWmonitor* monitor);
*
* @ingroup native
*/
SSCAPI const char* glfwGetWin32Monitor(GLFWmonitor* monitor);
SSCAPI const char *glfwGetWin32Monitor(GLFWmonitor *monitor);
/*! @brief Returns the `HWND` of the specified window.
*
@@ -219,7 +216,7 @@ SSCAPI const char* glfwGetWin32Monitor(GLFWmonitor* monitor);
*
* @ingroup native
*/
SSCAPI HWND glfwGetWin32Window(GLFWwindow* window);
SSCAPI HWND glfwGetWin32Window(GLFWwindow *window);
#endif
#if defined(GLFW_EXPOSE_NATIVE_WGL)
@@ -246,7 +243,7 @@ SSCAPI HWND glfwGetWin32Window(GLFWwindow* window);
*
* @ingroup native
*/
SSCAPI HGLRC glfwGetWGLContext(GLFWwindow* window);
SSCAPI HGLRC glfwGetWGLContext(GLFWwindow *window);
#endif
#if defined(GLFW_EXPOSE_NATIVE_COCOA)
@@ -264,7 +261,7 @@ SSCAPI HGLRC glfwGetWGLContext(GLFWwindow* window);
*
* @ingroup native
*/
SSCAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* monitor);
SSCAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor *monitor);
/*! @brief Returns the `NSWindow` of the specified window.
*
@@ -280,7 +277,7 @@ SSCAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* monitor);
*
* @ingroup native
*/
SSCAPI id glfwGetCocoaWindow(GLFWwindow* window);
SSCAPI id glfwGetCocoaWindow(GLFWwindow *window);
#endif
#if defined(GLFW_EXPOSE_NATIVE_NSGL)
@@ -299,7 +296,7 @@ SSCAPI id glfwGetCocoaWindow(GLFWwindow* window);
*
* @ingroup native
*/
SSCAPI id glfwGetNSGLContext(GLFWwindow* window);
SSCAPI id glfwGetNSGLContext(GLFWwindow *window);
#endif
#if defined(GLFW_EXPOSE_NATIVE_X11)
@@ -317,7 +314,7 @@ SSCAPI id glfwGetNSGLContext(GLFWwindow* window);
*
* @ingroup native
*/
SSCAPI Display* glfwGetX11Display(void);
SSCAPI Display *glfwGetX11Display(void);
/*! @brief Returns the `RRCrtc` of the specified monitor.
*
@@ -333,7 +330,7 @@ SSCAPI Display* glfwGetX11Display(void);
*
* @ingroup native
*/
SSCAPI RRCrtc glfwGetX11Adapter(GLFWmonitor* monitor);
SSCAPI RRCrtc glfwGetX11Adapter(GLFWmonitor *monitor);
/*! @brief Returns the `RROutput` of the specified monitor.
*
@@ -349,7 +346,7 @@ SSCAPI RRCrtc glfwGetX11Adapter(GLFWmonitor* monitor);
*
* @ingroup native
*/
SSCAPI RROutput glfwGetX11Monitor(GLFWmonitor* monitor);
SSCAPI RROutput glfwGetX11Monitor(GLFWmonitor *monitor);
/*! @brief Returns the `Window` of the specified window.
*
@@ -365,7 +362,7 @@ SSCAPI RROutput glfwGetX11Monitor(GLFWmonitor* monitor);
*
* @ingroup native
*/
SSCAPI Window glfwGetX11Window(GLFWwindow* window);
SSCAPI Window glfwGetX11Window(GLFWwindow *window);
/*! @brief Sets the current primary selection to the specified string.
*
@@ -387,7 +384,7 @@ SSCAPI Window glfwGetX11Window(GLFWwindow* window);
*
* @ingroup native
*/
SSCAPI void glfwSetX11SelectionString(const char* string);
SSCAPI void glfwSetX11SelectionString(const char *string);
/*! @brief Returns the contents of the current primary selection as a string.
*
@@ -415,7 +412,7 @@ SSCAPI void glfwSetX11SelectionString(const char* string);
*
* @ingroup native
*/
SSCAPI const char* glfwGetX11SelectionString(void);
SSCAPI const char *glfwGetX11SelectionString(void);
#endif
#if defined(GLFW_EXPOSE_NATIVE_GLX)
@@ -434,7 +431,7 @@ SSCAPI const char* glfwGetX11SelectionString(void);
*
* @ingroup native
*/
SSCAPI GLXContext glfwGetGLXContext(GLFWwindow* window);
SSCAPI GLXContext glfwGetGLXContext(GLFWwindow *window);
/*! @brief Returns the `GLXWindow` of the specified window.
*
@@ -451,7 +448,7 @@ SSCAPI GLXContext glfwGetGLXContext(GLFWwindow* window);
*
* @ingroup native
*/
SSCAPI GLXWindow glfwGetGLXWindow(GLFWwindow* window);
SSCAPI GLXWindow glfwGetGLXWindow(GLFWwindow *window);
#endif
#if defined(GLFW_EXPOSE_NATIVE_WAYLAND)
@@ -469,7 +466,7 @@ SSCAPI GLXWindow glfwGetGLXWindow(GLFWwindow* window);
*
* @ingroup native
*/
SSCAPI struct wl_display* glfwGetWaylandDisplay(void);
SSCAPI struct wl_display *glfwGetWaylandDisplay(void);
/*! @brief Returns the `struct wl_output*` of the specified monitor.
*
@@ -485,7 +482,7 @@ SSCAPI struct wl_display* glfwGetWaylandDisplay(void);
*
* @ingroup native
*/
SSCAPI struct wl_output* glfwGetWaylandMonitor(GLFWmonitor* monitor);
SSCAPI struct wl_output *glfwGetWaylandMonitor(GLFWmonitor *monitor);
/*! @brief Returns the main `struct wl_surface*` of the specified window.
*
@@ -501,7 +498,7 @@ SSCAPI struct wl_output* glfwGetWaylandMonitor(GLFWmonitor* monitor);
*
* @ingroup native
*/
SSCAPI struct wl_surface* glfwGetWaylandWindow(GLFWwindow* window);
SSCAPI struct wl_surface *glfwGetWaylandWindow(GLFWwindow *window);
#endif
#if defined(GLFW_EXPOSE_NATIVE_EGL)
@@ -539,7 +536,7 @@ SSCAPI EGLDisplay glfwGetEGLDisplay(void);
*
* @ingroup native
*/
SSCAPI EGLContext glfwGetEGLContext(GLFWwindow* window);
SSCAPI EGLContext glfwGetEGLContext(GLFWwindow *window);
/*! @brief Returns the `EGLSurface` of the specified window.
*
@@ -556,7 +553,7 @@ SSCAPI EGLContext glfwGetEGLContext(GLFWwindow* window);
*
* @ingroup native
*/
SSCAPI EGLSurface glfwGetEGLSurface(GLFWwindow* window);
SSCAPI EGLSurface glfwGetEGLSurface(GLFWwindow *window);
#endif
#if defined(GLFW_EXPOSE_NATIVE_OSMESA)
@@ -582,7 +579,8 @@ SSCAPI EGLSurface glfwGetEGLSurface(GLFWwindow* window);
*
* @ingroup native
*/
SSCAPI int glfwGetOSMesaColorBuffer(GLFWwindow* window, int* width, int* height, int* format, void** buffer);
SSCAPI int glfwGetOSMesaColorBuffer(GLFWwindow *window, int *width, int *height, int *format,
void **buffer);
/*! @brief Retrieves the depth buffer associated with the specified window.
*
@@ -606,7 +604,8 @@ SSCAPI int glfwGetOSMesaColorBuffer(GLFWwindow* window, int* width, int* height,
*
* @ingroup native
*/
SSCAPI int glfwGetOSMesaDepthBuffer(GLFWwindow* window, int* width, int* height, int* bytesPerValue, void** buffer);
SSCAPI int glfwGetOSMesaDepthBuffer(GLFWwindow *window, int *width, int *height, int *bytesPerValue,
void **buffer);
/*! @brief Returns the `OSMesaContext` of the specified window.
*
@@ -623,7 +622,7 @@ SSCAPI int glfwGetOSMesaDepthBuffer(GLFWwindow* window, int* width, int* height,
*
* @ingroup native
*/
SSCAPI OSMesaContext glfwGetOSMesaContext(GLFWwindow* window);
SSCAPI OSMesaContext glfwGetOSMesaContext(GLFWwindow *window);
#endif
#ifdef __cplusplus
@@ -631,4 +630,3 @@ SSCAPI OSMesaContext glfwGetOSMesaContext(GLFWwindow* window);
#endif
#endif /* _glfw3_native_h_ */