aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/gl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mgl/gl.h')
-rw-r--r--include/mgl/gl.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/mgl/gl.h b/include/mgl/gl.h
index 2546a68..cf2cd47 100644
--- a/include/mgl/gl.h
+++ b/include/mgl/gl.h
@@ -9,15 +9,17 @@ typedef struct _XVisualInfo _XVisualInfo;
typedef struct _XDisplay Display;
typedef struct __GLXcontextRec *GLXContext;
typedef unsigned long GLXDrawable;
+typedef struct __GLXFBConfigRec *GLXFBConfig;
typedef struct {
void *handle;
- _XVisualInfo* (*glXChooseVisual)(Display *dpy, int screen, int *attribList);
- GLXContext (*glXCreateContext)(Display *dpy, _XVisualInfo *vis, GLXContext shareList, int direct);
+ GLXContext (*glXCreateNewContext)(Display *dpy, GLXFBConfig config, int renderType, GLXContext shareList, int direct);
+ int (*glXMakeContextCurrent)(Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
void (*glXDestroyContext)(Display *dpy, GLXContext ctx);
- int (*glXMakeCurrent)(Display *dpy, GLXDrawable drawable, GLXContext ctx);
void (*glXSwapBuffers)(Display *dpy, GLXDrawable drawable);
+ GLXFBConfig* (*glXChooseFBConfig)(Display *dpy, int screen, const int *attribList, int *nitems);
+ _XVisualInfo* (*glXGetVisualFromFBConfig)(Display *dpy, GLXFBConfig config);
void (*glViewport)(int x, int y, int width, int height);
void (*glScissor)(int x, int y, int width, int height);