Struct luminance_gl::gl33::GLState
source · [−]pub struct GLState { /* private fields */ }
Expand description
The graphics state.
This type represents the current state of a given graphics context. It acts as a forward-gate to all the exposed features from the low-level API but adds a small cache layer over it to prevent from issuing the same API call (with the same parameters).
Implementations
sourceimpl GLState
impl GLState
sourcepub fn invalidate_vertex_array(&mut self)
pub fn invalidate_vertex_array(&mut self)
Invalidate the currently in-use vertex array.
sourcepub fn invalidate_array_buffer(&mut self)
pub fn invalidate_array_buffer(&mut self)
Invalidate the currently in-use array buffer.
sourcepub fn invalidate_shader_program(&mut self)
pub fn invalidate_shader_program(&mut self)
Invalidate the currently in-use shader program.
sourcepub fn invalidate_framebuffer(&mut self)
pub fn invalidate_framebuffer(&mut self)
Invalidate the currently in-use framebuffer.
sourcepub fn invalidate_element_array_buffer(&mut self)
pub fn invalidate_element_array_buffer(&mut self)
Invalidate the currently in-use element array buffer.
sourcepub fn invalidate_texture_unit(&mut self)
pub fn invalidate_texture_unit(&mut self)
Invalidate the currently in-use texture unit.
sourcepub fn invalidate_bound_textures(&mut self)
pub fn invalidate_bound_textures(&mut self)
Invalidate the texture bindings.
sourcepub fn invalidate_bound_uniform_buffers(&mut self)
pub fn invalidate_bound_uniform_buffers(&mut self)
Invalidate the uniform buffer bindings.
sourcepub fn invalidate_viewport(&mut self)
pub fn invalidate_viewport(&mut self)
Invalidate the currently in-use viewport.
sourcepub fn invalidate_clear_color(&mut self)
pub fn invalidate_clear_color(&mut self)
Invalidate the currently in-use clear color.
sourcepub fn invalidate_blending_state(&mut self)
pub fn invalidate_blending_state(&mut self)
Invalidate the currently in-use blending state.
sourcepub fn invalidate_blending_equation(&mut self)
pub fn invalidate_blending_equation(&mut self)
Invalidate the currently in-use blending equation.
sourcepub fn invalidate_blending_func(&mut self)
pub fn invalidate_blending_func(&mut self)
Invalidate the currently in-use blending function.
sourcepub fn invalidate_depth_test(&mut self)
pub fn invalidate_depth_test(&mut self)
Invalidate the currently in-use depth test.
sourcepub fn invalidate_depth_test_comparison(&mut self)
pub fn invalidate_depth_test_comparison(&mut self)
Invalidate the currently in-use depth test comparison.
sourcepub fn invalidate_depth_write(&mut self)
pub fn invalidate_depth_write(&mut self)
Invalidate the currently in-use depth write state.
sourcepub fn invalidate_face_culling_state(&mut self)
pub fn invalidate_face_culling_state(&mut self)
Invalidate the currently in-use face culling state.
sourcepub fn invalidate_face_culling_order(&mut self)
pub fn invalidate_face_culling_order(&mut self)
Invalidate the currently in-use face culling order.
sourcepub fn invalidate_face_culling_mode(&mut self)
pub fn invalidate_face_culling_mode(&mut self)
Invalidate the currently in-use face culling mode.
sourcepub fn invalidate_vertex_restart(&mut self)
pub fn invalidate_vertex_restart(&mut self)
Invalidate the currently in-use vertex restart state.
sourcepub fn invalidate_patch_vertex_nb(&mut self)
pub fn invalidate_patch_vertex_nb(&mut self)
Invalidate the currently in-use patch vertex number.
sourcepub fn invalidate_srgb_framebuffer_enabled(&mut self)
pub fn invalidate_srgb_framebuffer_enabled(&mut self)
Invalidate the currently in-use sRGB framebuffer state.
sourcepub fn get_vendor_name(&mut self) -> String
pub fn get_vendor_name(&mut self) -> String
Get the OpenGL vendor name.
Cache the name on the first call and then re-use it for later calls.
sourcepub fn get_renderer_name(&mut self) -> String
pub fn get_renderer_name(&mut self) -> String
Get the OpenGL renderer name.
Cache the name on the first call and then re-use it for later calls.
sourcepub fn get_gl_version(&mut self) -> String
pub fn get_gl_version(&mut self) -> String
Get the OpenGL version.
Cache the version on the first call and then re-use it for later calls.
sourcepub fn get_glsl_version(&mut self) -> String
pub fn get_glsl_version(&mut self) -> String
Get the GLSL version.
Cache the version on the first call and then re-use it for later calls.
sourcepub fn get_max_texture_array_elements(&mut self) -> usize
pub fn get_max_texture_array_elements(&mut self) -> usize
Get the number of maximum elements an array texture can hold.
Cache the number on the first call and then re-use it for later calls.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GLState
impl !Send for GLState
impl !Sync for GLState
impl Unpin for GLState
impl UnwindSafe for GLState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more