Struct ClientGraphicsOptions
pub struct ClientGraphicsOptions {
pub fov: f32,
pub render_distance: i32,
pub simulation_distance: i32,
pub brightness: f32,
pub max_fps: u32,
pub vsync: bool,
pub fullscreen: bool,
pub view_bobbing: bool,
pub smooth_lighting: bool,
pub particles: u8,
pub entity_distance: f32,
pub biome_blend: i32,
}Expand description
A snapshot of the client’s graphics preferences.
Fields§
§fov: f32Field of view in degrees, 30 to 110.
render_distance: i32Render distance in chunks.
simulation_distance: i32Simulation distance in chunks.
brightness: f32Brightness, 0 to 1.
max_fps: u32Frame rate limit; 260 means unlimited.
vsync: boolWhether vertical sync is on.
fullscreen: boolWhether the window is fullscreen.
view_bobbing: boolWhether the view bobs while walking.
smooth_lighting: boolWhether smooth lighting is on.
particles: u8Particle setting: 0 all, 1 decreased, 2 minimal.
entity_distance: f32Entity distance scale.
biome_blend: i32Biome blend radius.
Trait Implementations§
§impl Clone for ClientGraphicsOptions
impl Clone for ClientGraphicsOptions
§fn clone(&self) -> ClientGraphicsOptions
fn clone(&self) -> ClientGraphicsOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClientGraphicsOptions
§impl Debug for ClientGraphicsOptions
impl Debug for ClientGraphicsOptions
§impl PartialEq for ClientGraphicsOptions
impl PartialEq for ClientGraphicsOptions
impl StructuralPartialEq for ClientGraphicsOptions
Auto Trait Implementations§
impl Freeze for ClientGraphicsOptions
impl RefUnwindSafe for ClientGraphicsOptions
impl Send for ClientGraphicsOptions
impl Sync for ClientGraphicsOptions
impl Unpin for ClientGraphicsOptions
impl UnsafeUnpin for ClientGraphicsOptions
impl UnwindSafe for ClientGraphicsOptions
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