21 #include "../../SDL_internal.h" 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;
38 SDL_bool HAS_GLX_ARB_context_flush_control;
40 Bool (*glXQueryExtension) (Display*,
int*,
int*);
41 void *(*glXGetProcAddress) (
const GLubyte*);
42 XVisualInfo *(*glXChooseVisual) (Display*,int,
int*);
43 GLXContext (*glXCreateContext) (Display*,XVisualInfo*,GLXContext,Bool);
44 GLXContext (*glXCreateContextAttribsARB) (Display*,GLXFBConfig,GLXContext,Bool,
const int *);
45 GLXFBConfig *(*glXChooseFBConfig) (Display*,int,
const int *,
int *);
46 void (*glXDestroyContext) (Display*, GLXContext);
47 Bool(*glXMakeCurrent) (Display*,GLXDrawable,GLXContext);
48 void (*glXSwapBuffers) (Display*, GLXDrawable);
49 void (*glXQueryDrawable) (Display*,GLXDrawable,int,
unsigned int*);
50 void (*glXSwapIntervalEXT) (Display*,GLXDrawable,int);
51 int (*glXSwapIntervalSGI) (int);
52 int (*glXSwapIntervalMESA) (int);
53 int (*glXGetSwapIntervalMESA) (
void);
57 extern int X11_GL_LoadLibrary(
_THIS,
const char *
path);
58 extern void *X11_GL_GetProcAddress(
_THIS,
const char *proc);
59 extern void X11_GL_UnloadLibrary(
_THIS);
64 extern int X11_GL_SetSwapInterval(
_THIS,
int interval);
65 extern int X11_GL_GetSwapInterval(
_THIS);
static SDL_Window * window
void * SDL_GLContext
An opaque handle to an OpenGL context.
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 void
The type used to identify a window.
GLsizei const GLchar *const * path