[−][src]Function sdl2_sys::SDL_SetColorKey
pub unsafe extern "C" fn SDL_SetColorKey(
surface: *mut SDL_Surface,
flag: c_int,
key: Uint32
) -> c_int
\brief Sets the color key (transparent pixel) in a blittable surface.
\param surface The surface to update \param flag Non-zero to enable colorkey and 0 to disable colorkey \param key The transparent pixel in the native surface format
\return 0 on success, or -1 if the surface is not valid
You can pass SDL_RLEACCEL to enable RLE accelerated blits.