Struct rin::gl::cubemap::CubeMap [−][src]
pub struct CubeMap { /* fields omitted */ }
Wrapper for a Texture
allocated as a CubeMap
Implementations
impl CubeMap
[src]
impl CubeMap
[src]pub fn generate_mipmaps(&mut self)
[src]
glGenerateMipmaps
Also automatically sets the filters to use the mipmaps
pub fn width(&self) -> u32
[src]
A cubemap face width
pub fn height(&self) -> u32
[src]
A cubemap face height
pub fn levels(&self) -> u32
[src]
Number of levels the cubemap was allocated with
pub fn id(&self) -> u32
[src]
GL id
pub fn internal_format(&self) -> u32
[src]
The internal format of the cubemap
pub fn load_level_from_faces<I>(
&mut self,
faces: &Faces<I>,
level: i32
) -> Result<(), Error> where
I: Image,
[src]
&mut self,
faces: &Faces<I>,
level: i32
) -> Result<(), Error> where
I: Image,
Upload data for all the faces of the specified level of the cubemap
pub fn load_faces<I>(&mut self, faces: &Faces<I>) -> Result<(), Error> where
I: Image,
[src]
I: Image,
pub fn load_level_from_cubemap_image<I>(
&mut self,
dds: &I,
level: i32
) -> Result<(), Error> where
I: CubemapImage,
[src]
&mut self,
dds: &I,
level: i32
) -> Result<(), Error> where
I: CubemapImage,
Upload data for all the faces of the specified level of the cubemap
pub fn load_image<I>(&mut self, dds: &I) -> Result<(), Error> where
I: CubemapImage,
<I as Image>::DataType: Copy,
[src]
I: CubemapImage,
<I as Image>::DataType: Copy,
pub fn set_anisotropy_level(&mut self, level: f32)
[src]
pub fn set_base_level(&mut self, level: i32)
[src]
pub fn set_max_level(&mut self, level: i32)
[src]
pub fn set_min_lod(&mut self, level: i32)
[src]
pub fn set_max_lod(&mut self, level: i32)
[src]
pub fn set_min_mag_filters(&mut self, min: u32, max: u32)
[src]
pub fn set_wrap_s(&mut self, wrap: u32)
[src]
pub fn set_wrap_t(&mut self, wrap: u32)
[src]
pub fn set_wrap_r(&mut self, wrap: u32)
[src]
pub fn set_compare_mode(&mut self, mode: u32)
[src]
pub fn set_compare_func(&mut self, mode: u32)
[src]
pub fn level_width(&self, level: u32) -> u32
[src]
pub fn level_height(&self, level: u32) -> u32
[src]
pub fn level_internal_format(&self, level: u32) -> u32
[src]
pub fn level_red_type(&self, level: u32) -> u32
[src]
pub fn level_green_type(&self, level: u32) -> u32
[src]
pub fn level_blue_type(&self, level: u32) -> u32
[src]
pub fn level_alpha_type(&self, level: u32) -> u32
[src]
pub fn is_level_compressed(&self, level: u32) -> bool
[src]
pub fn level_compressed_image_len(&self, level: u32) -> usize
[src]
pub fn level_red_size(&self, level: u32) -> usize
[src]
pub fn level_green_size(&self, level: u32) -> usize
[src]
pub fn level_blue_size(&self, level: u32) -> usize
[src]
pub fn level_alpha_size(&self, level: u32) -> usize
[src]
pub fn depth_stencil_texture_mode(&self) -> u32
[src]
pub fn mag_filter(&self) -> u32
[src]
pub fn min_filter(&self) -> u32
[src]
pub fn min_lod(&self) -> i32
[src]
pub fn max_lod(&self) -> i32
[src]
pub fn base_level(&self) -> i32
[src]
pub fn max_level(&self) -> i32
[src]
pub fn swizzle_r(&self) -> Component
[src]
pub fn swizzle_g(&self) -> Component
[src]
pub fn swizzle_b(&self) -> Component
[src]
pub fn swizzle_a(&self) -> Component
[src]
pub fn swizzles(&self) -> Swizzles
[src]
pub fn wrap_s(&self) -> u32
[src]
pub fn wrap_t(&self) -> u32
[src]
pub fn wrap_r(&self) -> u32
[src]
pub fn border_color(&self) -> [f32; 4]
[src]
pub fn compare_mode(&self) -> u32
[src]
pub fn compare_func(&self) -> u32
[src]
pub fn image_format_compatibility_type(&self) -> u32
[src]
pub fn seamless(&self) -> bool
[src]
pub fn set_seamless(&mut self, seamless: bool)
[src]
pub unsafe fn set_parameteri(&mut self, parameter: u32, value: i32)
[src]
pub unsafe fn set_parameterf(&mut self, parameter: u32, value: f32)
[src]
pub unsafe fn get_level_parameteriv(&self, parameter: u32, level: u32) -> i32
[src]
pub unsafe fn get_parameteri(&self, parameter: u32) -> i32
[src]
pub unsafe fn get_parameterf(&self, parameter: u32) -> f32
[src]
pub fn cubemap_sampler(&'a self, sampler: &'a Sampler) -> CubeMapSampler<'a>
[src]
Returns a Sampler over this CubeMap
Trait Implementations
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl ColorAttach for CubeMap
[src]
impl ColorAttach for CubeMap
[src]impl DepthAttach for CubeMap
[src]
impl DepthAttach for CubeMap
[src]impl<'a> Render2d for &'a CubeMap
[src]
impl<'a> Render2d for &'a CubeMap
[src]type Material = Material<'a>
pub fn default_material(&self) -> Material<'a>
[src]
pub fn render_with_material<R, M>(
&self,
gl: &Renderer<'_, R>,
pos: &Point<f32, U2>,
material: &M
) where
M: Material,
R: RenderSurface,
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Point<f32, U2>,
material: &M
) where
M: Material,
R: RenderSurface,
pub fn render_size_with_material<R, M>(
&self,
gl: &Renderer<'_, R>,
pos: &Point<f32, U2>,
size: &Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>,
material: &M
) where
M: Material,
R: RenderSurface,
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Point<f32, U2>,
size: &Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>,
material: &M
) where
M: Material,
R: RenderSurface,
pub fn render<R>(&self, renderer: &Renderer<'_, R>, pos: &Point<f32, U2>) where
R: RenderSurface,
[src]
R: RenderSurface,
pub fn render_size<R>(
&self,
renderer: &Renderer<'_, R>,
pos: &Point<f32, U2>,
size: &Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
) where
R: RenderSurface,
[src]
&self,
renderer: &Renderer<'_, R>,
pos: &Point<f32, U2>,
size: &Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
) where
R: RenderSurface,
impl Eq for CubeMap
[src]
impl StructuralEq for CubeMap
[src]
impl StructuralPartialEq for CubeMap
[src]
Auto Trait Implementations
impl !RefUnwindSafe for CubeMap
impl !Send for CubeMap
impl !Sync for CubeMap
impl Unpin for CubeMap
impl !UnwindSafe for CubeMap
Blanket Implementations
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<C> BorrowColorAttach for C where
C: ColorAttach,
[src]
impl<C> BorrowColorAttach for C where
C: ColorAttach,
[src]type ColorAttach = C
pub fn borrow_color_attachment(&self) -> &<C as BorrowColorAttach>::ColorAttach
[src]
impl<C> BorrowDepthAttach for C where
C: DepthAttach,
[src]
impl<C> BorrowDepthAttach for C where
C: DepthAttach,
[src]type DepthAttach = C
pub fn borrow_depth_attachment(&self) -> &<C as BorrowDepthAttach>::DepthAttach
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[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]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]