pub struct GfxState {Show 17 fields
pub window: Option<Window>,
pub buffer: Vec<u32>,
pub width: usize,
pub height: usize,
pub color: u32,
pub camera: Camera3D,
pub lights: Vec<Light>,
pub ambient: f32,
pub depth_queue: DepthQueue,
pub mouse_dx: f32,
pub mouse_dy: f32,
pub last_mx: f32,
pub last_my: f32,
pub mouse_captured: bool,
pub shade_mode: u8,
pub shade: ShadeParams,
pub blend: u8,
}Fields§
§window: Option<Window>§buffer: Vec<u32>§width: usize§height: usize§color: u32Current pen colour (0x00RRGGBB) set by สีดินสอ / set_color.
camera: Camera3D3-D camera — set once per frame with set_camera.
lights: Vec<Light>Active point lights for this frame — cleared by clear_lights.
ambient: f32Ambient fill level [0..1]. Default 0.15.
depth_queue: DepthQueueDepth-sorted draw queue — flushed by แสดงผล / present.
mouse_dx: f32Mouse position delta since last frame (pixels).
mouse_dy: f32§last_mx: f32Previous mouse position for delta computation; NaN = no prior sample.
last_my: f32§mouse_captured: boolWhen true: cursor is hidden and reset to center every frame for infinite rotation.
shade_mode: u8Shading mode for 3-D shape meshes: 0 flat · 1 cel · 2 holo (default).
shade: ShadeParamsTunable cel/holo parameters (bands, shadow tint, rim, …).
blend: u8Blend mode for pixel writes: 0 = normal (overwrite), 1 = additive.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GfxState
impl !Send for GfxState
impl !Sync for GfxState
impl !UnwindSafe for GfxState
impl Freeze for GfxState
impl Unpin for GfxState
impl UnsafeUnpin for GfxState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more