comparison src/video/x11/SDL_x11gl_c.h @ 1668:4da1ee79c9af SDL-1.3

more tweaking indent options
author Sam Lantinga <slouken@libsdl.org>
date Mon, 29 May 2006 04:04:35 +0000
parents 782fd950bd46
children
comparison
equal deleted inserted replaced
1667:1fddae038bc8 1668:4da1ee79c9af
39 void *(*glXGetProcAddress) (const GLubyte * procName); 39 void *(*glXGetProcAddress) (const GLubyte * procName);
40 40
41 XVisualInfo *(*glXChooseVisual) 41 XVisualInfo *(*glXChooseVisual)
42 (Display * dpy, int screen, int *attribList); 42 (Display * dpy, int screen, int *attribList);
43 43
44 GLXContext (*glXCreateContext) 44 GLXContext(*glXCreateContext)
45 (Display * dpy, XVisualInfo * vis, GLXContext shareList, Bool direct); 45 (Display * dpy, XVisualInfo * vis, GLXContext shareList, Bool direct);
46 46
47 void (*glXDestroyContext) (Display * dpy, GLXContext ctx); 47 void (*glXDestroyContext) (Display * dpy, GLXContext ctx);
48 48
49 Bool (*glXMakeCurrent) 49 Bool(*glXMakeCurrent)
50 (Display * dpy, GLXDrawable drawable, GLXContext ctx); 50 (Display * dpy, GLXDrawable drawable, GLXContext ctx);
51 51
52 void (*glXSwapBuffers) (Display * dpy, GLXDrawable drawable); 52 void (*glXSwapBuffers) (Display * dpy, GLXDrawable drawable);
53 53
54 int (*glXGetConfig) 54 int (*glXGetConfig)
55 (Display * dpy, XVisualInfo * visual_info, int attrib, int *value); 55 (Display * dpy, XVisualInfo * visual_info, int attrib, int *value);
56 56
57 const char *(*glXQueryExtensionsString) (Display * dpy, int screen); 57 const char *(*glXQueryExtensionsString) (Display * dpy, int screen);
58 58
59 int (*glXSwapIntervalSGI) (int interval); 59 int (*glXSwapIntervalSGI) (int interval);
60 GLint (*glXSwapIntervalMESA) (unsigned interval); 60 GLint(*glXSwapIntervalMESA) (unsigned interval);
61 GLint (*glXGetSwapIntervalMESA) (void); 61 GLint(*glXGetSwapIntervalMESA) (void);
62 62
63 #endif /* SDL_VIDEO_OPENGL_GLX */ 63 #endif /* SDL_VIDEO_OPENGL_GLX */
64 }; 64 };
65 65
66 /* Old variable names */ 66 /* Old variable names */
67 #define gl_active (this->gl_data->gl_active) 67 #define gl_active (this->gl_data->gl_active)
68 #define glx_context (this->gl_data->glx_context) 68 #define glx_context (this->gl_data->glx_context)
69 #define glx_visualinfo (this->gl_data->glx_visualinfo) 69 #define glx_visualinfo (this->gl_data->glx_visualinfo)
70 70
71 /* OpenGL functions */ 71 /* OpenGL functions */
72 extern XVisualInfo *X11_GL_GetVisual (_THIS); 72 extern XVisualInfo *X11_GL_GetVisual(_THIS);
73 extern int X11_GL_CreateWindow (_THIS, int w, int h); 73 extern int X11_GL_CreateWindow(_THIS, int w, int h);
74 extern int X11_GL_CreateContext (_THIS); 74 extern int X11_GL_CreateContext(_THIS);
75 extern void X11_GL_Shutdown (_THIS); 75 extern void X11_GL_Shutdown(_THIS);
76 #if SDL_VIDEO_OPENGL_GLX 76 #if SDL_VIDEO_OPENGL_GLX
77 extern int X11_GL_MakeCurrent (_THIS); 77 extern int X11_GL_MakeCurrent(_THIS);
78 extern int X11_GL_GetAttribute (_THIS, SDL_GLattr attrib, int *value); 78 extern int X11_GL_GetAttribute(_THIS, SDL_GLattr attrib, int *value);
79 extern void X11_GL_SwapBuffers (_THIS); 79 extern void X11_GL_SwapBuffers(_THIS);
80 extern int X11_GL_LoadLibrary (_THIS, const char *path); 80 extern int X11_GL_LoadLibrary(_THIS, const char *path);
81 extern void *X11_GL_GetProcAddress (_THIS, const char *proc); 81 extern void *X11_GL_GetProcAddress(_THIS, const char *proc);
82 #endif 82 #endif
83 extern void X11_GL_UnloadLibrary (_THIS); 83 extern void X11_GL_UnloadLibrary(_THIS);
84 /* vi: set ts=4 sw=4 expandtab: */ 84 /* vi: set ts=4 sw=4 expandtab: */