Struct glin::Sampler[][src]

pub struct Sampler { /* fields omitted */ }

Wraps an OpenGL sampler

Implementations

impl Sampler[src]

pub fn id(&self) -> GLuint[src]

pub fn set_swizzle_r(&mut self, component: Component)[src]

Swizzle r -> component

pub fn set_swizzle_g(&mut self, component: Component)[src]

Swizzle g -> component

pub fn set_swizzle_b(&mut self, component: Component)[src]

Swizzle b -> component

pub fn set_swizzle_a(&mut self, component: Component)[src]

Swizzle a -> component

pub fn set_swizzles(&mut self, swizzles: Swizzles)[src]

Sets a group of Swizzles

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

GL_TEXTURE_MAX_ANISOTROPY_EXT

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

GL_TEXTURE_BASE_LEVEL

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

GL_TEXTURE_MAX_LEVEL

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

GL_TEXTURE_MIN_LOD

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

GL_TEXTURE_MAX_LOD

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

GL_TEXTURE_MIN_MAG_FILTERS

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

GL_TEXTURE_WRAP_S

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

GL_TEXTURE_WRAP_T

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

GL_TEXTURE_WRAP_R

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

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

pub fn set_border_color(&mut self, color: &[f32; 4])[src]

GL_TEXTURE_BORDER_COLOR

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

GL_DEPTH_STENCIL_TEXTURE_MODE

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

GL_TEXTURE_MAG_FILTER

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

GL_TEXTURE_MIN_FILTER

pub fn min_lod(&self) -> i32[src]

GL_TEXTURE_MIN_LOD

pub fn max_lod(&self) -> i32[src]

GL_TEXTURE_MAX_LOD

pub fn base_level(&self) -> i32[src]

GL_TEXTURE_BASE_LEVEL

pub fn max_level(&self) -> i32[src]

GL_TEXTURE_MAX_LEVEL

pub fn swizzle_r(&self) -> Component[src]

GL_TEXTURE_SWIZZLE_R

pub fn swizzle_g(&self) -> Component[src]

GL_TEXTURE_SWIZZLE_G

pub fn swizzle_b(&self) -> Component[src]

GL_TEXTURE_SWIZZLE_B

pub fn swizzle_a(&self) -> Component[src]

GL_TEXTURE_SWIZZLE_A

pub fn swizzles(&self) -> Swizzles[src]

GL_TEXTURE_SWIZZLE_RGBA

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

GL_TEXTURE_WRAP_S

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

GL_TEXTURE_WRAP_T

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

GL_TEXTURE_WRAP_R

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

GL_TEXTURE_BORDER_COLOR

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

GL_TEXTURE_COMPARE_MODE

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

GL_TEXTURE_COMPARE_FUNC

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

GL_IMAGE_FORMAT_COMPATIBILITY_TYPE

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 set_parameteriv(&mut self, parameter: GLenum, value: &[GLint])[src]

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

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

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

pub unsafe fn get_parameteriv(
    &self,
    parameter: GLenum,
    len: usize
) -> Vec<GLint>
[src]

pub unsafe fn get_parameterfv(
    &self,
    parameter: GLenum,
    len: usize
) -> Vec<GLfloat>
[src]

Trait Implementations

impl Debug for Sampler[src]

impl Drop for Sampler[src]

Auto Trait Implementations

impl !RefUnwindSafe for Sampler

impl !Send for Sampler

impl !Sync for Sampler

impl Unpin for Sampler

impl !UnwindSafe for Sampler

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> 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.