Struct rin::gl::cubemap::CubeMap[][src]

pub struct CubeMap { /* fields omitted */ }

Wrapper for a Texture allocated as a CubeMap

Implementations

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]

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]

pub fn load_level_from_cubemap_image<I>(
    &mut self,
    dds: &I,
    level: i32
) -> Result<(), Error> where
    I: CubemapImage
[src]

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]

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 ColorAttach for CubeMap[src]

impl Debug for CubeMap[src]

impl DepthAttach for CubeMap[src]

impl PartialEq<CubeMap> for CubeMap[src]

impl<'a> Render2d for &'a CubeMap[src]

type Material = Material<'a>

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<T> Any for T where
    T: 'static + ?Sized
[src]

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

impl<C> AsUniform<CubeMap> for C where
    C: Borrow<CubeMap>, 
[src]

impl<C> AsUniform<CubeMap> for C where
    C: Borrow<CubeMap>, 
[src]

impl<C> AsUniform<CubeMap> for C where
    C: Borrow<CubeMap>, 
[src]

impl<C> AsUniform<CubeMap> for C where
    C: Borrow<CubeMap>, 
[src]

impl<C> AsUniform<CubeMap> for C where
    C: Borrow<CubeMap>, 
[src]

impl<C> AsUniform<CubeMap> for C where
    C: Borrow<CubeMap>, 
[src]

impl<C> AsUniform<CubeMap> for C where
    C: Borrow<CubeMap>, 
[src]

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

impl<C> BorrowColorAttach for C where
    C: ColorAttach
[src]

impl<C> BorrowDepthAttach for C where
    C: DepthAttach
[src]

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[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]