[−][src]Struct oxydyze::util::renderer::SdlTextures
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]
&mut self,
format: PixelFormat,
(w, h): (u32, u32)
) -> TextureId
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
impl !RefUnwindSafe for SdlTextures
impl !Send for SdlTextures
impl !Sync for SdlTextures
impl Unpin for SdlTextures
impl !UnwindSafe for SdlTextures
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<R> Resource for R where
R: 'static + Any,
[src]
R: 'static + Any,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,