Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32opengl.h @ 3057:089a77aebb7d
Added test program for SDL_CreateWindowFrom()
Make sure OpenGL library is loaded before working with OpenGL windows,
even those created with SDL_CreateWindowFrom()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 09 Feb 2009 05:32:12 +0000 |
parents | 99210400e8b9 |
children | f7b03b6838cb |
comparison
equal
deleted
inserted
replaced
3056:a434fe6360df | 3057:089a77aebb7d |
---|---|
26 | 26 |
27 #if SDL_VIDEO_OPENGL_WGL | 27 #if SDL_VIDEO_OPENGL_WGL |
28 | 28 |
29 struct SDL_GLDriverData | 29 struct SDL_GLDriverData |
30 { | 30 { |
31 int initialized; | |
32 int WGL_ARB_pixel_format; | 31 int WGL_ARB_pixel_format; |
33 | 32 |
34 void *(WINAPI * wglGetProcAddress) (const char *proc); | 33 void *(WINAPI * wglGetProcAddress) (const char *proc); |
35 HGLRC(WINAPI * wglCreateContext) (HDC hdc); | 34 HGLRC(WINAPI * wglCreateContext) (HDC hdc); |
36 BOOL(WINAPI * wglDeleteContext) (HGLRC hglrc); | 35 BOOL(WINAPI * wglDeleteContext) (HGLRC hglrc); |
51 }; | 50 }; |
52 | 51 |
53 /* OpenGL functions */ | 52 /* OpenGL functions */ |
54 extern int WIN_GL_LoadLibrary(_THIS, const char *path); | 53 extern int WIN_GL_LoadLibrary(_THIS, const char *path); |
55 extern void *WIN_GL_GetProcAddress(_THIS, const char *proc); | 54 extern void *WIN_GL_GetProcAddress(_THIS, const char *proc); |
55 extern void WIN_GL_UnloadLibrary(_THIS); | |
56 extern int WIN_GL_SetupWindow(_THIS, SDL_Window * window); | 56 extern int WIN_GL_SetupWindow(_THIS, SDL_Window * window); |
57 extern void WIN_GL_CleanupWindow(_THIS, SDL_Window * window); | |
58 extern SDL_GLContext WIN_GL_CreateContext(_THIS, SDL_Window * window); | 57 extern SDL_GLContext WIN_GL_CreateContext(_THIS, SDL_Window * window); |
59 extern int WIN_GL_MakeCurrent(_THIS, SDL_Window * window, | 58 extern int WIN_GL_MakeCurrent(_THIS, SDL_Window * window, |
60 SDL_GLContext context); | 59 SDL_GLContext context); |
61 extern int WIN_GL_SetSwapInterval(_THIS, int interval); | 60 extern int WIN_GL_SetSwapInterval(_THIS, int interval); |
62 extern int WIN_GL_GetSwapInterval(_THIS); | 61 extern int WIN_GL_GetSwapInterval(_THIS); |