revolver

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

glfw_impl.h (2729B)


      1 #ifndef __GLFW_IMPL_H__
      2 #define __GLFW_IMPL_H__
      3 
      4 #include "glfw3.h"
      5 
      6 #ifdef GLFW_IMPL
      7 
      8 #if defined(_WIN32)
      9     #define _GLFW_WIN32
     10 #endif
     11 #if defined(__linux__)
     12     #if !defined(_GLFW_WAYLAND)     // Required for Wayland windowing
     13         #define _GLFW_X11
     14     #endif
     15 #endif
     16 #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
     17     #define _GLFW_X11
     18 #endif
     19 #if defined(__APPLE__)
     20     #define _GLFW_COCOA
     21     #define _GLFW_USE_MENUBAR       // To create and populate the menu bar when the first window is created
     22     #define _GLFW_USE_RETINA        // To have windows use the full resolution of Retina displays
     23 #endif
     24 #if defined(__TINYC__)
     25     #define _WIN32_WINNT_WINXP      0x0501
     26 #endif
     27 
     28 // NOTE: _GLFW_MIR experimental platform not supported at this moment
     29 
     30 #include "context.c"
     31 #include "init.c"
     32 #include "input.c"
     33 #include "monitor.c"
     34 #include "vulkan.c"
     35 #include "window.c"
     36 
     37 #if (defined _WIN32 | defined _WIN64)
     38     #include "win32_init.c"
     39     #include "win32_joystick.c"
     40     #include "win32_monitor.c"
     41     #include "win32_time.c"
     42     #include "win32_thread.c"
     43     #include "win32_window.c"
     44     #include "wgl_context.c"
     45     #include "egl_context.c"
     46     #include "osmesa_context.c"
     47 #endif
     48 
     49 #if (defined __linux__ || defined _linux || defined __linux)
     50     #if defined(_GLFW_WAYLAND)
     51         #include "wl_init.c"
     52         #include "wl_monitor.c"
     53         #include "wl_window.c"
     54         #include "wayland-pointer-constraints-unstable-v1-client-protocol.c"
     55         #include "wayland-relative-pointer-unstable-v1-client-protocol.c"
     56         #endif
     57     #if defined(_GLFW_X11)
     58         #include "x11_init.c"
     59         #include "x11_monitor.c"
     60         #include "x11_window.c"
     61         #include "glx_context.c"
     62     #endif
     63 
     64     #include "linux_joystick.c"
     65     #include "posix_thread.c"
     66     #include "posix_time.c"
     67     #include "xkb_unicode.c"
     68     #include "egl_context.c"
     69     #include "osmesa_context.c"
     70 #endif
     71 
     72 #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
     73     #include "x11_init.c"
     74     #include "x11_monitor.c"
     75     #include "x11_window.c"
     76     #include "xkb_unicode.c"
     77     // TODO: Joystick implementation
     78     #include "null_joystick.c"
     79     #include "posix_time.c"
     80     #include "posix_thread.c"
     81     #include "glx_context.c"
     82     #include "egl_context.c"
     83     #include "osmesa_context.c"
     84 #endif
     85 
     86 #if defined(__APPLE__)
     87     #include "cocoa_init.m"
     88     #include "cocoa_joystick.m"
     89     #include "cocoa_monitor.m"
     90     #include "cocoa_window.m"
     91     #include "cocoa_time.c"
     92     #include "posix_thread.c"
     93     #include "nsgl_context.m"
     94     #include "egl_context.c"
     95     #include "osmesa_context.c"
     96 #endif
     97 
     98 #endif // GLFW_IMPL
     99 
    100 #endif // __GLFW_IMPL_H__