Wiki Page Content

Differences between revisions 5 and 6
Revision 5 as of 2009-12-12 07:09:03
Size: 1061
Editor: SheenaSmith
Comment: format update
Revision 6 as of 2009-12-13 07:15:49
Size: 1102
Editor: SheenaSmith
Comment: content added
Deletions are marked like this. Additions are marked like this.
Line 26: Line 26:
The pixel format enumeration. The pixel format enumeration; see [[SDL_PixelFormatEnum]] for details.

SDL_MasksToPixelFormatEnum

Use this function to convert a bpp value 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

a bits per pixel value; usually 15, 16, or 32

Rmask

the red mask for the pixel

Gmask

the green mask for the pixel

Bmask

the blue mask for the pixel

Amask

the alpha mask for the pixel

Return Value

The pixel format enumeration; see SDL_PixelFormatEnum for details.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryPixels

None: SDL_MasksToPixelFormatEnum (last edited 2011-03-26 00:23:25 by SheenaSmith)

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