pub struct SceneDesc {
pub clear_color: [f32; 4],
pub objects: Vec<ObjectDesc>,
}Expand description
A minimal scene description for headless rendering.
Fields§
§clear_color: [f32; 4]§objects: Vec<ObjectDesc>Implementations§
Source§impl SceneDesc
impl SceneDesc
pub fn new() -> Self
pub fn with_clear_color(self, r: f32, g: f32, b: f32, a: f32) -> Self
pub fn with_object(self, obj: ObjectDesc) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SceneDesc
impl RefUnwindSafe for SceneDesc
impl Send for SceneDesc
impl Sync for SceneDesc
impl Unpin for SceneDesc
impl UnsafeUnpin for SceneDesc
impl UnwindSafe for SceneDesc
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