A single header file that dynamically loads the Xlib and GLX library
First, define XDL_IMPLEMENTATION and include the library
#define XDL_IMPLEMENTATION
#include "XDL.h"
Next, use XDL_init to load the X11 module
XDL_init();
When you're done, make sure to close the module, this frees all the allocated data and stored functions
XDL_close();
You can also define XDL_NO_GLX before including XDL if you don't want to include the GLX module
#define XDL_NO_GLX
#define XDL_IMPLEMENTATION
#include "XDL.h"
-
GLFW Much of this implementation is based on GLFW's internal x11 dynamic loader A great portion of the declarations for the X11 module are sourced from GLFW
-
stb This project is heavily inspired by the stb single header files
This project is public domain but credit would be greatly appreciated.