comparison src/video/wincommon/SDL_wingl_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
37 int pixel_format; 37 int pixel_format;
38 int WGL_ARB_pixel_format; 38 int WGL_ARB_pixel_format;
39 39
40 void *(WINAPI * wglGetProcAddress) (const char *proc); 40 void *(WINAPI * wglGetProcAddress) (const char *proc);
41 41
42 HGLRC (WINAPI * wglCreateContext) (HDC hdc); 42 HGLRC(WINAPI * wglCreateContext) (HDC hdc);
43 43
44 BOOL (WINAPI * wglDeleteContext) (HGLRC hglrc); 44 BOOL(WINAPI * wglDeleteContext) (HGLRC hglrc);
45 45
46 BOOL (WINAPI * wglMakeCurrent) (HDC hdc, HGLRC hglrc); 46 BOOL(WINAPI * wglMakeCurrent) (HDC hdc, HGLRC hglrc);
47 47
48 BOOL (WINAPI * wglChoosePixelFormatARB) (HDC hdc, 48 BOOL(WINAPI * wglChoosePixelFormatARB) (HDC hdc,
49 const int *piAttribIList, 49 const int *piAttribIList,
50 const FLOAT * pfAttribFList, 50 const FLOAT * pfAttribFList,
51 UINT nMaxFormats, 51 UINT nMaxFormats,
52 int *piFormats, 52 int *piFormats,
53 UINT * nNumFormats); 53 UINT * nNumFormats);
54 BOOL (WINAPI * wglGetPixelFormatAttribivARB) (HDC hdc, int iPixelFormat, 54 BOOL(WINAPI * wglGetPixelFormatAttribivARB) (HDC hdc, int iPixelFormat,
55 int iLayerPlane, 55 int iLayerPlane,
56 UINT nAttributes, 56 UINT nAttributes,
57 const int *piAttributes, 57 const int *piAttributes,
58 int *piValues); 58 int *piValues);
59 void (WINAPI * wglSwapIntervalEXT) (int interval); 59 void (WINAPI * wglSwapIntervalEXT) (int interval);
60 int (WINAPI * wglGetSwapIntervalEXT) (void); 60 int (WINAPI * wglGetSwapIntervalEXT) (void);
61 #endif /* SDL_VIDEO_OPENGL */ 61 #endif /* SDL_VIDEO_OPENGL */
62 }; 62 };
63 63
67 #define GL_hdc (this->gl_data->GL_hdc) 67 #define GL_hdc (this->gl_data->GL_hdc)
68 #define GL_hrc (this->gl_data->GL_hrc) 68 #define GL_hrc (this->gl_data->GL_hrc)
69 #define pixel_format (this->gl_data->pixel_format) 69 #define pixel_format (this->gl_data->pixel_format)
70 70
71 /* OpenGL functions */ 71 /* OpenGL functions */
72 extern int WIN_GL_SetupWindow (_THIS); 72 extern int WIN_GL_SetupWindow(_THIS);
73 extern void WIN_GL_ShutDown (_THIS); 73 extern void WIN_GL_ShutDown(_THIS);
74 #if SDL_VIDEO_OPENGL 74 #if SDL_VIDEO_OPENGL
75 extern int WIN_GL_MakeCurrent (_THIS); 75 extern int WIN_GL_MakeCurrent(_THIS);
76 extern int WIN_GL_GetAttribute (_THIS, SDL_GLattr attrib, int *value); 76 extern int WIN_GL_GetAttribute(_THIS, SDL_GLattr attrib, int *value);
77 extern void WIN_GL_SwapBuffers (_THIS); 77 extern void WIN_GL_SwapBuffers(_THIS);
78 extern void WIN_GL_UnloadLibrary (_THIS); 78 extern void WIN_GL_UnloadLibrary(_THIS);
79 extern int WIN_GL_LoadLibrary (_THIS, const char *path); 79 extern int WIN_GL_LoadLibrary(_THIS, const char *path);
80 extern void *WIN_GL_GetProcAddress (_THIS, const char *proc); 80 extern void *WIN_GL_GetProcAddress(_THIS, const char *proc);
81 #endif 81 #endif
82 82
83 #if SDL_VIDEO_OPENGL 83 #if SDL_VIDEO_OPENGL
84 84
85 #ifndef WGL_ARB_pixel_format 85 #ifndef WGL_ARB_pixel_format