Struct rin::gl::Sampler[][src]

pub struct Sampler { /* fields omitted */ }

Wraps an OpenGL sampler

Implementations

impl Sampler[src]

pub fn id(&self) -> u32[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: i32)[src]

GL_TEXTURE_BASE_LEVEL

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

GL_TEXTURE_MAX_LEVEL

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

GL_TEXTURE_MIN_LOD

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

GL_TEXTURE_MAX_LOD

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

GL_TEXTURE_MIN_MAG_FILTERS

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

GL_TEXTURE_WRAP_S

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

GL_TEXTURE_WRAP_T

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

GL_TEXTURE_WRAP_R

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

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

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

GL_TEXTURE_BORDER_COLOR

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

GL_DEPTH_STENCIL_TEXTURE_MODE

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

GL_TEXTURE_MAG_FILTER

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

GL_TEXTURE_WRAP_S

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

GL_TEXTURE_WRAP_T

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

GL_TEXTURE_WRAP_R

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

GL_TEXTURE_BORDER_COLOR

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

GL_TEXTURE_COMPARE_MODE

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

GL_TEXTURE_COMPARE_FUNC

pub fn image_format_compatibility_type(&self) -> u32[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: u32, value: i32)[src]

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

pub unsafe fn set_parameteriv(&mut self, parameter: u32, value: &[i32])[src]

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

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

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

pub unsafe fn get_parameteriv(
    &self,
    parameter: u32,
    len: usize
) -> Vec<i32, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[src]

pub unsafe fn get_parameterfv(
    &self,
    parameter: u32,
    len: usize
) -> Vec<f32, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[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> Downcast for T where
    T: Any
[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]