Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2011-03-18 18:34:18
Size: 1347
Editor: SheenaSmith
Comment: create page - 3/15 ef1db08c40ac (3/11 006883d5fa51)
Revision 2 as of 2011-03-22 17:57:13
Size: 1200
Editor: SheenaSmith
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 20: Line 19:
||'''red'''||a pointer to ,,a,, ^the^ 256 element array of 16-bit quantities ,,to hold,, ^holding^ the translation table for the red channel, or NULL||
||'''green'''||a pointer to ,,a,, ^the^ 256 element array of 16-bit quantities ,,to hold,, ^holding^ the translation table for the green channel, or NULL||
||'''blue'''||a pointer to ,,a,, ^the^ 256 element array of 16-bit quantities ,,to hold,, ^holding^ the translation table for the blue channel, or NULL||
||'''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||

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

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