Struct solstice::image::Image [−][src]
pub struct Image { /* fields omitted */ }
Implementations
impl Image
[src]
impl Image
[src]pub fn new(
ctx: &mut Context,
texture_type: TextureType,
format: PixelFormat,
width: u32,
height: u32,
settings: Settings
) -> Result<Self, GraphicsError>
[src]
ctx: &mut Context,
texture_type: TextureType,
format: PixelFormat,
width: u32,
height: u32,
settings: Settings
) -> Result<Self, GraphicsError>
pub fn with_data(
ctx: &mut Context,
texture_type: TextureType,
format: PixelFormat,
width: u32,
height: u32,
data: &[u8],
settings: Settings
) -> Result<Self, GraphicsError>
[src]
ctx: &mut Context,
texture_type: TextureType,
format: PixelFormat,
width: u32,
height: u32,
data: &[u8],
settings: Settings
) -> Result<Self, GraphicsError>
pub fn set_texture_info(&mut self, texture_info: TextureInfo)
[src]
Trait Implementations
impl Texture for Image
[src]
impl Texture for Image
[src]fn get_texture_key(&self) -> TextureKey
[src]
fn get_texture_type(&self) -> TextureType
[src]
fn get_texture_info(&self) -> TextureInfo
[src]
impl Texture for &Image
[src]
impl Texture for &Image
[src]fn get_texture_key(&self) -> TextureKey
[src]
fn get_texture_type(&self) -> TextureType
[src]
fn get_texture_info(&self) -> TextureInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more