Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2010-10-10 22:08:21
Size: 1113
Editor: SheenaSmith
Comment: update content - pointers, structs
Revision 5 as of 2010-12-22 00:38:26
Size: 1131
Editor: SheenaSmith
Comment: update formatting - enums, structs, the/an
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
||'''surface'''||the surface to ,,update,, ^query^|| ||'''surface'''||the [[SDL_Surface]] structure to ,,update,, ^query^||

DRAFT

SDL_GetColorKey

Use this function to get the color key (transparent pixel) in a blittable surface.

Syntax

int SDL_GetColorKey(SDL_Surface* surface,
                    Uint32*      key)

Function Parameters

surface

the SDL_Surface structure to update query

key

a pointer filled in with the transparent pixel in the native surface format

Return Value

Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

If the surface is not valid or colorkey is not enabled it returns -1. green

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategorySurface

None: SDL_GetColorKey (last edited 2011-01-07 18:07:52 by SheenaSmith)

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