Wiki Page Content

Revision 1 as of 2009-11-18 21:02:27

Clear message

SDL_MasksToPixelFormatEnum

Use this function to convert a bpp and RGBA masks to an enumerated pixel format.

Syntax

Uint32 SDL_MasksToPixelFormatEnum(int    bpp,
                                  Uint32 Rmask,
                                  Uint32 Gmask,
                                  Uint32 Bmask,
                                  Uint32 Amask)

Function Parameters

bpp

Rmask

Gmask

Bmask

Amask

Return Value

The pixel format, or ::SDL_PIXELFORMAT_UNKNOWN if the conversion wasn't possible.

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