Struct xplm::draw::GraphicsState
source · pub struct GraphicsState {
pub fog: bool,
pub lighting: bool,
pub alpha_testing: bool,
pub alpha_blending: bool,
pub depth_testing: bool,
pub depth_writing: bool,
pub textures: i32,
}
Expand description
Stores various flags that can be enabled or disabled
Fields§
§fog: bool
Enable status of fog
During 3-d rendering fog is set up to cause a fade-to-fog effect at the visibility limit.
lighting: bool
Enable status of 3D lighting
alpha_testing: bool
Enable status of alpha testing
Alpha testing stops pixels from being rendered to the frame buffer if their alpha is zero.
alpha_blending: bool
Enable status of alpha blending
depth_testing: bool
Enable status of depth testing
depth_writing: bool
Enable status of depth writing
textures: i32
The number of textures that are enabled for use
Trait Implementations§
source§impl Clone for GraphicsState
impl Clone for GraphicsState
source§fn clone(&self) -> GraphicsState
fn clone(&self) -> GraphicsState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for GraphicsState
impl RefUnwindSafe for GraphicsState
impl Send for GraphicsState
impl Sync for GraphicsState
impl Unpin for GraphicsState
impl UnwindSafe for GraphicsState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more