Mercurial > sdl-ios-xcode
comparison src/video/directfb/SDL_DirectFB_opengl.h @ 5202:164f20ba08eb
Updated the DirectFB support, from Couriersud
attached is a working directfb driver diff which works with the current
changes. There are a number of changes around it as well, e.g.
configure.in.
The directfb renderdriver right now still depends on a some "includes"
from src/video/directfb. That's why it is not yet moved to the new
render folder.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 05 Feb 2011 16:07:10 -0800 |
parents | b196d2758026 |
children | b530ef003506 |
comparison
equal
deleted
inserted
replaced
5201:7c3422025c35 | 5202:164f20ba08eb |
---|---|
16 License along with this library; if not, write to the Free Software | 16 License along with this library; if not, write to the Free Software |
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
18 | 18 |
19 Sam Lantinga | 19 Sam Lantinga |
20 slouken@libsdl.org | 20 slouken@libsdl.org |
21 | |
22 SDL1.3 DirectFB driver by couriersud@arcor.de | |
23 | |
21 */ | 24 */ |
22 #include "SDL_config.h" | 25 |
23 | 26 |
24 #ifndef _SDL_directfb_opengl_h | 27 #ifndef _SDL_directfb_opengl_h |
25 #define _SDL_directfb_opengl_h | 28 #define _SDL_directfb_opengl_h |
26 | 29 |
30 #include "SDL_DirectFB_video.h" | |
31 | |
27 #if SDL_DIRECTFB_OPENGL | 32 #if SDL_DIRECTFB_OPENGL |
33 | |
28 #include "SDL_opengl.h" | 34 #include "SDL_opengl.h" |
29 | 35 |
30 typedef struct _DirectFB_GLContext DirectFB_GLContext; | 36 typedef struct _DirectFB_GLContext DirectFB_GLContext; |
31 struct _DirectFB_GLContext | 37 struct _DirectFB_GLContext |
32 { | 38 { |
33 IDirectFBGL *context; | 39 IDirectFBGL *context; |
34 DirectFB_GLContext *next; | 40 DirectFB_GLContext *next; |
35 | 41 |
36 SDL_Window *sdl_window; | 42 SDL_Window *sdl_window; |
37 int is_locked; | 43 int is_locked; |
38 }; | 44 }; |
39 | 45 |
40 /* OpenGL functions */ | 46 /* OpenGL functions */ |
41 extern int DirectFB_GL_Initialize(_THIS); | 47 extern int DirectFB_GL_Initialize(_THIS); |
42 extern void DirectFB_GL_Shutdown(_THIS); | 48 extern void DirectFB_GL_Shutdown(_THIS); |