1SDL_SetGammaRamp(3)            SDL API Reference           SDL_SetGammaRamp(3)
2
3
4

NAME

6       SDL_SetGammaRamp - Sets the color gamma lookup tables for the display
7

SYNOPSIS

9       #include "SDL.h"
10
11       int   SDL_SetGammaRamp(Uint16  *redtable,  Uint16  *greentable,  Uint16
12       *bluetable);
13

DESCRIPTION

15       Sets the gamma lookup tables for the display for each color  component.
16       Each  table  is  an  array of 256 Uint16 values, representing a mapping
17       between the input and output for that channel. The input is  the  index
18       into the array, and the output is the 16-bit gamma value at that index,
19       scaled to the output color precision. You may pass NULL to any  of  the
20       channels to leave them unchanged.
21
22       This  function  adjusts  the gamma based on lookup tables, you can also
23       have the gamma calculated based on a "gamma  function"  parameter  with
24       SDL_SetGamma.
25
26       Not all display hardware is able to change gamma.
27

RETURN VALUE

29       Returns -1 on error (or if gamma adjustment is not supported).
30

SEE ALSO

32       SDL_SetGamma SDL_GetGammaRamp
33
34
35
36SDL                         Tue 11 Sep 2001, 23:01         SDL_SetGammaRamp(3)
Impressum