Skip to content

Instantly share code, notes, and snippets.

@houzhj58
houzhj58 / glxcb.c
Created September 6, 2021 11:46 — forked from GlassGhost/glxcb.c
proper use of xcb and opengl involves x11 since most manufacturers only write libs for x11
/* glxcb.c taken from:
http://xcb.freedesktop.org/opengl/
to compile it use :
gcc -std=c99 -Wall glxcb.c -lxcb -lX11 -lGL -lX11-xcb -o glxcb
*/
#include <stdio.h>
#include <stdlib.h>
#include <X11/Xlib.h>