Function fermium::surface::SDL_GetColorKey[][src]

pub unsafe extern "C" fn SDL_GetColorKey(
    surface: *mut SDL_Surface,
    key: *mut u32
) -> c_int

Gets the color key (transparent pixel) in a blit-able surface.

  • surface: The surface to update
  • key: A pointer filled in with the transparent pixel in the native surface format

Return: 0 on success, or -1 if the surface is not valid or colorkey is not enabled.