Wiki Page Content

Revision 1 as of 2009-11-18 20:41:49

Clear message

SDL_GetRGBA

Use this function to map a pixel value into the RGBA components for a given pixel format.

Syntax

void SDL_GetRGBA(Uint32                 pixel,
                 const SDL_PixelFormat* format,
                 Uint8*                 r,
                 Uint8*                 g,
                 Uint8*                 b,
                 Uint8*                 a)

Function Parameters

pixel

format

r

g

b

a

Code Examples

You can add your code example here

Remarks

You can add useful comments here

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