X-Git-Url: https://git.ralfj.de/gltest.git/blobdiff_plain/520f5e8cbcbbe69da6fa878fac2200f7bf302d68..ce1b46da645fdcac80fc9c71082bb5cb40166576:/glxbackend.h diff --git a/glxbackend.h b/glxbackend.h index 1e75cc8..a16f970 100644 --- a/glxbackend.h +++ b/glxbackend.h @@ -17,8 +17,10 @@ */ #include "glwindow.h" +#include "glutil.h" #include +#include /** Make an X window fit for GL. You have to manage the X window yourself! */ @@ -42,10 +44,14 @@ public: virtual void setSwapInterval(int i) const; private: Display *display; - XVisualInfo *vi; + GLXFBConfig config; GLXContext context; Window window; PFNGLXSWAPINTERVALMESAPROC funSwapIntervalMesa; PFNGLXSWAPINTERVALEXTPROC funSwapIntervalExt; + PFNGLXCREATECONTEXTATTRIBSARBPROC funCreateContextAttribsARB; + + bool haveGLXExtension(const std::string &name); + T_proc resolveGLXFunction(const char *extension, const char *function); };