comparison include/SDL_video.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 2f44e6969a59
children fb424691cfc7
comparison
equal deleted inserted replaced
5151:5429daf5e3f9 5152:be02be2ea897
354 */ 354 */
355 extern DECLSPEC int SDLCALL SDL_GetWindowDisplayMode(SDL_Window * window, 355 extern DECLSPEC int SDLCALL SDL_GetWindowDisplayMode(SDL_Window * window,
356 SDL_DisplayMode * mode); 356 SDL_DisplayMode * mode);
357 357
358 /** 358 /**
359 * \brief Set the palette entries for indexed display modes.
360 *
361 * \return 0 on success, or -1 if the display mode isn't palettized or the
362 * colors couldn't be set.
363 */
364 extern DECLSPEC int SDLCALL SDL_SetDisplayPalette(const SDL_Color * colors,
365 int firstcolor,
366 int ncolors);
367
368 /**
369 * \brief Gets the palette entries for indexed display modes.
370 *
371 * \return 0 on success, or -1 if the display mode isn't palettized
372 */
373 extern DECLSPEC int SDLCALL SDL_GetDisplayPalette(SDL_Color * colors,
374 int firstcolor,
375 int ncolors);
376
377 /**
378 * \brief Set the gamma correction for each of the color channels on the 359 * \brief Set the gamma correction for each of the color channels on the
379 * currently selected display. 360 * currently selected display.
380 * 361 *
381 * \return 0 on success, or -1 if setting the gamma isn't supported. 362 * \return 0 on success, or -1 if setting the gamma isn't supported.
382 * 363 *