|
⇤ ← Revision 1 as of 2011-03-17 21:03:01
Size: 811
Comment: create page - 3/15 ef1db08c40ac (3/11 006883d5fa51)
|
← Revision 2 as of 2011-03-22 17:36:04 ⇥
Size: 720
Comment: update content - w/ Sam; remove draft
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| ||<tablewidth="100%" style="color: #FF0000;" :> DRAFT|| | |
| Line 17: | Line 16: |
| ||'''gamma'''||^a gamma value between 0.0 (black) and 1.0 (identity)^|| ||'''ramp'''||^a pointer to the calculated gamma ramp array^|| |
||'''gamma'''||a gamma value where 0.0 is black and 1.0 is identity|| ||'''ramp'''||an array of 256 values filled in with the gamma ramp|| |
| Line 29: | Line 28: |
| .[[SDL_GetWindowGammaRamp]] ??? .[[SDL_SetWindowGammaRamp]] ??? |
.[[SDL_SetWindowGammaRamp]] |
SDL_CalculateGammaRamp
Use this function to calculate a 256 entry gamma ramp for a gamma value.
Syntax
void SDL_CalculateGammaRamp(float gamma,
Uint16* ramp)
Function Parameters
gamma |
a gamma value where 0.0 is black and 1.0 is identity |
ramp |
an array of 256 values filled in with the gamma ramp |
Code Examples
You can add your code example here
Remarks
You can add useful comments here
