#ifndef GL3_H #define GL3_H #include #include #include #include #include #include #include #include #include #include typedef struct { Display *display; Window win; Colormap cmap; GLXContext ctx; Atom wm_protocols; Atom wm_delete_window; } GLInfo; bool initGL(int screen, int mask, GLInfo *glinfo); void destroyGL(GLInfo *glinfo); bool initShaders(const char *vertexShaderSrc, const char *fragmentShaderSrc, GLuint *program); static Bool alwaysTruePredicate(Display *display, XEvent *event, XPointer arg) { return true; } #endif