1SDL_SetGamma(3) SDL API Reference SDL_SetGamma(3)
2
3
4
6 SDL_SetGamma- Sets the color gamma function for the display
7
9 #include "SDL.h"
10
11 int SDL_SetGamma(float redgamma, float greengamma, float bluegamma);
12
14 Sets the "gamma function" for the display of each color component.
15 Gamma controls the brightness/contrast of colors displayed on the
16 screen. A gamma value of 1.0 is identity (i.e., no adjustment is made).
17
18 This function adjusts the gamma based on the "gamma function" parameā
19 ter, you can directly specify lookup tables for gamma adjustment with
20 SDL_SetGammaRamp.
21
22 Not all display hardware is able to change gamma.
23
25 Returns -1 on error (or if gamma adjustment is not supported).
26
28 SDL_GetGammaRamp SDL_SetGammaRamp
29
30
31
32SDL Tue 11 Sep 2001, 23:01 SDL_SetGamma(3)