pub fn img_ptr(&self) -> *const std::ffi::c_void {
        match &self.image {
            TextureData::U8(a) => a.as_ptr() as _,
            TextureData::U16(a) => a.as_ptr() as _,
        }
    }
/// get a void pointer to the image data for loading into graphics apis
get a void pointer to the image data for loading into graphics apis
get a void pointer to the image data for loading into graphics apis
pub fn img_ptr(&self) -> *const std::ffi::c_void {
        match &self.image {
            TextureData::U8(a) => a.as_ptr() as _,
            TextureData::U16(a) => a.as_ptr() as _,
        }
    }
pub fn img_ptr ( & self ) -> * const std :: ffi :: c_void { match & self . image { TextureData :: U8 ( a ) => a . as_ptr ( ) as _ , TextureData :: U16 ( a ) => a . as_ptr ( ) as _ , } }
get a void pointer to the image data for loading into graphics apis
get a void pointer to the image data for loading into graphics apis
&self
&self