[][src]Struct quad_gl::Texture2D

pub struct Texture2D { /* fields omitted */ }

Texture, data stored in GPU memory

Implementations

impl Texture2D[src]

pub fn from_miniquad_texture(texture: Texture) -> Texture2D[src]

pub fn empty() -> Texture2D[src]

pub fn update(&mut self, ctx: &mut Context, image: &Image)[src]

pub fn width(&self) -> f32[src]

pub fn height(&self) -> f32[src]

pub fn from_file_with_format<'a>(
    ctx: &mut Context,
    bytes: &[u8],
    format: Option<ImageFormat>
) -> Texture2D
[src]

pub fn from_rgba8(
    ctx: &mut Context,
    width: u16,
    height: u16,
    bytes: &[u8]
) -> Texture2D
[src]

pub fn set_filter(&self, ctx: &mut Context, filter_mode: FilterMode)[src]

pub fn raw_miniquad_texture_handle(&self) -> Texture[src]

pub fn grab_screen(&self)[src]

pub fn get_texture_data(&self) -> Image[src]

Trait Implementations

impl Clone for Texture2D[src]

impl Copy for Texture2D[src]

impl Debug for Texture2D[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.