Function fermium::rwops::SDL_RWFromFile[][src]

pub unsafe extern "C" fn SDL_RWFromFile(
    file: *const c_char,
    mode: *const c_char
) -> *mut SDL_RWops
Expand description

Creates a SDL_RWops from a filename and mode string.

  • file supports unicode filenames if it’s a utf8-encoded name given, even if the local OS doesn’t use utf8 encoding for filenames (it’s recoded for you).
  • The mode string works like with unix fopen, basically.
  • Both strings are null-terminated, of course.