Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5131 clevermous 1
2
>
3
>
4
>SDL_SetGamma
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_SetPalette"
17
HREF="sdlsetpalette.html">
18
REL="NEXT"
19
TITLE="SDL_GetGammaRamp"
20
HREF="sdlgetgammaramp.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="sdlsetpalette.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="sdlgetgammaramp.html"
61
>Next
62
>
63
>
64
>
65
>
66
ALIGN="LEFT"
67
WIDTH="100%">
68
>
69
>
70
NAME="SDLSETGAMMA"
71
>SDL_SetGamma
72
>
73
>
74
CLASS="REFNAMEDIV"
75
>
76
NAME="AEN1154"
77
>
78
>
79
>Name
80
>SDL_SetGamma -- Sets the color gamma function for the display
81
>
82
CLASS="REFSYNOPSISDIV"
83
>
84
NAME="AEN1157"
85
>
86
>
87
>Synopsis
88
>
89
CLASS="FUNCSYNOPSIS"
90
>
91
NAME="AEN1158"
92
>
93
>
94
>
95
>
96
CLASS="FUNCSYNOPSISINFO"
97
>#include "SDL.h"
98
>
99
>
100
>
101
CLASS="FUNCDEF"
102
>int 
103
CLASS="FSFUNC"
104
>SDL_SetGamma
105
>
106
>(float redgamma, float greengamma, float bluegamma);
107
>
108
>
109
>
110
>
111
>
112
>
113
CLASS="REFSECT1"
114
>
115
NAME="AEN1164"
116
>
117
>
118
>Description
119
>
120
>Sets the "gamma function" for the display of each color component.  Gamma
121
controls the brightness/contrast of colors displayed on the screen.
122
A gamma value of 
123
CLASS="CONSTANT"
124
>1.0
125
> is identity (i.e., no adjustment
126
is made).
127
>
128
>This function adjusts the gamma based on the "gamma function" parameter,
129
you can directly specify lookup tables for gamma adjustment with
130
131
HREF="sdlsetgammaramp.html"
132
>SDL_SetGammaRamp
133
>.
134
>
135
>Not all display hardware is able to change gamma.
136
>
137
>
138
CLASS="REFSECT1"
139
>
140
NAME="AEN1171"
141
>
142
>
143
>Return Value
144
>
145
>Returns -1 on error (or if gamma adjustment is not supported).
146
>
147
>
148
CLASS="REFSECT1"
149
>
150
NAME="AEN1174"
151
>
152
>
153
>See Also
154
>
155
>
156
HREF="sdlgetgammaramp.html"
157
>SDL_GetGammaRamp
158
>
159
160
HREF="sdlsetgammaramp.html"
161
>SDL_SetGammaRamp
162
>
163
>
164
>
165
CLASS="NAVFOOTER"
166
>
167
ALIGN="LEFT"
168
WIDTH="100%">
169
WIDTH="100%"
170
BORDER="0"
171
CELLPADDING="0"
172
CELLSPACING="0"
173
>
174
>
175
WIDTH="33%"
176
ALIGN="left"
177
VALIGN="top"
178
>
179
HREF="sdlsetpalette.html"
180
>Prev
181
>
182
>
183
WIDTH="34%"
184
ALIGN="center"
185
VALIGN="top"
186
>
187
HREF="index.html"
188
>Home
189
>
190
>
191
WIDTH="33%"
192
ALIGN="right"
193
VALIGN="top"
194
>
195
HREF="sdlgetgammaramp.html"
196
>Next
197
>
198
>
199
>
200
>
201
WIDTH="33%"
202
ALIGN="left"
203
VALIGN="top"
204
>SDL_SetPalette
205
>
206
WIDTH="34%"
207
ALIGN="center"
208
VALIGN="top"
209
>
210
HREF="video.html"
211
>Up
212
>
213
>
214
WIDTH="33%"
215
ALIGN="right"
216
VALIGN="top"
217
>SDL_GetGammaRamp
218
>
219
>
220
>
221
>
222
>
223
>