|
⇤ ← Revision 1 as of 2009-11-18 20:36:42
Size: 811
Comment: create page, add content
|
Size: 814
Comment: marked important question
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 6: | Line 6: |
| Get RGB values from a pixel in the specified pixel format. | ??Get RGB values from a pixel in the specified pixel format?? |
SDL_GetRGB
Use this function to map a pixel value into the RGB components for a given pixel format. ??Get RGB values from a pixel in the specified pixel format??
Syntax
void SDL_GetRGB(Uint32 pixel,
const SDL_PixelFormat* format,
Uint8* r,
Uint8* g,
Uint8* b)
Function Parameters
pixel |
|
format |
|
r |
|
g |
|
b |
Code Examples
You can add your code example here
Remarks
You can add useful comments here
