Mercurial > sdl-ios-xcode
comparison src/video/directfb/SDL_DirectFB_opengl.h @ 4636:b196d2758026
Couriersud to Sam
Hi Sam,
20100815_1.diff contains updates for the directfb driver:
- more documentation, mainly on software OpenGL in README.directfb
- Revised error handling leading to leaner code
- Improved/fixed OpenGL handling of multiple contexts.
- Made the built-in simple window manager handle OpenGL windows.
- Rewrote pixelformat mapping - this was quite ugly before.
Well, all software GL, but working :-)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 16 Aug 2010 09:04:55 -0700 |
parents | f7b03b6838cb |
children | 164f20ba08eb |
comparison
equal
deleted
inserted
replaced
4635:0a07d002f10b | 4636:b196d2758026 |
---|---|
30 typedef struct _DirectFB_GLContext DirectFB_GLContext; | 30 typedef struct _DirectFB_GLContext DirectFB_GLContext; |
31 struct _DirectFB_GLContext | 31 struct _DirectFB_GLContext |
32 { | 32 { |
33 IDirectFBGL *context; | 33 IDirectFBGL *context; |
34 DirectFB_GLContext *next; | 34 DirectFB_GLContext *next; |
35 | |
36 SDL_Window *sdl_window; | |
37 int is_locked; | |
35 }; | 38 }; |
36 | 39 |
37 /* OpenGL functions */ | 40 /* OpenGL functions */ |
38 extern int DirectFB_GL_Initialize(_THIS); | 41 extern int DirectFB_GL_Initialize(_THIS); |
39 extern void DirectFB_GL_Shutdown(_THIS); | 42 extern void DirectFB_GL_Shutdown(_THIS); |
46 extern int DirectFB_GL_SetSwapInterval(_THIS, int interval); | 49 extern int DirectFB_GL_SetSwapInterval(_THIS, int interval); |
47 extern int DirectFB_GL_GetSwapInterval(_THIS); | 50 extern int DirectFB_GL_GetSwapInterval(_THIS); |
48 extern void DirectFB_GL_SwapWindow(_THIS, SDL_Window * window); | 51 extern void DirectFB_GL_SwapWindow(_THIS, SDL_Window * window); |
49 extern void DirectFB_GL_DeleteContext(_THIS, SDL_GLContext context); | 52 extern void DirectFB_GL_DeleteContext(_THIS, SDL_GLContext context); |
50 | 53 |
54 extern void DirectFB_GL_FreeWindowContexts(_THIS, SDL_Window * window); | |
55 extern void DirectFB_GL_ReAllocWindowContexts(_THIS, SDL_Window * window); | |
56 extern void DirectFB_GL_DestroyWindowContexts(_THIS, SDL_Window * window); | |
57 | |
51 #endif /* SDL_DIRECTFB_OPENGL */ | 58 #endif /* SDL_DIRECTFB_OPENGL */ |
52 | 59 |
53 #endif /* _SDL_directfb_opengl_h */ | 60 #endif /* _SDL_directfb_opengl_h */ |
54 | 61 |
55 /* vi: set ts=4 sw=4 expandtab: */ | 62 /* vi: set ts=4 sw=4 expandtab: */ |