Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoaopengl.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 |
---|---|
32 }; | 32 }; |
33 | 33 |
34 /* OpenGL functions */ | 34 /* OpenGL functions */ |
35 extern int Cocoa_GL_LoadLibrary(_THIS, const char *path); | 35 extern int Cocoa_GL_LoadLibrary(_THIS, const char *path); |
36 extern void *Cocoa_GL_GetProcAddress(_THIS, const char *proc); | 36 extern void *Cocoa_GL_GetProcAddress(_THIS, const char *proc); |
37 extern int Cocoa_GL_SetupWindow(_THIS, SDL_Window * window); | 37 extern void Cocoa_GL_UnloadLibrary(_THIS); |
38 extern void Cocoa_GL_CleanupWindow(_THIS, SDL_Window * window); | |
39 extern SDL_GLContext Cocoa_GL_CreateContext(_THIS, SDL_Window * window); | 38 extern SDL_GLContext Cocoa_GL_CreateContext(_THIS, SDL_Window * window); |
40 extern int Cocoa_GL_MakeCurrent(_THIS, SDL_Window * window, | 39 extern int Cocoa_GL_MakeCurrent(_THIS, SDL_Window * window, |
41 SDL_GLContext context); | 40 SDL_GLContext context); |
42 extern int Cocoa_GL_SetSwapInterval(_THIS, int interval); | 41 extern int Cocoa_GL_SetSwapInterval(_THIS, int interval); |
43 extern int Cocoa_GL_GetSwapInterval(_THIS); | 42 extern int Cocoa_GL_GetSwapInterval(_THIS); |