Struct rin::gl::Sampler [−][src]
pub struct Sampler { /* fields omitted */ }
Wraps an OpenGL sampler
Implementations
impl Sampler
[src]
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>ⓘ
[src]
&self,
parameter: u32,
len: usize
) -> Vec<i32, Global>ⓘ
pub unsafe fn get_parameterfv(
&self,
parameter: u32,
len: usize
) -> Vec<f32, Global>ⓘ
[src]
&self,
parameter: u32,
len: usize
) -> Vec<f32, Global>ⓘ
Trait Implementations
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<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]