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 RefUnwindSafe for Image
impl UnwindSafe for Image
impl UnwindSafe for Image