Surface.optimizeRLE

Use this function to set the RLE acceleration hint for a surface. RLE (Run-Length-Encoding) is a way of compressing data. If RLE is enabled, color key and alpha blending blits are much faster, but the surface must be locked before directly accessing the pixels.

struct Surface
bool
optimizeRLE
(
bool enable
)

Return Value

Type: bool

whether the call succeeded or not

Meta