Annotated edit history of
SDL_SetGammaRamp(3) version 2, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
2 |
perry |
1 |
SDL_!SetGammaRamp |
|
|
2 |
!!!SDL_!SetGammaRamp |
1 |
perry |
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
SEE ALSO |
|
|
8 |
---- |
|
|
9 |
!!NAME |
|
|
10 |
|
|
|
11 |
|
2 |
perry |
12 |
SDL_!SetGammaRamp- Sets the color gamma lookup tables for the display |
1 |
perry |
13 |
!!SYNOPSIS |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
__#include __ |
|
|
17 |
|
|
|
18 |
|
2 |
perry |
19 |
__int SDL_!SetGammaRamp__(__Uint16 *redtable, Uint16 |
1 |
perry |
20 |
*greentable, Uint16 *bluetable__); |
|
|
21 |
!!DESCRIPTION |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
Sets the gamma lookup tables for the display for each color |
|
|
25 |
component. Each table is an array of 256 Uint16 values, |
|
|
26 |
representing a mapping between the input and output for that |
|
|
27 |
channel. The input is the index into the array, and the |
|
|
28 |
output is the 16-bit gamma value at that index, scaled to |
|
|
29 |
the output color precision. You may pass NULL to any of the |
|
|
30 |
channels to leave them unchanged. |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
This function adjusts the gamma based on lookup tables, you |
|
|
34 |
can also have the gamma calculated based on a |
2 |
perry |
35 |
SDL_!SetGamma''. |
1 |
perry |
36 |
|
|
|
37 |
|
|
|
38 |
Not all display hardware is able to change |
|
|
39 |
gamma. |
|
|
40 |
!!RETURN VALUE |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
Returns -1 on error (or if gamma adjustment is not |
|
|
44 |
supported). |
|
|
45 |
!!SEE ALSO |
|
|
46 |
|
|
|
47 |
|
2 |
perry |
48 |
''SDL_!SetGamma SDL_!GetGammaRamp'' |
1 |
perry |
49 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.