pub struct RenderRecipe {
pub matrices: Vec<Mat4>,
pub primitives: Vec<Primitive>,
pub matrix_for_primitives: Vec<usize>,
}
Expand description
A RenderRecipe for a hierarchy of components
Created from a hierarchy of components, this is an array of transformation matrices, an array of Primitives, and an array of pairs (matrix index, primitive index) of what needs to be drawn
Fields§
§matrices: Vec<Mat4>
Matrices to use (the first is the identity matrix)
primitives: Vec<Primitive>
The primitives within the component
matrix_for_primitives: Vec<usize>
Draw requirements - matrix index for the associated primitive index
Implementations§
Source§impl RenderRecipe
impl RenderRecipe
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new RenderRecipe
Trait Implementations§
Source§impl Debug for RenderRecipe
impl Debug for RenderRecipe
Auto Trait Implementations§
impl Freeze for RenderRecipe
impl RefUnwindSafe for RenderRecipe
impl Send for RenderRecipe
impl Sync for RenderRecipe
impl Unpin for RenderRecipe
impl UnwindSafe for RenderRecipe
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