comparison src/video/SDL_sysvideo.h @ 1970:db3ba6c0d0df

Allow the render context to do necessary work when the video mode changes.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 06 Aug 2006 04:39:13 +0000
parents 3182150b470f
children 754847f19490
comparison
equal deleted inserted replaced
1969:5d3724f64f2b 1970:db3ba6c0d0df
54 54
55 /* Define the SDL renderer structure */ 55 /* Define the SDL renderer structure */
56 struct SDL_Renderer 56 struct SDL_Renderer
57 { 57 {
58 int (*ActivateRenderer) (SDL_Renderer * renderer); 58 int (*ActivateRenderer) (SDL_Renderer * renderer);
59 int (*DisplayModeChanged) (SDL_Renderer * renderer);
59 int (*CreateTexture) (SDL_Renderer * renderer, SDL_Texture * texture); 60 int (*CreateTexture) (SDL_Renderer * renderer, SDL_Texture * texture);
60 int (*QueryTexturePixels) (SDL_Renderer * renderer, SDL_Texture * texture, 61 int (*QueryTexturePixels) (SDL_Renderer * renderer, SDL_Texture * texture,
61 void **pixels, int *pitch); 62 void **pixels, int *pitch);
62 int (*SetTexturePalette) (SDL_Renderer * renderer, SDL_Texture * texture, 63 int (*SetTexturePalette) (SDL_Renderer * renderer, SDL_Texture * texture,
63 const SDL_Color * colors, int firstcolor, 64 const SDL_Color * colors, int firstcolor,
131 int max_display_modes; 132 int max_display_modes;
132 int num_display_modes; 133 int num_display_modes;
133 SDL_DisplayMode *display_modes; 134 SDL_DisplayMode *display_modes;
134 SDL_DisplayMode desktop_mode; 135 SDL_DisplayMode desktop_mode;
135 SDL_DisplayMode current_mode; 136 SDL_DisplayMode current_mode;
136 SDL_DisplayMode desired_mode; 137 SDL_DisplayMode fullscreen_mode;
137 SDL_DisplayMode *fullscreen_mode;
138 SDL_Palette *palette; 138 SDL_Palette *palette;
139 139
140 Uint16 *gamma; 140 Uint16 *gamma;
141 Uint16 *saved_gamma; /* (just offset into gamma) */ 141 Uint16 *saved_gamma; /* (just offset into gamma) */
142 142
387 extern SDL_Window *SDL_GetWindowFromID(SDL_WindowID windowID); 387 extern SDL_Window *SDL_GetWindowFromID(SDL_WindowID windowID);
388 extern SDL_VideoDisplay *SDL_GetDisplayFromWindow(SDL_Window * window); 388 extern SDL_VideoDisplay *SDL_GetDisplayFromWindow(SDL_Window * window);
389 389
390 extern void SDL_OnWindowShown(SDL_Window * window); 390 extern void SDL_OnWindowShown(SDL_Window * window);
391 extern void SDL_OnWindowHidden(SDL_Window * window); 391 extern void SDL_OnWindowHidden(SDL_Window * window);
392 extern void SDL_OnWindowResized(SDL_Window * window);
392 extern void SDL_OnWindowFocusGained(SDL_Window * window); 393 extern void SDL_OnWindowFocusGained(SDL_Window * window);
393 extern void SDL_OnWindowFocusLost(SDL_Window * window); 394 extern void SDL_OnWindowFocusLost(SDL_Window * window);
394 extern SDL_WindowID SDL_GetFocusWindow(void); 395 extern SDL_WindowID SDL_GetFocusWindow(void);
395 396
396 #endif /* _SDL_sysvideo_h */ 397 #endif /* _SDL_sysvideo_h */