Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2011-03-18 17:57:38
Size: 1314
Editor: SheenaSmith
Comment: create page - 3/15 ef1db08c40ac (3/11 006883d5fa51)
Revision 2 as of 2011-03-18 18:33:51
Size: 1623
Editor: SheenaSmith
Comment: update content - change param descriptions
Deletions are marked like this. Additions are marked like this.
Line 20: Line 20:
||'''red'''||the red gamma ramp||
||'''green'''||the green gamma ramp||
||'''blue'''||the blue gamma ramp||
||'''red'''||a pointer to the 256 element array of 16-bit quantities filled in with the translation table for the red channel, or NULL||
||'''green'''||a pointer to the 256 element array of 16-bit quantities filled in with the translation table for the green channel, or NULL||
||'''blue'''||a pointer to the 256 element array of 16-bit quantities filled in with the translation table for the blue channel, or NULL||

DRAFT

SDL_SetWindowGammaRamp

Use this function to set the gamma ramp for a window.

Syntax

int SDL_SetWindowGammaRamp(SDL_Window*   window,
                           const Uint16* red,
                           const Uint16* green,
                           const Uint16* blue)

Function Parameters

window

the window to change

red

a pointer to the 256 element array of 16-bit quantities filled in with the translation table for the red channel, or NULL

green

a pointer to the 256 element array of 16-bit quantities filled in with the translation table for the green channel, or NULL

blue

a pointer to the 256 element array of 16-bit quantities filled in with the translation table for the blue channel, or NULL

Return Value

Returns 0 on success, or a negative error code on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

Set the gamma translation table for the red, green, and blue channels of the video hardware. Each table is an array of 256 16-bit quantities, representing a mapping between the input and output for that channel. The input is the index into the array, and the output is the 16-bit gamma value at that index, scaled to the output color precision.


CategoryAPI, CategoryVideo

None: SDL_SetWindowGammaRamp (last edited 2014-06-28 22:11:09 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit