Struct rin_scene::renderer::TexturesPool[][src]

pub struct TexturesPool { /* fields omitted */ }

Implementations

impl TexturesPool[src]

pub fn new() -> TexturesPool[src]

pub fn insert_texture(&mut self, texture: Texture) -> TextureRef[src]

pub fn insert_cubemap(&mut self, cubemap: CubeMap) -> CubemapRef[src]

pub fn insert_sampler<R>(
    &mut self,
    sampler: Sampler,
    renderer: &Context<'_, R>
) -> SamplerRef where
    R: RenderSurface
[src]

pub fn remove_texture(&mut self, texture: TextureRef) -> Option<Texture>[src]

pub fn remove_cubemap(&mut self, cubemap: CubemapRef) -> Option<CubeMap>[src]

pub fn remove_sampler(&mut self, sampler: SamplerRef) -> Option<Sampler>[src]

pub fn insert_named_texture(
    &mut self,
    name: &str,
    texture: Texture
) -> TextureRef
[src]

pub fn insert_named_cubemap(
    &mut self,
    name: &str,
    cubemap: CubeMap
) -> CubemapRef
[src]

pub fn insert_named_sampler<R: RenderSurface>(
    &mut self,
    name: &str,
    sampler: Sampler,
    renderer: &Context<'_, R>
) -> SamplerRef
[src]

pub fn find_named_texture(&self, name: &str) -> Option<TextureRef>[src]

pub fn find_named_cubemap(&self, name: &str) -> Option<CubemapRef>[src]

pub fn find_named_sampler(&self, name: &str) -> Option<SamplerRef>[src]

pub fn insert_texture_from_data_format<T, R>(
    &mut self,
    format: LoadDataFormat,
    creation_flags: TextureCreationFlags,
    data: &[T],
    renderer: &Context<'_, R>
) -> Result<TextureRef, Error> where
    T: 'static,
    R: RenderSurface
[src]

pub fn insert_image<I, R>(
    &mut self,
    img: &I,
    creation_flags: TextureCreationFlags,
    renderer: &Context<'_, R>
) -> Result<TextureRef> where
    I: Image + Clone,
    R: RenderSurface
[src]

pub fn insert_named_texture_from_data_format<R, T>(
    &mut self,
    name: &str,
    format: LoadDataFormat,
    creation_flags: TextureCreationFlags,
    data: &[T],
    renderer: &Context<'_, R>
) -> Result<TextureRef> where
    T: 'static,
    R: RenderSurface
[src]

pub fn insert_named_image<I, R>(
    &mut self,
    name: &str,
    img: &I,
    creation_flags: TextureCreationFlags,
    renderer: &Context<'_, R>
) -> Result<TextureRef> where
    I: Image + Clone,
    R: RenderSurface
[src]

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

pub fn texture_mut(&mut self, textureref: TextureRef) -> Option<&mut Texture>[src]

pub fn cubemap(&self, cubemapref: CubemapRef) -> Option<&CubeMap>[src]

pub fn cubemap_mut(&mut self, cubemapref: CubemapRef) -> Option<&mut CubeMap>[src]

pub fn load_image<P, R>(
    &mut self,
    path: P,
    creation_flags: TextureCreationFlags,
    renderer: &Context<'_, R>
) -> Result<TextureRef> where
    P: AsRef<Path>,
    R: RenderSurface
[src]

pub fn load_cubemap<P>(
    &mut self,
    path: P,
    creation_flags: TextureCreationFlags,
    renderer: &Renderer<'_>
) -> Result<CubemapRef> where
    P: AsRef<Path>, 
[src]

pub fn load_equirectangular_cubemap<P>(
    &mut self,
    path: P,
    creation_flags: TextureCreationFlags,
    color_format: ColorFormat,
    renderer: &Renderer<'_>
) -> Result<CubemapRef> where
    P: AsRef<Path>, 
[src]

pub fn load_equirectangular_levels_cubemap<P>(
    &mut self,
    paths: &[P],
    creation_flags: TextureCreationFlags,
    color_format: ColorFormat,
    renderer: &Renderer<'_>
) -> Result<CubemapRef> where
    P: AsRef<Path>, 
[src]

Trait Implementations

impl Index<CubemapRef> for TexturesPool[src]

type Output = CubeMap

The returned type after indexing.

impl Index<SamplerRef> for TexturesPool[src]

type Output = Sampler

The returned type after indexing.

impl Index<TextureRef> for TexturesPool[src]

type Output = Texture

The returned type after indexing.

impl IndexMut<CubemapRef> for TexturesPool[src]

impl IndexMut<SamplerRef> for TexturesPool[src]

impl IndexMut<TextureRef> for TexturesPool[src]

Auto Trait Implementations

impl !RefUnwindSafe for TexturesPool

impl !Send for TexturesPool

impl !Sync for TexturesPool

impl Unpin for TexturesPool

impl !UnwindSafe for TexturesPool

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

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

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

impl<T> Downcast for T where
    T: Any
[src]

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

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

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]