Struct glin::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) -> GLuint[src]

GL id

pub fn internal_format(&self) -> GLenum[src]

The internal format of the cubemap

pub fn load_level_from_faces<I: Image>(
    &mut self,
    faces: &Faces<I>,
    level: GLint
) -> Result<()>
[src]

Upload data for all the faces of the specified level of the cubemap

pub fn load_faces<I: Image>(&mut self, faces: &Faces<I>) -> Result<()>[src]

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

Upload data for all the faces of the specified level of the cubemap

pub fn load_image<I: CubemapImage>(&mut self, dds: &I) -> Result<()> where
    <I as Image>::DataType: Copy
[src]

pub fn set_anisotropy_level(&mut self, level: f32)[src]

pub fn set_base_level(&mut self, level: GLint)[src]

pub fn set_max_level(&mut self, level: GLint)[src]

pub fn set_min_lod(&mut self, level: GLint)[src]

pub fn set_max_lod(&mut self, level: GLint)[src]

pub fn set_min_mag_filters(&mut self, min: GLuint, max: GLuint)[src]

pub fn set_wrap_s(&mut self, wrap: GLenum)[src]

pub fn set_wrap_t(&mut self, wrap: GLenum)[src]

pub fn set_wrap_r(&mut self, wrap: GLenum)[src]

pub fn set_compare_mode(&mut self, mode: GLenum)[src]

pub fn set_compare_func(&mut self, mode: GLenum)[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) -> GLenum[src]

pub fn level_red_type(&self, level: u32) -> GLenum[src]

pub fn level_green_type(&self, level: u32) -> GLenum[src]

pub fn level_blue_type(&self, level: u32) -> GLenum[src]

pub fn level_alpha_type(&self, level: u32) -> GLenum[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) -> GLenum[src]

pub fn mag_filter(&self) -> GLenum[src]

pub fn min_filter(&self) -> GLenum[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) -> GLenum[src]

pub fn wrap_t(&self) -> GLenum[src]

pub fn wrap_r(&self) -> GLenum[src]

pub fn border_color(&self) -> [f32; 4][src]

pub fn compare_mode(&self) -> GLenum[src]

pub fn compare_func(&self) -> GLenum[src]

pub fn image_format_compatibility_type(&self) -> GLenum[src]

pub fn seamless(&self) -> bool[src]

pub fn set_seamless(&mut self, seamless: bool)[src]

pub unsafe fn set_parameteri(&mut self, parameter: GLenum, value: GLint)[src]

pub unsafe fn set_parameterf(&mut self, parameter: GLenum, value: GLfloat)[src]

pub unsafe fn get_level_parameteriv(
    &self,
    parameter: GLenum,
    level: u32
) -> GLint
[src]

pub unsafe fn get_parameteri(&self, parameter: GLenum) -> GLint[src]

pub unsafe fn get_parameterf(&self, parameter: GLenum) -> GLfloat[src]

pub fn cubemap_sampler<'a>(&'a self, sampler: &'a Sampler) -> CubeMapSampler<'a>[src]

Returns a Sampler over this CubeMap

Trait Implementations

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

impl ColorAttach for CubeMap[src]

impl Debug for CubeMap[src]

impl DepthAttach for CubeMap[src]

impl PartialEq<CubeMap> for CubeMap[src]

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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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<T> Pointable for T[src]

type Init = T

The type for initializers.

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.