pub struct Texture { /* private fields */ }Implementations§
Source§impl Texture
impl Texture
pub fn from_url(path: impl AsRef<Path>, name: Option<&str>) -> Result<Self>
pub fn new_checkerboard( divisions: f32, name: Option<&str>, dimensions: [i32; 2], channel_count: usize, channel_encoding: TextureChannelEncoding, color1: [f32; 4], color2: [f32; 4], ) -> Result<Self>
pub fn info(&self) -> Result<TextureInfo>
pub fn write_to_url(&self, path: impl AsRef<Path>) -> Result<()>
pub fn texel_data_top_left(&self) -> Vec<u8> ⓘ
pub fn texel_data_bottom_left(&self) -> Vec<u8> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Texture
impl RefUnwindSafe for Texture
impl !Send for Texture
impl !Sync for Texture
impl Unpin for Texture
impl UnsafeUnpin for Texture
impl UnwindSafe for Texture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more