*/
#include "glwindow.h"
+#include "glutil.h"
#include <GL/glx.h>
+#include <string>
/** Make an X window fit for GL. You have to manage the X window yourself! */
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);
};