Struct rin::scene::renderer::TexturesPool [−][src]
pub struct TexturesPool { /* fields omitted */ }Implementations
impl TexturesPool[src]
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]
&mut self,
sampler: Sampler,
renderer: &Context<'_, R>
) -> SamplerRef where
R: RenderSurface,
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]
&mut self,
name: &str,
texture: Texture
) -> TextureRef
pub fn insert_named_cubemap(
&mut self,
name: &str,
cubemap: CubeMap
) -> CubemapRef[src]
&mut self,
name: &str,
cubemap: CubeMap
) -> CubemapRef
pub fn insert_named_sampler<R>(
&mut self,
name: &str,
sampler: Sampler,
renderer: &Context<'_, R>
) -> SamplerRef where
R: RenderSurface, [src]
&mut self,
name: &str,
sampler: Sampler,
renderer: &Context<'_, R>
) -> SamplerRef where
R: RenderSurface,
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]
&mut self,
format: LoadDataFormat,
creation_flags: TextureCreationFlags,
data: &[T],
renderer: &Context<'_, R>
) -> Result<TextureRef, Error> where
T: 'static,
R: RenderSurface,
pub fn insert_image<I, R>(
&mut self,
img: &I,
creation_flags: TextureCreationFlags,
renderer: &Context<'_, R>
) -> Result<TextureRef, Error> where
I: Image + Clone,
R: RenderSurface, [src]
&mut self,
img: &I,
creation_flags: TextureCreationFlags,
renderer: &Context<'_, R>
) -> Result<TextureRef, Error> where
I: Image + Clone,
R: RenderSurface,
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, Error> where
T: 'static,
R: RenderSurface, [src]
&mut self,
name: &str,
format: LoadDataFormat,
creation_flags: TextureCreationFlags,
data: &[T],
renderer: &Context<'_, R>
) -> Result<TextureRef, Error> where
T: 'static,
R: RenderSurface,
pub fn insert_named_image<I, R>(
&mut self,
name: &str,
img: &I,
creation_flags: TextureCreationFlags,
renderer: &Context<'_, R>
) -> Result<TextureRef, Error> where
I: Image + Clone,
R: RenderSurface, [src]
&mut self,
name: &str,
img: &I,
creation_flags: TextureCreationFlags,
renderer: &Context<'_, R>
) -> Result<TextureRef, Error> where
I: Image + Clone,
R: RenderSurface,
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, Error> where
P: AsRef<Path>,
R: RenderSurface, [src]
&mut self,
path: P,
creation_flags: TextureCreationFlags,
renderer: &Context<'_, R>
) -> Result<TextureRef, Error> where
P: AsRef<Path>,
R: RenderSurface,
pub fn load_cubemap<P>(
&mut self,
path: P,
creation_flags: TextureCreationFlags,
renderer: &Renderer<'_, Screen>
) -> Result<CubemapRef, Error> where
P: AsRef<Path>, [src]
&mut self,
path: P,
creation_flags: TextureCreationFlags,
renderer: &Renderer<'_, Screen>
) -> Result<CubemapRef, Error> where
P: AsRef<Path>,
pub fn load_equirectangular_cubemap<P>(
&mut self,
path: P,
creation_flags: TextureCreationFlags,
color_format: ColorFormat,
renderer: &Renderer<'_, Screen>
) -> Result<CubemapRef, Error> where
P: AsRef<Path>, [src]
&mut self,
path: P,
creation_flags: TextureCreationFlags,
color_format: ColorFormat,
renderer: &Renderer<'_, Screen>
) -> Result<CubemapRef, Error> where
P: AsRef<Path>,
pub fn load_equirectangular_levels_cubemap<P>(
&mut self,
paths: &[P],
creation_flags: TextureCreationFlags,
color_format: ColorFormat,
renderer: &Renderer<'_, Screen>
) -> Result<CubemapRef, Error> where
P: AsRef<Path>, [src]
&mut self,
paths: &[P],
creation_flags: TextureCreationFlags,
color_format: ColorFormat,
renderer: &Renderer<'_, Screen>
) -> Result<CubemapRef, Error> where
P: AsRef<Path>,
Trait Implementations
impl Index<CubemapRef> for TexturesPool[src]
impl Index<CubemapRef> for TexturesPool[src]impl Index<SamplerRef> for TexturesPool[src]
impl Index<SamplerRef> for TexturesPool[src]impl Index<TextureRef> for TexturesPool[src]
impl Index<TextureRef> for TexturesPool[src]impl IndexMut<CubemapRef> for TexturesPool[src]
impl IndexMut<CubemapRef> for TexturesPool[src]pub fn index_mut(&mut self, cubemapref: CubemapRef) -> &mut CubeMap[src]
impl IndexMut<SamplerRef> for TexturesPool[src]
impl IndexMut<SamplerRef> for TexturesPool[src]pub fn index_mut(&mut self, samplerref: SamplerRef) -> &mut Sampler[src]
impl IndexMut<TextureRef> for TexturesPool[src]
impl IndexMut<TextureRef> for TexturesPool[src]pub fn index_mut(&mut self, textureref: TextureRef) -> &mut Texture[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<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]pub fn to_subset(&self) -> Option<SS>[src]
pub fn is_in_subset(&self) -> bool[src]
pub fn to_subset_unchecked(&self) -> SS[src]
pub fn from_subset(element: &SS) -> SP[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]