Wiki Page Content

Revision 3 as of 2011-05-17 18:02:22

Clear message

SDL_GetWindowGammaRamp

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

Syntax

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

Function Parameters

window

the window to query

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

You can add useful comments here


CategoryAPI, CategoryVideo

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