|
|
@ -48,7 +48,7 @@ |
|
|
|
|
|
|
|
|
#define GLFW_INCLUDE_NONE // Disable the standard OpenGL header inclusion on GLFW3 |
|
|
#define GLFW_INCLUDE_NONE // Disable the standard OpenGL header inclusion on GLFW3 |
|
|
// NOTE: Already provided by rlgl implementation (on glad.h) |
|
|
// NOTE: Already provided by rlgl implementation (on glad.h) |
|
|
#include "GLFW/glfw3.h" // GLFW3 library: Windows, OpenGL context and Input management |
|
|
|
|
|
|
|
|
#include "../external/glfw/include/GLFW/glfw3.h" // GLFW3 library: Windows, OpenGL context and Input management |
|
|
// NOTE: GLFW3 already includes gl.h (OpenGL) headers |
|
|
// NOTE: GLFW3 already includes gl.h (OpenGL) headers |
|
|
|
|
|
|
|
|
// Support retrieving native window handlers |
|
|
// Support retrieving native window handlers |
|
|
@ -63,7 +63,7 @@ |
|
|
|
|
|
|
|
|
#define GLFW_EXPOSE_NATIVE_WIN32 |
|
|
#define GLFW_EXPOSE_NATIVE_WIN32 |
|
|
#define GLFW_NATIVE_INCLUDE_NONE // To avoid some symbols re-definition in windows.h |
|
|
#define GLFW_NATIVE_INCLUDE_NONE // To avoid some symbols re-definition in windows.h |
|
|
#include "GLFW/glfw3native.h" |
|
|
|
|
|
|
|
|
#include "../external/glfw/include/GLFW/glfw3native.h" |
|
|
|
|
|
|
|
|
#if defined(SUPPORT_WINMM_HIGHRES_TIMER) && !defined(SUPPORT_BUSY_WAIT_LOOP) |
|
|
#if defined(SUPPORT_WINMM_HIGHRES_TIMER) && !defined(SUPPORT_BUSY_WAIT_LOOP) |
|
|
// NOTE: Those functions require linking with winmm library |
|
|
// NOTE: Those functions require linking with winmm library |
|
|
@ -89,7 +89,7 @@ |
|
|
#define GLFW_EXPOSE_NATIVE_WAYLAND |
|
|
#define GLFW_EXPOSE_NATIVE_WAYLAND |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#include "GLFW/glfw3native.h" // Include native header only once, regardless of how many backends are defined |
|
|
|
|
|
|
|
|
#include "../external/glfw/include/GLFW/glfw3native.h" // Include native header only once, regardless of how many backends are defined |
|
|
// Required for: glfwGetX11Window() and glfwGetWaylandWindow() |
|
|
// Required for: glfwGetX11Window() and glfwGetWaylandWindow() |
|
|
#if defined(_GLFW_X11) // Clean up X11-specific hacks |
|
|
#if defined(_GLFW_X11) // Clean up X11-specific hacks |
|
|
#undef Font // Revert hack and allow normal raylib Font usage |
|
|
#undef Font // Revert hack and allow normal raylib Font usage |
|
|
@ -101,7 +101,7 @@ |
|
|
|
|
|
|
|
|
//#define GLFW_EXPOSE_NATIVE_COCOA // WARNING: Fails due to type redefinition |
|
|
//#define GLFW_EXPOSE_NATIVE_COCOA // WARNING: Fails due to type redefinition |
|
|
void *glfwGetCocoaWindow(GLFWwindow* handle); |
|
|
void *glfwGetCocoaWindow(GLFWwindow* handle); |
|
|
#include "GLFW/glfw3native.h" // Required for: glfwGetCocoaWindow() |
|
|
|
|
|
|
|
|
#include "../external/glfw/include/GLFW/glfw3native.h" // Required for: glfwGetCocoaWindow() |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#include <stddef.h> // Required for: size_t |
|
|
#include <stddef.h> // Required for: size_t |
|
|
|