comparison src/video/directfb/SDL_DirectFB_window.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 25b9cd8bdc30
children 164f20ba08eb
comparison
equal deleted inserted replaced
4635:0a07d002f10b 4636:b196d2758026
32 struct _DFB_WindowData 32 struct _DFB_WindowData
33 { 33 {
34 IDirectFBSurface *surface; 34 IDirectFBSurface *surface;
35 IDirectFBSurface *window_surface; /* only used with has_own_wm */ 35 IDirectFBSurface *window_surface; /* only used with has_own_wm */
36 IDirectFBWindow *window; 36 IDirectFBWindow *window;
37 DirectFB_GLContext *gl_context;
38 IDirectFBEventBuffer *eventbuffer; 37 IDirectFBEventBuffer *eventbuffer;
39 SDL_Window *sdl_window; 38 SDL_Window *sdl_window;
40 DFB_WindowData *next; 39 DFB_WindowData *next;
41 Uint8 opacity; 40 Uint8 opacity;
42 DFBRectangle client; 41 DFBRectangle client;
44 /* WM extras */ 43 /* WM extras */
45 DFBRectangle restore; 44 DFBRectangle restore;
46 int is_managed; 45 int is_managed;
47 int wm_needs_redraw; 46 int wm_needs_redraw;
48 IDirectFBSurface *icon; 47 IDirectFBSurface *icon;
48 IDirectFBFont *font;
49 DFB_Theme theme; 49 DFB_Theme theme;
50 }; 50 };
51 51
52 extern int DirectFB_CreateWindow(_THIS, SDL_Window * window); 52 extern int DirectFB_CreateWindow(_THIS, SDL_Window * window);
53 extern int DirectFB_CreateWindowFrom(_THIS, SDL_Window * window, 53 extern int DirectFB_CreateWindowFrom(_THIS, SDL_Window * window,
67 extern void DirectFB_SetWindowGrab(_THIS, SDL_Window * window); 67 extern void DirectFB_SetWindowGrab(_THIS, SDL_Window * window);
68 extern void DirectFB_DestroyWindow(_THIS, SDL_Window * window); 68 extern void DirectFB_DestroyWindow(_THIS, SDL_Window * window);
69 extern SDL_bool DirectFB_GetWindowWMInfo(_THIS, SDL_Window * window, 69 extern SDL_bool DirectFB_GetWindowWMInfo(_THIS, SDL_Window * window,
70 struct SDL_SysWMinfo *info); 70 struct SDL_SysWMinfo *info);
71 71
72 extern void DirectFB_AdjustWindowSurface(SDL_Window * window); 72 //extern void DirectFB_AdjustWindowSurface(_THIS, SDL_Window * window);
73 73
74 #endif /* _SDL_directfb_window_h */ 74 #endif /* _SDL_directfb_window_h */
75 75
76 /* vi: set ts=4 sw=4 expandtab: */ 76 /* vi: set ts=4 sw=4 expandtab: */