pub struct GraphicsTree { /* fields omitted */ }
A graphics backend that stores and optimizes commands
Creates a new graphics tree.
Returns true
if graphics tree is empty.
pub fn draw<F, T, G>(&self, texture_buffer: &mut TextureBuffer<F, T>, g: &mut G) where T: ImageSize + CreateTexture<F>, G: Graphics<Texture = T>, | [src] |
Draws graphics to backend.
The texture type associated with the back-end. Read more
Clears stencil buffer with a value, usually 0. Read more
Renders list of 2d triangles using a solid color. Read more
Renders list of 2d triangles using a color and a texture. Read more
Draws a tweened polygon using linear interpolation. Read more
fn image( &mut self, image: &Image, texture: &Self::Texture, draw_state: &DrawState, transform: [[f64; 3]; 2] ) | |
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> SetParameter for T | |
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where T: Parameter<Self>, | |
Sets value
as a parameter of self
.