pub unsafe fn load_image_anim(filename: impl AsRef<str>, frames: *mut i32) -> Self {
        let filename = ffi::str_to_cstring(filename);

        // SAFETY: ffi
        // SAFETY: Since ffi::LoadImageAnim makes a temporary ffi::Image and
        // ffi::Image has no destructor, making Image with from_raw satisfies
        // all conditions of safety.
        Image::from_raw(ffi::LoadImageAnim(filename.as_ptr(), frames))
    }
/// This function is unsafe because it takes a raw pointer as its parameter
This function is unsafe because it takes a raw pointer as its parameter
This function is unsafe because it takes a raw pointer as its parameter
pub unsafe fn load_image_anim(filename: impl AsRef<str>, frames: *mut i32) -> Self {
        let filename = ffi::str_to_cstring(filename);
        // SAFETY: ffi
        // SAFETY: Since ffi::LoadImageAnim makes a temporary ffi::Image and
        // ffi::Image has no destructor, making Image with from_raw satisfies
        // all conditions of safety.
        Image::from_raw(ffi::LoadImageAnim(filename.as_ptr(), frames))
    }
pub unsafe fn load_image_anim ( filename : impl AsRef < str > , frames : * mut i32 ) -> Self { let filename = ffi :: str_to_cstring ( filename ) ; // SAFETY: ffi // SAFETY: Since ffi::LoadImageAnim makes a temporary ffi::Image and // ffi::Image has no destructor, making Image with from_raw satisfies // all conditions of safety. Image :: from_raw ( ffi :: LoadImageAnim ( filename . as_ptr ( ) , frames ) ) }
This function is unsafe because it takes a raw pointer as its parameter
This function is unsafe because it takes a raw pointer as its parameter
filename
impl AsRef<str>
frames
*mut i32