[][src]Struct oxydyze::util::renderer::SdlTextures

pub struct SdlTextures { /* fields omitted */ }

Methods

impl SdlTextures[src]

pub fn new(texture_creator: TextureCreator<WindowContext>) -> SdlTextures[src]

pub fn new_texture(
    &mut self,
    format: PixelFormat,
    (w, h): (u32, u32)
) -> TextureId
[src]

pub fn update(&mut self, id: TextureId, pixels: &[u8], pitch: usize)[src]

pub fn texture(&self, id: TextureId) -> Option<&Texture>[src]

pub fn texture_creator(&self) -> &TextureCreator<WindowContext>[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<R> Resource for R where
    R: 'static + Any
[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.