NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
REL="HOME"
TITLE="SDL Library Documentation"
REL="UP"
TITLE="Video"
REL="PREVIOUS"
TITLE="SDL_GetGammaRamp"
HREF="sdlgetgammaramp.html"><
LINK
REL="NEXT"
TITLE="SDL_MapRGB"
HREF="sdlmaprgb.html"><
/HEAD
CLASS="REFENTRY"
BGCOLOR="#FFF8DC"
TEXT="#000000"
LINK="#0000ee"
VLINK="#551a8b"
ALINK="#ff0000"
CLASS="NAVHEADER"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
COLSPAN="3"
ALIGN="center"
>SDL Library Documentation<
/TH
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
HREF="sdlgetgammaramp.html"
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
HREF="sdlmaprgb.html"
ALIGN="LEFT"
NAME="SDLSETGAMMARAMP"
CLASS="REFNAMEDIV"
NAME="AEN1209"
>SDL_SetGammaRamp -- Sets the
color gamma lookup tables
for the display<
/DIV
CLASS="REFSYNOPSISDIV"
NAME="AEN1212"
CLASS="FUNCSYNOPSIS"
NAME="AEN1213"
CLASS="FUNCSYNOPSISINFO"
CLASS="FUNCDEF"
CLASS="FSFUNC"
>
(Uint16 *redtable, Uint16 *greentable, Uint16 *bluetable
);<
/CODE
CLASS="REFSECT1"
NAME="AEN1219"
>Sets the gamma lookup tables for the display for each color component.
Each table is an array of 256 Uint16 values, representing a mapping
between the input and output for that channel. The input is the index
into the array, and the output is the 16-bit gamma value at that index,
scaled to the output color precision. You may pass NULL to any of the
channels to leave them unchanged.<
/P
>This function adjusts the gamma based on lookup tables, you can also
have the gamma calculated based on a "gamma function" parameter with
HREF="sdlsetgamma.html"
>Not all display hardware is able to change gamma.<
/P
CLASS="REFSECT1"
NAME="AEN1225"
>Returns -
1 on error
(or if gamma adjustment is not supported
).<
/P
CLASS="REFSECT1"
NAME="AEN1228"
HREF="sdlsetgamma.html"
>
HREF="sdlgetgammaramp.html"
CLASS="NAVFOOTER"
ALIGN="LEFT"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
WIDTH="33%"
ALIGN="left"
VALIGN="top"
HREF="sdlgetgammaramp.html"
WIDTH="34%"
ALIGN="center"
VALIGN="top"
HREF="index.html"
WIDTH="33%"
ALIGN="right"
VALIGN="top"
HREF="sdlmaprgb.html"
WIDTH="33%"
ALIGN="left"
VALIGN="top"
WIDTH="34%"
ALIGN="center"
VALIGN="top"
HREF="video.html"
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>