Wiki Page Content

Revision 1 as of 2009-11-18 20:48:06

Clear message

SDL_MapRGB

Use this function to map an RGB triple to an opaque pixel value for a given pixel format.

Syntax

Uint32 SDL_MapRGB(const SDL_PixelFormat* format,
                  Uint8                  r, 
                  Uint8                  g, 
                  Uint8                  b)

Function Parameters

format

r

g

b

Return Value

Code Examples

You can add your code example here

Remarks

You can add useful comments here

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