Mercurial > sdl-ios-xcode
comparison src/video/SDL_sysvideo.h @ 5152:be02be2ea897
Making the API simpler, removed support for palettized video modes and textures.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 01 Feb 2011 21:23:43 -0800 |
parents | 5429daf5e3f9 |
children | 1435f8a6425c |
comparison
equal
deleted
inserted
replaced
5151:5429daf5e3f9 | 5152:be02be2ea897 |
---|---|
65 | 65 |
66 void (*WindowEvent) (SDL_Renderer * renderer, const SDL_WindowEvent *event); | 66 void (*WindowEvent) (SDL_Renderer * renderer, const SDL_WindowEvent *event); |
67 int (*CreateTexture) (SDL_Renderer * renderer, SDL_Texture * texture); | 67 int (*CreateTexture) (SDL_Renderer * renderer, SDL_Texture * texture); |
68 int (*QueryTexturePixels) (SDL_Renderer * renderer, SDL_Texture * texture, | 68 int (*QueryTexturePixels) (SDL_Renderer * renderer, SDL_Texture * texture, |
69 void **pixels, int *pitch); | 69 void **pixels, int *pitch); |
70 int (*SetTexturePalette) (SDL_Renderer * renderer, SDL_Texture * texture, | |
71 const SDL_Color * colors, int firstcolor, | |
72 int ncolors); | |
73 int (*GetTexturePalette) (SDL_Renderer * renderer, SDL_Texture * texture, | |
74 SDL_Color * colors, int firstcolor, | |
75 int ncolors); | |
76 int (*SetTextureColorMod) (SDL_Renderer * renderer, | 70 int (*SetTextureColorMod) (SDL_Renderer * renderer, |
77 SDL_Texture * texture); | 71 SDL_Texture * texture); |
78 int (*SetTextureAlphaMod) (SDL_Renderer * renderer, | 72 int (*SetTextureAlphaMod) (SDL_Renderer * renderer, |
79 SDL_Texture * texture); | 73 SDL_Texture * texture); |
80 int (*SetTextureBlendMode) (SDL_Renderer * renderer, | 74 int (*SetTextureBlendMode) (SDL_Renderer * renderer, |
193 int num_display_modes; | 187 int num_display_modes; |
194 SDL_DisplayMode *display_modes; | 188 SDL_DisplayMode *display_modes; |
195 SDL_DisplayMode desktop_mode; | 189 SDL_DisplayMode desktop_mode; |
196 SDL_DisplayMode current_mode; | 190 SDL_DisplayMode current_mode; |
197 SDL_bool updating_fullscreen; | 191 SDL_bool updating_fullscreen; |
198 SDL_Palette *palette; | |
199 | 192 |
200 Uint16 *gamma; | 193 Uint16 *gamma; |
201 Uint16 *saved_gamma; /* (just offset into gamma) */ | 194 Uint16 *saved_gamma; /* (just offset into gamma) */ |
202 | 195 |
203 int num_render_drivers; | 196 int num_render_drivers; |
256 * when the display mode is changed, all existing windows should have | 249 * when the display mode is changed, all existing windows should have |
257 * their data updated accordingly, including the display surfaces | 250 * their data updated accordingly, including the display surfaces |
258 * associated with them. | 251 * associated with them. |
259 */ | 252 */ |
260 int (*SetDisplayMode) (_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode); | 253 int (*SetDisplayMode) (_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode); |
261 | |
262 /* Set the color entries of the display palette */ | |
263 int (*SetDisplayPalette) (_THIS, SDL_VideoDisplay * display, SDL_Palette * palette); | |
264 | |
265 /* Get the color entries of the display palette */ | |
266 int (*GetDisplayPalette) (_THIS, SDL_VideoDisplay * display, SDL_Palette * palette); | |
267 | 254 |
268 /* Set the gamma ramp */ | 255 /* Set the gamma ramp */ |
269 int (*SetDisplayGammaRamp) (_THIS, SDL_VideoDisplay * display, Uint16 * ramp); | 256 int (*SetDisplayGammaRamp) (_THIS, SDL_VideoDisplay * display, Uint16 * ramp); |
270 | 257 |
271 /* Get the gamma ramp */ | 258 /* Get the gamma ramp */ |
445 extern int SDL_GetDisplayModeForDisplay(SDL_VideoDisplay * display, int index, SDL_DisplayMode * mode); | 432 extern int SDL_GetDisplayModeForDisplay(SDL_VideoDisplay * display, int index, SDL_DisplayMode * mode); |
446 extern int SDL_GetDesktopDisplayModeForDisplay(SDL_VideoDisplay * display, SDL_DisplayMode * mode); | 433 extern int SDL_GetDesktopDisplayModeForDisplay(SDL_VideoDisplay * display, SDL_DisplayMode * mode); |
447 extern int SDL_GetCurrentDisplayModeForDisplay(SDL_VideoDisplay * display, SDL_DisplayMode * mode); | 434 extern int SDL_GetCurrentDisplayModeForDisplay(SDL_VideoDisplay * display, SDL_DisplayMode * mode); |
448 extern SDL_DisplayMode * SDL_GetClosestDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode * mode, SDL_DisplayMode * closest); | 435 extern SDL_DisplayMode * SDL_GetClosestDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode * mode, SDL_DisplayMode * closest); |
449 extern int SDL_SetDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode * mode); | 436 extern int SDL_SetDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode * mode); |
450 extern int SDL_SetPaletteForDisplay(SDL_VideoDisplay * display, const SDL_Color * colors, int firstcolor, int ncolors); | |
451 extern int SDL_GetPaletteForDisplay(SDL_VideoDisplay * display, SDL_Color * colors, int firstcolor, int ncolors); | |
452 extern int SDL_SetGammaRampForDisplay(SDL_VideoDisplay * display, const Uint16 * red, const Uint16 * green, const Uint16 * blue); | 437 extern int SDL_SetGammaRampForDisplay(SDL_VideoDisplay * display, const Uint16 * red, const Uint16 * green, const Uint16 * blue); |
453 extern int SDL_GetGammaRampForDisplay(SDL_VideoDisplay * display, Uint16 * red, Uint16 * green, Uint16 * blue); | 438 extern int SDL_GetGammaRampForDisplay(SDL_VideoDisplay * display, Uint16 * red, Uint16 * green, Uint16 * blue); |
454 extern void SDL_AddRenderDriver(SDL_VideoDisplay *display, const SDL_RenderDriver * driver); | 439 extern void SDL_AddRenderDriver(SDL_VideoDisplay *display, const SDL_RenderDriver * driver); |
455 | 440 |
456 extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags); | 441 extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags); |