#[repr(C)]pub struct SsSceneDesc {
pub window: SsWindowHandle,
pub backend: u32,
pub width: u32,
pub height: u32,
pub clear_color: [f32; 4],
pub enable_mask: bool,
pub y_down: bool,
}Expand description
Everything ss_scene_create needs: where to draw, how big, and how to clear.
Fields§
§window: SsWindowHandleTarget window/layer.
backend: u32One of the SS_BACKEND_* constants; any other value makes
ss_scene_create fail.
width: u32Drawable size in pixels (not points — scale by the display factor).
A size past the device’s max_texture_dimension_2d draws at that limit.
height: u32See width.
clear_color: [f32; 4]Clear colour, straight RGBA in 0..1. The window stays opaque whatever the alpha.
enable_mask: boolAllocate a depth/stencil buffer so mask parts rasterise. With
false the scene runs without masking, exactly as if the host attached
no stencil.
y_down: boolWhether the render target is Y-down. A window’s swapchain is not: pass
false, and true draws upside down. Player coordinates
(ss_player_set_transform) run downward either way.
Trait Implementations§
Source§impl Clone for SsSceneDesc
impl Clone for SsSceneDesc
impl Copy for SsSceneDesc
Auto Trait Implementations§
impl !Send for SsSceneDesc
impl !Sync for SsSceneDesc
impl Freeze for SsSceneDesc
impl RefUnwindSafe for SsSceneDesc
impl Unpin for SsSceneDesc
impl UnsafeUnpin for SsSceneDesc
impl UnwindSafe for SsSceneDesc
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