Wiki Page Content

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


CategoryAPI, CategoryPixels

None: SDL_CalculateGammaRamp (last edited 2011-03-22 17:36:04 by SheenaSmith)

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