[][src]Struct golem::Texture

pub struct Texture { /* fields omitted */ }

Methods

impl Texture[src]

pub fn new(ctx: &Context) -> Result<Texture, GolemError>[src]

pub fn bind(ctx: &Context, tex: Option<&Texture>, bind_point: u32)[src]

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

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

pub fn set_image(
    &mut self,
    data: Option<&[u8]>,
    width: u32,
    height: u32,
    color: ColorFormat
)
[src]

pub fn set_subimage(
    &self,
    data: &[u8],
    x: u32,
    y: u32,
    width: u32,
    height: u32,
    color: ColorFormat
)
[src]

pub fn set_minification(&self, min: TextureFilter)[src]

pub fn set_magnification(&self, max: TextureFilter)[src]

pub fn set_wrap_h(&self, wrap: TextureWrap)[src]

pub fn set_wrap_v(&self, wrap: TextureWrap)[src]

Trait Implementations

impl Drop for Texture[src]

Auto Trait Implementations

impl !RefUnwindSafe for Texture

impl !Send for Texture

impl !Sync for Texture

impl Unpin for Texture

impl !UnwindSafe for Texture

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, 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.