comparison include/SDL_video.h @ 5248:3a8a452b49f0

Removed gamma support since it wasn't widely used and not well supported.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 10 Feb 2011 11:39:08 -0800
parents 4d39eeaad00b
children 762e40fb8e28
comparison
equal deleted inserted replaced
5247:78ce7bfd0faf 5248:3a8a452b49f0
359 * \brief Get the pixel format associated with the window. 359 * \brief Get the pixel format associated with the window.
360 */ 360 */
361 extern DECLSPEC Uint32 SDLCALL SDL_GetWindowPixelFormat(SDL_Window * window); 361 extern DECLSPEC Uint32 SDLCALL SDL_GetWindowPixelFormat(SDL_Window * window);
362 362
363 /** 363 /**
364 * \brief Set the gamma correction for each of the color channels on the
365 * currently selected display.
366 *
367 * \return 0 on success, or -1 if setting the gamma isn't supported.
368 *
369 * \sa SDL_SetGammaRamp()
370 */
371 extern DECLSPEC int SDLCALL SDL_SetGamma(float red, float green, float blue);
372
373 /**
374 * \brief Set the gamma ramp for the currently selected display.
375 *
376 * \param red The translation table for the red channel, or NULL.
377 * \param green The translation table for the green channel, or NULL.
378 * \param blue The translation table for the blue channel, or NULL.
379 *
380 * \return 0 on success, or -1 if gamma ramps are unsupported.
381 *
382 * Set the gamma translation table for the red, green, and blue channels
383 * of the video hardware. Each table is an array of 256 16-bit quantities,
384 * representing a mapping between the input and output for that channel.
385 * The input is the index into the array, and the output is the 16-bit
386 * gamma value at that index, scaled to the output color precision.
387 *
388 * \sa SDL_GetGammaRamp()
389 */
390 extern DECLSPEC int SDLCALL SDL_SetGammaRamp(const Uint16 * red,
391 const Uint16 * green,
392 const Uint16 * blue);
393
394 /**
395 * \brief Get the gamma ramp for the currently selected display.
396 *
397 * \param red A pointer to a 256 element array of 16-bit quantities to hold
398 * the translation table for the red channel, or NULL.
399 * \param green A pointer to a 256 element array of 16-bit quantities to hold
400 * the translation table for the green channel, or NULL.
401 * \param blue A pointer to a 256 element array of 16-bit quantities to hold
402 * the translation table for the blue channel, or NULL.
403 *
404 * \return 0 on success, or -1 if gamma ramps are unsupported.
405 *
406 * \sa SDL_SetGammaRamp()
407 */
408 extern DECLSPEC int SDLCALL SDL_GetGammaRamp(Uint16 * red, Uint16 * green,
409 Uint16 * blue);
410
411
412 /**
413 * \brief Create a window with the specified position, dimensions, and flags. 364 * \brief Create a window with the specified position, dimensions, and flags.
414 * 365 *
415 * \param title The title of the window, in UTF-8 encoding. 366 * \param title The title of the window, in UTF-8 encoding.
416 * \param x The x position of the window, ::SDL_WINDOWPOS_CENTERED, or 367 * \param x The x position of the window, ::SDL_WINDOWPOS_CENTERED, or
417 * ::SDL_WINDOWPOS_UNDEFINED. 368 * ::SDL_WINDOWPOS_UNDEFINED.