23 #ifndef _SDL_x11opengl_h
24 #define _SDL_x11opengl_h
26 #if SDL_VIDEO_OPENGL_GLX
32 int errorBase, eventBase;
36 SDL_bool HAS_GLX_EXT_swap_control_tear;
37 SDL_bool HAS_GLX_EXT_create_context_es2_profile;
40 void *(*glXGetProcAddress) (
const GLubyte*);
41 XVisualInfo *(*glXChooseVisual) (Display*,
int,
int*);
54 extern int X11_GL_LoadLibrary(
_THIS,
const char *
path);
55 extern void *X11_GL_GetProcAddress(
_THIS,
const char *proc);
56 extern void X11_GL_UnloadLibrary(
_THIS);
57 extern XVisualInfo *X11_GL_GetVisual(
_THIS, Display *
display,
int screen);
61 extern int X11_GL_SetSwapInterval(
_THIS,
int interval);
62 extern int X11_GL_GetSwapInterval(
_THIS);
#define glXSwapIntervalSGI
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
struct __GLXcontextRec * GLXContext
#define glXQueryExtension
void * SDL_GLContext
An opaque handle to an OpenGL context.
#define glXSwapIntervalEXT
GLsizei const GLchar *const * path
void glXQueryDrawable(Display *dpy, GLXDrawable draw, int attribute, unsigned int *value)
#define glXDestroyContext
int glXSwapIntervalMESA(unsigned int interval)
int glXGetSwapIntervalMESA(void)