Added glfw support for FreeBSD
This commit is contained in:
parent
c9722161d1
commit
2cf37708c0
1 changed files with 17 additions and 0 deletions
17
src/rglfw.c
17
src/rglfw.c
|
@ -36,6 +36,9 @@
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#define _GLFW_X11
|
#define _GLFW_X11
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
#define _GLFW_X11
|
||||||
|
#endif
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#define _GLFW_COCOA
|
#define _GLFW_COCOA
|
||||||
#define _GLFW_USE_CHDIR // To chdir to the Resources subdirectory of the application bundle during glfwInit
|
#define _GLFW_USE_CHDIR // To chdir to the Resources subdirectory of the application bundle during glfwInit
|
||||||
|
@ -77,6 +80,20 @@
|
||||||
#include "external/glfw/src/osmesa_context.c"
|
#include "external/glfw/src/osmesa_context.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
#include "external/glfw/src/x11_init.c"
|
||||||
|
#include "external/glfw/src/x11_monitor.c"
|
||||||
|
#include "external/glfw/src/x11_window.c"
|
||||||
|
#include "external/glfw/src/xkb_unicode.c"
|
||||||
|
// TODO: Joistick implementation
|
||||||
|
#include "external/glfw/src/null_joystick.c"
|
||||||
|
#include "external/glfw/src/posix_time.c"
|
||||||
|
#include "external/glfw/src/posix_thread.c"
|
||||||
|
#include "external/glfw/src/glx_context.c"
|
||||||
|
#include "external/glfw/src/egl_context.c"
|
||||||
|
#include "external/glfw/src/osmesa_context.c"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include "external/glfw/src/cocoa_init.m"
|
#include "external/glfw/src/cocoa_init.m"
|
||||||
#include "external/glfw/src/cocoa_joystick.m"
|
#include "external/glfw/src/cocoa_joystick.m"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue