[−][src]Struct web_glitz::runtime::state::DynamicState
Implementations
impl DynamicState[src]
pub fn max_draw_buffers(&self) -> usize[src]
pub fn use_program<'a>(
&mut self,
program: Option<&'a WebGlProgram>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
program: Option<&'a WebGlProgram>
) -> impl ContextUpdate<'a, ()>
pub fn unref_program(&mut self, program: &WebGlProgram)[src]
pub fn bind_array_buffer<'a>(
&mut self,
buffer: Option<&'a WebGlBuffer>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
buffer: Option<&'a WebGlBuffer>
) -> impl ContextUpdate<'a, ()>
pub fn bind_element_array_buffer<'a>(
&mut self,
buffer: Option<&'a WebGlBuffer>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
buffer: Option<&'a WebGlBuffer>
) -> impl ContextUpdate<'a, ()>
pub fn bind_copy_read_buffer<'a>(
&mut self,
buffer: Option<&'a WebGlBuffer>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
buffer: Option<&'a WebGlBuffer>
) -> impl ContextUpdate<'a, ()>
pub fn bind_copy_write_buffer<'a>(
&mut self,
buffer: Option<&'a WebGlBuffer>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
buffer: Option<&'a WebGlBuffer>
) -> impl ContextUpdate<'a, ()>
pub fn bind_pixel_pack_buffer<'a>(
&mut self,
buffer: Option<&'a WebGlBuffer>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
buffer: Option<&'a WebGlBuffer>
) -> impl ContextUpdate<'a, ()>
pub fn bind_pixel_unpack_buffer<'a>(
&mut self,
buffer: Option<&'a WebGlBuffer>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
buffer: Option<&'a WebGlBuffer>
) -> impl ContextUpdate<'a, ()>
pub fn bind_transform_feedback_buffer_range<'a>(
&mut self,
index: u32,
buffer_range: BufferRange<&'a WebGlBuffer>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
index: u32,
buffer_range: BufferRange<&'a WebGlBuffer>
) -> impl ContextUpdate<'a, ()>
pub fn active_uniform_buffer_binding(&self) -> u32[src]
pub fn set_active_uniform_buffer_index(&mut self, index: u32)[src]
pub fn set_active_uniform_buffer_binding_lru(&mut self)[src]
pub fn bind_uniform_buffer_range<'a>(
&mut self,
buffer_range: BufferRange<&'a WebGlBuffer>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
buffer_range: BufferRange<&'a WebGlBuffer>
) -> impl ContextUpdate<'a, ()>
pub fn unref_buffer(&mut self, buffer: &WebGlBuffer)[src]
pub fn bind_draw_framebuffer<'a>(
&mut self,
framebuffer: Option<&'a WebGlFramebuffer>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
framebuffer: Option<&'a WebGlFramebuffer>
) -> impl ContextUpdate<'a, ()>
pub fn bind_read_framebuffer<'a>(
&mut self,
framebuffer: Option<&'a WebGlFramebuffer>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
framebuffer: Option<&'a WebGlFramebuffer>
) -> impl ContextUpdate<'a, ()>
pub fn unref_framebuffer(&mut self, framebuffer: &WebGlFramebuffer)[src]
pub fn bind_renderbuffer<'a>(
&mut self,
renderbuffer: Option<&'a WebGlRenderbuffer>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
renderbuffer: Option<&'a WebGlRenderbuffer>
) -> impl ContextUpdate<'a, ()>
pub fn unref_renderbuffer(&mut self, renderbuffer: &WebGlRenderbuffer)[src]
pub fn bind_texture_2d<'a>(
&mut self,
texture: Option<&'a WebGlTexture>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
texture: Option<&'a WebGlTexture>
) -> impl ContextUpdate<'a, ()>
pub fn bind_texture_2d_array<'a>(
&mut self,
texture: Option<&'a WebGlTexture>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
texture: Option<&'a WebGlTexture>
) -> impl ContextUpdate<'a, ()>
pub fn bind_texture_3d<'a>(
&mut self,
texture: Option<&'a WebGlTexture>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
texture: Option<&'a WebGlTexture>
) -> impl ContextUpdate<'a, ()>
pub fn bind_texture_cube_map<'a>(
&mut self,
texture: Option<&'a WebGlTexture>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
texture: Option<&'a WebGlTexture>
) -> impl ContextUpdate<'a, ()>
pub fn unref_texture(&mut self, texture: &WebGlTexture)[src]
pub fn bind_sampler<'a>(
&mut self,
texture_unit: u32,
sampler: Option<&'a WebGlSampler>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
texture_unit: u32,
sampler: Option<&'a WebGlSampler>
) -> impl ContextUpdate<'a, ()>
pub fn unref_sampler(&mut self, sampler: &WebGlSampler)[src]
pub fn bind_vertex_array<'a>(
&mut self,
vertex_array: Option<&'a WebGlVertexArrayObject>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
vertex_array: Option<&'a WebGlVertexArrayObject>
) -> impl ContextUpdate<'a, ()>
pub fn unref_vertex_array(&mut self, vertex_array: &WebGlVertexArrayObject)[src]
pub fn bind_transform_feedback<'a>(
&mut self,
transform_feedback: Option<&'a WebGlTransformFeedback>
) -> impl ContextUpdate<'a, ()>[src]
&mut self,
transform_feedback: Option<&'a WebGlTransformFeedback>
) -> impl ContextUpdate<'a, ()>
pub fn unref_transform_feedback(
&mut self,
transform_feedback: &WebGlTransformFeedback
)[src]
&mut self,
transform_feedback: &WebGlTransformFeedback
)
pub fn active_texture(&self) -> u32[src]
pub fn set_active_texture(
&mut self,
texture_unit: u32
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
texture_unit: u32
) -> impl ContextUpdate<'static, ()>
pub fn set_active_texture_lru(&mut self) -> impl ContextUpdate<'static, ()>[src]
pub fn clear_color(&self) -> [f32; 4][src]
pub fn set_clear_color(
&mut self,
color: [f32; 4]
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
color: [f32; 4]
) -> impl ContextUpdate<'static, ()>
pub fn clear_depth(&self) -> f32[src]
pub fn set_clear_depth(&mut self, depth: f32) -> impl ContextUpdate<'static, ()>[src]
pub fn clear_stencil(&self) -> i32[src]
pub fn set_clear_stencil(
&mut self,
stencil: i32
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
stencil: i32
) -> impl ContextUpdate<'static, ()>
pub fn pixel_unpack_alignment(&self) -> i32[src]
pub fn set_pixel_unpack_alignment(
&mut self,
pixel_unpack_alignment: i32
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
pixel_unpack_alignment: i32
) -> impl ContextUpdate<'static, ()>
pub fn pixel_unpack_row_length(&self) -> i32[src]
pub fn set_pixel_unpack_row_length(
&mut self,
pixel_unpack_row_length: i32
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
pixel_unpack_row_length: i32
) -> impl ContextUpdate<'static, ()>
pub fn pixel_unpack_image_height(&self) -> i32[src]
pub fn set_pixel_unpack_image_height(
&mut self,
pixel_unpack_image_height: i32
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
pixel_unpack_image_height: i32
) -> impl ContextUpdate<'static, ()>
pub fn line_width(&self) -> f32[src]
pub fn set_line_width(
&mut self,
line_width: f32
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
line_width: f32
) -> impl ContextUpdate<'static, ()>
pub fn depth_test_enabled(&self) -> bool[src]
pub fn set_depth_test_enabled(
&mut self,
depth_test_enabled: bool
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
depth_test_enabled: bool
) -> impl ContextUpdate<'static, ()>
pub fn stencil_test_enabled(&self) -> bool[src]
pub fn set_stencil_test_enabled(
&mut self,
stencil_test_enabled: bool
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
stencil_test_enabled: bool
) -> impl ContextUpdate<'static, ()>
pub fn scissor_test_enabled(&self) -> bool[src]
pub fn set_scissor_test_enabled(
&mut self,
scissor_test_enabled: bool
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
scissor_test_enabled: bool
) -> impl ContextUpdate<'static, ()>
pub fn blend_enabled(&self) -> bool[src]
pub fn set_blend_enabled(
&mut self,
blend_enabled: bool
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
blend_enabled: bool
) -> impl ContextUpdate<'static, ()>
pub fn dither_enabled(&self) -> bool[src]
pub fn set_dither_enabled(
&mut self,
dither_enabled: bool
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
dither_enabled: bool
) -> impl ContextUpdate<'static, ()>
pub fn polygon_offset_fill_enabled(&self) -> bool[src]
pub fn set_polygon_offset_fill_enabled(
&mut self,
polygon_offset_fill_enabled: bool
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
polygon_offset_fill_enabled: bool
) -> impl ContextUpdate<'static, ()>
pub fn sample_aplha_to_coverage_enabled(&self) -> bool[src]
pub fn set_sample_aplha_to_coverage_enabled(
&mut self,
sample_aplha_to_coverage_enabled: bool
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
sample_aplha_to_coverage_enabled: bool
) -> impl ContextUpdate<'static, ()>
pub fn sample_coverage_enabled(&self) -> bool[src]
pub fn set_sample_coverage_enabled(
&mut self,
sample_coverage_enabled: bool
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
sample_coverage_enabled: bool
) -> impl ContextUpdate<'static, ()>
pub fn rasterizer_discard_enabled(&self) -> bool[src]
pub fn set_rasterizer_discard_enabled(
&mut self,
rasterizer_discard_enabled: bool
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
rasterizer_discard_enabled: bool
) -> impl ContextUpdate<'static, ()>
pub fn set_scissor_rect(
&mut self,
value: (i32, i32, u32, u32)
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
value: (i32, i32, u32, u32)
) -> impl ContextUpdate<'static, ()>
pub fn depth_func(&self) -> TestFunction[src]
pub fn set_depth_func(
&mut self,
depth_func: TestFunction
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
depth_func: TestFunction
) -> impl ContextUpdate<'static, ()>
pub fn depth_mask(&self) -> bool[src]
pub fn set_depth_mask(
&mut self,
depth_mask: bool
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
depth_mask: bool
) -> impl ContextUpdate<'static, ()>
pub fn depth_range(&self) -> &DepthRange[src]
pub fn set_depth_range(
&mut self,
depth_range: DepthRange
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
depth_range: DepthRange
) -> impl ContextUpdate<'static, ()>
pub fn polygon_offset(&self) -> &PolygonOffset[src]
pub fn set_polygon_offset(
&mut self,
polygon_offset: PolygonOffset
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
polygon_offset: PolygonOffset
) -> impl ContextUpdate<'static, ()>
pub fn stencil_func_front(&self) -> TestFunction[src]
pub fn stencil_ref_front(&self) -> i32[src]
pub fn stencil_test_mask_front(&self) -> u32[src]
pub fn set_stencil_func_front(
&mut self,
func: TestFunction,
reference: i32,
mask: u32
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
func: TestFunction,
reference: i32,
mask: u32
) -> impl ContextUpdate<'static, ()>
pub fn stencil_func_back(&self) -> TestFunction[src]
pub fn stencil_ref_back(&self) -> i32[src]
pub fn stencil_test_mask_back(&self) -> u32[src]
pub fn set_stencil_func_back(
&mut self,
func: TestFunction,
reference: i32,
mask: u32
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
func: TestFunction,
reference: i32,
mask: u32
) -> impl ContextUpdate<'static, ()>
pub fn stencil_op_fail_front(&self) -> StencilOperation[src]
pub fn stencil_op_zfail_front(&self) -> StencilOperation[src]
pub fn stencil_op_zpass_front(&self) -> StencilOperation[src]
pub fn set_stencil_op_front(
&mut self,
fail: StencilOperation,
zfail: StencilOperation,
zpass: StencilOperation
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
fail: StencilOperation,
zfail: StencilOperation,
zpass: StencilOperation
) -> impl ContextUpdate<'static, ()>
pub fn stencil_op_fail_back(&self) -> StencilOperation[src]
pub fn stencil_op_zfail_back(&self) -> StencilOperation[src]
pub fn stencil_op_zpass_back(&self) -> StencilOperation[src]
pub fn set_stencil_op_back(
&mut self,
fail: StencilOperation,
zfail: StencilOperation,
zpass: StencilOperation
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
fail: StencilOperation,
zfail: StencilOperation,
zpass: StencilOperation
) -> impl ContextUpdate<'static, ()>
pub fn stencil_write_mask_front(&self) -> u32[src]
pub fn set_stencil_write_mask_front(
&mut self,
mask: u32
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
mask: u32
) -> impl ContextUpdate<'static, ()>
pub fn stencil_write_mask_back(&self) -> u32[src]
pub fn set_stencil_write_mask_back(
&mut self,
mask: u32
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
mask: u32
) -> impl ContextUpdate<'static, ()>
pub fn blend_color(&self) -> [f32; 4][src]
pub fn set_blend_color(
&mut self,
blend_color: [f32; 4]
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
blend_color: [f32; 4]
) -> impl ContextUpdate<'static, ()>
pub fn blend_equation_rgb(&self) -> BlendEquation[src]
pub fn blend_equation_alpha(&self) -> BlendEquation[src]
pub fn set_blend_equations(
&mut self,
rgb: BlendEquation,
alpha: BlendEquation
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
rgb: BlendEquation,
alpha: BlendEquation
) -> impl ContextUpdate<'static, ()>
pub fn blend_func_source_rgb(&self) -> BlendFactor[src]
pub fn blend_func_source_alpha(&self) -> BlendFactor[src]
pub fn blend_func_destination_rgb(&self) -> BlendFactor[src]
pub fn blend_func_destination_alpha(&self) -> BlendFactor[src]
pub fn set_blend_func(
&mut self,
source_rgb: BlendFactor,
destination_rgb: BlendFactor,
source_alpha: BlendFactor,
destination_alpha: BlendFactor
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
source_rgb: BlendFactor,
destination_rgb: BlendFactor,
source_alpha: BlendFactor,
destination_alpha: BlendFactor
) -> impl ContextUpdate<'static, ()>
pub fn viewport(&self) -> &(i32, i32, i32, i32)[src]
pub fn set_viewport(
&mut self,
x: i32,
y: i32,
width: i32,
height: i32
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
x: i32,
y: i32,
width: i32,
height: i32
) -> impl ContextUpdate<'static, ()>
pub fn front_face(&self) -> WindingOrder[src]
pub fn set_front_face(
&mut self,
front_face: WindingOrder
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
front_face: WindingOrder
) -> impl ContextUpdate<'static, ()>
pub fn cull_face(&self) -> CullingMode[src]
pub fn set_cull_face(
&mut self,
cull_face: CullingMode
) -> impl ContextUpdate<'static, ()>[src]
&mut self,
cull_face: CullingMode
) -> impl ContextUpdate<'static, ()>
impl DynamicState[src]
Auto Trait Implementations
impl RefUnwindSafe for DynamicState
impl !Send for DynamicState
impl !Sync for DynamicState
impl Unpin for DynamicState
impl UnwindSafe for DynamicState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<D, T> IntoBuffer<T> for D where
D: Borrow<T> + 'static,
T: Copy + 'static, [src]
D: Borrow<T> + 'static,
T: Copy + 'static,
fn into_buffer<Rc>(Self, &Rc, BufferId, UsageHint) -> Buffer<T> where
Rc: RenderingContext + Clone + 'static, [src]
Rc: RenderingContext + Clone + 'static,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,