X-Git-Url: https://git.ralfj.de/gltest.git/blobdiff_plain/141fa68c418105e1e60788f676cd7f6dcf9cbeb1..7204186779e096ceab7b39f54dcf6f606062f29b:/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); };