Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-02-26 05:42:12
Size: 1305
Editor: SheenaSmith
Comment: removed content (deprecated)
Revision 3 as of 2010-02-28 05:48:00
Size: 1306
Editor: SheenaSmith
Comment: minor change
Deletions are marked like this. Additions are marked like this.
Line 31: Line 31:
The ,,\c,, '''flags''' parameter is passed to [[SDL_CreateRGBSurface]]() and has those semantics. You can also pass SDL_RLEACCEL in the '''flags''' parameter and SDL will try to RLE accelerate colorkey and alpha blits in the resulting surface. The '''flags''' parameter is passed to [[SDL_CreateRGBSurface]]() and has those semantics. You can also pass SDL_RLEACCEL in the '''flags''' parameter and SDL will try to RLE accelerate colorkey and alpha blits in the resulting surface.
Line 34: Line 34:
 .[[SDL_DisplayFormat]]  .[[SDL_OtherFunction]] (none?)

DRAFT

SDL_ConvertSurface

Use this function to create a new surface of the specified format, and then copy and map the given surface to it so the blit of the converted surface will be as fast as possible.

Syntax

SDL_Surface* SDL_ConvertSurface(SDL_Surface*     src,
                                SDL_PixelFormat* fmt,
                                Uint32           flags)

Function Parameters

src

the surface to copy and map from

fmt

the SDL_PixelFormat to apply

flags

;see Remarks for details

Return Value

Returns the new surface, or NULL if this function fails; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

The flags parameter is passed to SDL_CreateRGBSurface() and has those semantics. You can also pass SDL_RLEACCEL in the flags parameter and SDL will try to RLE accelerate colorkey and alpha blits in the resulting surface.


CategoryAPI, CategorySurface

None: SDL_ConvertSurface (last edited 2020-03-10 19:12:34 by ChrisBush)

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