pub trait Settings where
Self: PartialEq,
Self: Debug,
Self: Clone, {
Show 22 methods
fn apply<R, F: FnOnce() -> R>(
&self,
gl: &Gl,
cache: &RefCell<SettingsCache>,
callback: F
) -> R;
fn depth_test(self, value: bool) -> ComposedSetting<Self, DepthTestSetting> { ... }
fn blend(self, value: bool) -> ComposedSetting<Self, BlendSetting> { ... }
fn blend_equation(
self,
color: BlendEquation,
alpha: BlendEquation
) -> ComposedSetting<Self, BlendEquationSetting> { ... }
fn blend_function(
self,
src_rgb: BlendFunction,
dst_rgb: BlendFunction,
src_alpha: BlendFunction,
dst_alpha: BlendFunction
) -> ComposedSetting<Self, BlendFunctionSetting> { ... }
fn depth_function(
self,
function: DepthFunction
) -> ComposedSetting<Self, DepthFunction> { ... }
fn active_texture(
self,
index: u32
) -> ComposedSetting<Self, ActiveTextureSetting> { ... }
fn texture(
self,
index: u32,
texture: Texture
) -> ComposedSetting<Self, TextureSetting> { ... }
fn texture_list<T: IntoIterator<Item = Texture>>(
self,
textures: T
) -> ComposedSetting<Self, TextureListSetting> { ... }
fn texture_filter(
self,
texture: Texture,
filter: TextureFilter
) -> ComposedSetting<Self, TextureFilterSetting> { ... }
fn array_buffer(
self,
array_buffer: ArrayBuffer
) -> ComposedSetting<Self, ArrayBufferSetting> { ... }
fn items_buffer<T: Item>(
self,
array_buffer: ItemsBuffer<T>
) -> ComposedSetting<Self, ArrayBufferSetting> { ... }
fn element_buffer(
self,
element_buffer: ElementBuffer
) -> ComposedSetting<Self, ElementBufferSetting> { ... }
fn enabled_attributes(
self,
attributes: &[u32]
) -> ComposedSetting<Self, EnabledAttributesSetting> { ... }
fn program(self, program: Program) -> ComposedSetting<Self, ProgramSetting> { ... }
fn clear_color(
self,
r: f32,
g: f32,
b: f32,
alpha: f32
) -> ComposedSetting<Self, ClearColorSetting> { ... }
fn clear_depth(self, value: f32) -> ComposedSetting<Self, ClearDepthSetting> { ... }
fn viewport(
self,
x: i32,
y: i32,
width: i32,
height: i32
) -> ComposedSetting<Self, ViewportSetting> { ... }
fn depth_buffer(
self,
buffer: DepthBuffer
) -> ComposedSetting<Self, DepthBufferSetting> { ... }
fn frame_buffer(
self,
buffer: FrameBuffer
) -> ComposedSetting<Self, FrameBufferSetting> { ... }
fn cull_face(self, cull_face: CullFace) -> ComposedSetting<Self, CullFace> { ... }
fn color_mask(
self,
r: bool,
g: bool,
b: bool,
a: bool
) -> ComposedSetting<Self, ColorMask> { ... }
}
Required Methods
Provided Methods
source
fn depth_test(self, value: bool) -> ComposedSetting<Self, DepthTestSetting>
source
fn blend(self, value: bool) -> ComposedSetting<Self, BlendSetting>
sourcefn blend_equation(
fn blend_equation(
self,
color: BlendEquation,
alpha: BlendEquation
) -> ComposedSetting<Self, BlendEquationSetting>
sourcefn blend_function(
fn blend_function(
self,
src_rgb: BlendFunction,
dst_rgb: BlendFunction,
src_alpha: BlendFunction,
dst_alpha: BlendFunction
) -> ComposedSetting<Self, BlendFunctionSetting>
sourcefn depth_function(
fn depth_function(
self,
function: DepthFunction
) -> ComposedSetting<Self, DepthFunction>
sourcefn active_texture(
fn active_texture(
self,
index: u32
) -> ComposedSetting<Self, ActiveTextureSetting>
sourcefn texture(
fn texture(
self,
index: u32,
texture: Texture
) -> ComposedSetting<Self, TextureSetting>
sourcefn texture_list<T: IntoIterator<Item = Texture>>(
fn texture_list<T: IntoIterator<Item = Texture>>(
self,
textures: T
) -> ComposedSetting<Self, TextureListSetting>
sourcefn texture_filter(
fn texture_filter(
self,
texture: Texture,
filter: TextureFilter
) -> ComposedSetting<Self, TextureFilterSetting>
sourcefn array_buffer(
fn array_buffer(
self,
array_buffer: ArrayBuffer
) -> ComposedSetting<Self, ArrayBufferSetting>
sourcefn items_buffer<T: Item>(
fn items_buffer<T: Item>(
self,
array_buffer: ItemsBuffer<T>
) -> ComposedSetting<Self, ArrayBufferSetting>
sourcefn element_buffer(
fn element_buffer(
self,
element_buffer: ElementBuffer
) -> ComposedSetting<Self, ElementBufferSetting>
sourcefn enabled_attributes(
fn enabled_attributes(
self,
attributes: &[u32]
) -> ComposedSetting<Self, EnabledAttributesSetting>
source
fn program(self, program: Program) -> ComposedSetting<Self, ProgramSetting>
sourcefn clear_color(
fn clear_color(
self,
r: f32,
g: f32,
b: f32,
alpha: f32
) -> ComposedSetting<Self, ClearColorSetting>
source
fn clear_depth(self, value: f32) -> ComposedSetting<Self, ClearDepthSetting>
sourcefn viewport(
fn viewport(
self,
x: i32,
y: i32,
width: i32,
height: i32
) -> ComposedSetting<Self, ViewportSetting>
sourcefn depth_buffer(
fn depth_buffer(
self,
buffer: DepthBuffer
) -> ComposedSetting<Self, DepthBufferSetting>
sourcefn frame_buffer(
fn frame_buffer(
self,
buffer: FrameBuffer
) -> ComposedSetting<Self, FrameBufferSetting>
source
fn cull_face(self, cull_face: CullFace) -> ComposedSetting<Self, CullFace>
sourcefn color_mask(