Mercurial > sdl-ios-xcode
comparison src/video/SDL_sysvideo.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 | 54fac87e1f34 |
children | 0bc41e0361d3 |
comparison
equal
deleted
inserted
replaced
3056:a434fe6360df | 3057:089a77aebb7d |
---|---|
258 /* | 258 /* |
259 * OpenGL support | 259 * OpenGL support |
260 */ | 260 */ |
261 int (*GL_LoadLibrary) (_THIS, const char *path); | 261 int (*GL_LoadLibrary) (_THIS, const char *path); |
262 void *(*GL_GetProcAddress) (_THIS, const char *proc); | 262 void *(*GL_GetProcAddress) (_THIS, const char *proc); |
263 void (*GL_UnloadLibrary) (_THIS); | |
263 SDL_GLContext(*GL_CreateContext) (_THIS, SDL_Window * window); | 264 SDL_GLContext(*GL_CreateContext) (_THIS, SDL_Window * window); |
264 int (*GL_MakeCurrent) (_THIS, SDL_Window * window, SDL_GLContext context); | 265 int (*GL_MakeCurrent) (_THIS, SDL_Window * window, SDL_GLContext context); |
265 int (*GL_SetSwapInterval) (_THIS, int interval); | 266 int (*GL_SetSwapInterval) (_THIS, int interval); |
266 int (*GL_GetSwapInterval) (_THIS); | 267 int (*GL_GetSwapInterval) (_THIS); |
267 void (*GL_SwapWindow) (_THIS, SDL_Window * window); | 268 void (*GL_SwapWindow) (_THIS, SDL_Window * window); |