| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | #include <dlfcn.h> |
| 29 | |
| 30 | #define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowNull null |
| 31 | |
| 32 | #define _GLFW_PLATFORM_CONTEXT_STATE struct { int dummyContext; } |
| 33 | #define _GLFW_PLATFORM_MONITOR_STATE struct { int dummyMonitor; } |
| 34 | #define _GLFW_PLATFORM_CURSOR_STATE struct { int dummyCursor; } |
| 35 | #define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE struct { int dummyLibraryWindow; } |
| 36 | #define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE struct { int dummyLibraryContext; } |
| 37 | #define _GLFW_EGL_CONTEXT_STATE struct { int dummyEGLContext; } |
| 38 | #define _GLFW_EGL_LIBRARY_CONTEXT_STATE struct { int dummyEGLLibraryContext; } |
| 39 | |
| 40 | #include "osmesa_context.h" |
| 41 | #include "posix_time.h" |
| 42 | #include "posix_thread.h" |
| 43 | #include "null_joystick.h" |
| 44 | |
| 45 | #if defined(_GLFW_WIN32) |
| 46 | #define _glfw_dlopen(name) LoadLibraryA(name) |
| 47 | #define _glfw_dlclose(handle) FreeLibrary((HMODULE) handle) |
| 48 | #define _glfw_dlsym(handle, name) GetProcAddress((HMODULE) handle, name) |
| 49 | #else |
| 50 | #define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL) |
| 51 | #define _glfw_dlclose(handle) dlclose(handle) |
| 52 | #define _glfw_dlsym(handle, name) dlsym(handle, name) |
| 53 | #endif |
| 54 | |
| 55 | |
| 56 | |
| 57 | typedef struct _GLFWwindowNull |
| 58 | { |
| 59 | int width; |
| 60 | int height; |
| 61 | } _GLFWwindowNull; |
| 62 | |