Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5131 clevermous 1
2
>
3
>
4
>SDL_SetGammaRamp
5
>
6
NAME="GENERATOR"
7
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
8
">
9
REL="HOME"
10
TITLE="SDL Library Documentation"
11
HREF="index.html">
12
REL="UP"
13
TITLE="Video"
14
HREF="video.html">
15
REL="PREVIOUS"
16
TITLE="SDL_GetGammaRamp"
17
HREF="sdlgetgammaramp.html">
18
REL="NEXT"
19
TITLE="SDL_MapRGB"
20
HREF="sdlmaprgb.html">
21
>
22
CLASS="REFENTRY"
23
BGCOLOR="#FFF8DC"
24
TEXT="#000000"
25
LINK="#0000ee"
26
VLINK="#551a8b"
27
ALINK="#ff0000"
28
>
29
CLASS="NAVHEADER"
30
>
31
WIDTH="100%"
32
BORDER="0"
33
CELLPADDING="0"
34
CELLSPACING="0"
35
>
36
>
37
COLSPAN="3"
38
ALIGN="center"
39
>SDL Library Documentation
40
>
41
>
42
>
43
WIDTH="10%"
44
ALIGN="left"
45
VALIGN="bottom"
46
>
47
HREF="sdlgetgammaramp.html"
48
>Prev
49
>
50
>
51
WIDTH="80%"
52
ALIGN="center"
53
VALIGN="bottom"
54
>
55
>
56
WIDTH="10%"
57
ALIGN="right"
58
VALIGN="bottom"
59
>
60
HREF="sdlmaprgb.html"
61
>Next
62
>
63
>
64
>
65
>
66
ALIGN="LEFT"
67
WIDTH="100%">
68
>
69
>
70
NAME="SDLSETGAMMARAMP"
71
>SDL_SetGammaRamp
72
>
73
>
74
CLASS="REFNAMEDIV"
75
>
76
NAME="AEN1209"
77
>
78
>
79
>Name
80
>SDL_SetGammaRamp -- Sets the color gamma lookup tables for the display
81
>
82
CLASS="REFSYNOPSISDIV"
83
>
84
NAME="AEN1212"
85
>
86
>
87
>Synopsis
88
>
89
CLASS="FUNCSYNOPSIS"
90
>
91
NAME="AEN1213"
92
>
93
>
94
>
95
>
96
CLASS="FUNCSYNOPSISINFO"
97
>#include "SDL.h"
98
>
99
>
100
>
101
CLASS="FUNCDEF"
102
>int 
103
CLASS="FSFUNC"
104
>SDL_SetGammaRamp
105
>
106
>(Uint16 *redtable, Uint16 *greentable, Uint16 *bluetable);
107
>
108
>
109
>
110
>
111
>
112
>
113
CLASS="REFSECT1"
114
>
115
NAME="AEN1219"
116
>
117
>
118
>Description
119
>
120
>Sets the gamma lookup tables for the display for each color component.
121
Each table is an array of 256 Uint16 values, representing a mapping
122
between the input and output for that channel. The input is the index
123
into the array, and the output is the 16-bit gamma value at that index,
124
scaled to the output color precision. You may pass NULL to any of the
125
channels to leave them unchanged.
126
>
127
>This function adjusts the gamma based on lookup tables, you can also
128
have the gamma calculated based on a "gamma function" parameter with
129
130
HREF="sdlsetgamma.html"
131
>SDL_SetGamma
132
>.
133
>
134
>Not all display hardware is able to change gamma.
135
>
136
>
137
CLASS="REFSECT1"
138
>
139
NAME="AEN1225"
140
>
141
>
142
>Return Value
143
>
144
>Returns -1 on error (or if gamma adjustment is not supported).
145
>
146
>
147
CLASS="REFSECT1"
148
>
149
NAME="AEN1228"
150
>
151
>
152
>See Also
153
>
154
>
155
HREF="sdlsetgamma.html"
156
>SDL_SetGamma
157
>
158
159
HREF="sdlgetgammaramp.html"
160
>SDL_GetGammaRamp
161
>
162
>
163
>
164
CLASS="NAVFOOTER"
165
>
166
ALIGN="LEFT"
167
WIDTH="100%">
168
WIDTH="100%"
169
BORDER="0"
170
CELLPADDING="0"
171
CELLSPACING="0"
172
>
173
>
174
WIDTH="33%"
175
ALIGN="left"
176
VALIGN="top"
177
>
178
HREF="sdlgetgammaramp.html"
179
>Prev
180
>
181
>
182
WIDTH="34%"
183
ALIGN="center"
184
VALIGN="top"
185
>
186
HREF="index.html"
187
>Home
188
>
189
>
190
WIDTH="33%"
191
ALIGN="right"
192
VALIGN="top"
193
>
194
HREF="sdlmaprgb.html"
195
>Next
196
>
197
>
198
>
199
>
200
WIDTH="33%"
201
ALIGN="left"
202
VALIGN="top"
203
>SDL_GetGammaRamp
204
>
205
WIDTH="34%"
206
ALIGN="center"
207
VALIGN="top"
208
>
209
HREF="video.html"
210
>Up
211
>
212
>
213
WIDTH="33%"
214
ALIGN="right"
215
VALIGN="top"
216
>SDL_MapRGB
217
>
218
>
219
>
220
>
221
>
222
>