Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2011-05-17 18:02:22
Size: 1199
Editor: SheenaSmith
Comment: minor change
Revision 4 as of 2014-06-27 00:39:41
Size: 1533
Editor: AdamMil
Comment: gets the display gamma ramp, not the window gamma ramp
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
Use this function to get the gamma ramp for a window. Use this function to get the gamma ramp for the display that owns a given window.
Line 18: Line 18:
||'''window'''||the window to query|| ||'''window'''||the window used to select the display whose gamma ramp will be queried||
Line 32: Line 32:
''You can add useful comments here'' Despite the name and signature, this method retrieves the gamma ramp of the entire display, not an individual window. A window is considered to be owned by the display that contains the window's center pixel. (The index of this display can be retrieved using [[SDL_GetWindowDisplayIndex]].)

SDL_GetWindowGammaRamp

Use this function to get the gamma ramp for the display that owns a given window.

Syntax

int SDL_GetWindowGammaRamp(SDL_Window* window,
                           Uint16*     red,
                           Uint16*     green,
                           Uint16*     blue)

Function Parameters

window

the window used to select the display whose gamma ramp will be queried

red

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

green

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

blue

a 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

Despite the name and signature, this method retrieves the gamma ramp of the entire display, not an individual window. A window is considered to be owned by the display that contains the window's center pixel. (The index of this display can be retrieved using SDL_GetWindowDisplayIndex.)


CategoryAPI, CategoryVideo

None: SDL_GetWindowGammaRamp (last edited 2014-06-28 22:10:34 by PhilippWiesemann)

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