Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2010-09-22 18:18:27
Size: 1086
Editor: SheenaSmith
Comment: update content - standard return value
Revision 4 as of 2010-10-11 04:40:31
Size: 997
Editor: SheenaSmith
Comment: update content - pointers, structs
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
||'''surface'''||a pointer to the [[SDL_Surface]] to set|| ||'''surface'''||the [[SDL_Surface]] to set||
Line 31: Line 31:
<<Color2(purple,This function returns -1 if the surface is not valid.)>>

DRAFT

SDL_SetSurfaceRLE

Use this function to set the RLE acceleration hint for a surface.

Syntax

int SDL_SetSurfaceRLE(SDL_Surface* surface,
                      int          flag)

Function Parameters

surface

the SDL_Surface to set

flag

0 to disable?, non-zero to enable? RLE acceleration

Return Value

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

Code Examples

You can add your code example here

Remarks

If RLE is enabled, colorkey and alpha blending blits are much faster, but the surface must be locked before directly accessing the pixels.


CategoryAPI, CategorySurface

None: SDL_SetSurfaceRLE (last edited 2011-01-11 23:48:52 by SheenaSmith)

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