[−][src]Struct graphics_tree::GraphicsTree
A graphics backend that stores and optimizes commands
Implementations
impl GraphicsTree
[src]
pub fn new() -> GraphicsTree
[src]
Creates a new graphics tree.
pub fn is_empty(&self) -> bool
[src]
Returns true
if graphics tree is empty.
pub fn clear(&mut self)
[src]
Clears all graphics.
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]
T: ImageSize + CreateTexture<F>,
G: Graphics<Texture = T>,
Draws graphics to backend.
Trait Implementations
impl Graphics for GraphicsTree
[src]
type Texture = Texture
The texture type associated with the back-end. Read more
fn clear_color(&mut self, color: Color)
[src]
fn clear_stencil(&mut self, value: u8)
[src]
fn tri_list<F>(&mut self, draw_state: &DrawState, color: &Color, f: F) where
F: FnMut(&mut dyn FnMut(&[[f32; 2]])),
[src]
F: FnMut(&mut dyn FnMut(&[[f32; 2]])),
fn tri_list_c<F>(&mut self, draw_state: &DrawState, f: F) where
F: FnMut(&mut dyn FnMut(&[[f32; 2]], &[[f32; 4]])),
[src]
F: FnMut(&mut dyn FnMut(&[[f32; 2]], &[[f32; 4]])),
fn tri_list_uv<F>(
&mut self,
draw_state: &DrawState,
color: &[f32; 4],
texture: &Self::Texture,
f: F
) where
F: FnMut(&mut dyn FnMut(&[[f32; 2]], &[[f32; 2]])),
[src]
&mut self,
draw_state: &DrawState,
color: &[f32; 4],
texture: &Self::Texture,
f: F
) where
F: FnMut(&mut dyn FnMut(&[[f32; 2]], &[[f32; 2]])),
fn tri_list_uv_c<F>(
&mut self,
draw_state: &DrawState,
texture: &Self::Texture,
f: F
) where
F: FnMut(&mut dyn FnMut(&[[f32; 2]], &[[f32; 2]], &[[f32; 4]])),
[src]
&mut self,
draw_state: &DrawState,
texture: &Self::Texture,
f: F
) where
F: FnMut(&mut dyn FnMut(&[[f32; 2]], &[[f32; 2]], &[[f32; 4]])),
fn rectangle<R>(
&mut self,
r: &Rectangle,
rectangle: R,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
) where
R: Into<[f64; 4]>,
&mut self,
r: &Rectangle,
rectangle: R,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
) where
R: Into<[f64; 4]>,
fn polygon(
&mut self,
p: &Polygon,
polygon: &[[f64; 2]],
draw_state: &DrawState,
transform: [[f64; 3]; 2]
)
&mut self,
p: &Polygon,
polygon: &[[f64; 2]],
draw_state: &DrawState,
transform: [[f64; 3]; 2]
)
fn polygon_tween_lerp(
&mut self,
p: &Polygon,
polygons: &[&[[f64; 2]]],
tween_factor: f64,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
)
&mut self,
p: &Polygon,
polygons: &[&[[f64; 2]]],
tween_factor: f64,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
)
fn image(
&mut self,
image: &Image,
texture: &Self::Texture,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
)
&mut self,
image: &Image,
texture: &Self::Texture,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
)
fn ellipse<R>(
&mut self,
e: &Ellipse,
rectangle: R,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
) where
R: Into<[f64; 4]>,
&mut self,
e: &Ellipse,
rectangle: R,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
) where
R: Into<[f64; 4]>,
fn line<L>(
&mut self,
l: &Line,
line: L,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
) where
L: Into<[f64; 4]>,
&mut self,
l: &Line,
line: L,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
) where
L: Into<[f64; 4]>,
fn circle_arc<R>(
&mut self,
c: &CircleArc,
rectangle: R,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
) where
R: Into<[f64; 4]>,
&mut self,
c: &CircleArc,
rectangle: R,
draw_state: &DrawState,
transform: [[f64; 3]; 2]
) where
R: Into<[f64; 4]>,
Auto Trait Implementations
impl RefUnwindSafe for GraphicsTree
impl Send for GraphicsTree
impl Sync for GraphicsTree
impl Unpin for GraphicsTree
impl UnwindSafe for GraphicsTree
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,