Struct nannou::draw::renderer::RenderContext[][src]

pub struct RenderContext<'a> {
    pub transform: &'a Matrix4<f32>,
    pub intermediary_mesh: &'a Mesh,
    pub path_event_buffer: &'a [PathEvent],
    pub path_points_colored_buffer: &'a [(Point2, Color)],
    pub path_points_textured_buffer: &'a [(Point2, Point2)],
    pub text_buffer: &'a str,
    pub theme: &'a Theme,
    pub glyph_cache: &'a mut GlyphCache,
    pub fill_tessellator: &'a mut FillTessellator,
    pub stroke_tessellator: &'a mut StrokeTessellator,
    pub output_attachment_size: Vector2,
    pub output_attachment_scale_factor: f32,
}

The context provided to primitives to assist with the rendering process.

Fields

transform: &'a Matrix4<f32>intermediary_mesh: &'a Meshpath_event_buffer: &'a [PathEvent]path_points_colored_buffer: &'a [(Point2, Color)]path_points_textured_buffer: &'a [(Point2, Point2)]text_buffer: &'a strtheme: &'a Themeglyph_cache: &'a mut GlyphCachefill_tessellator: &'a mut FillTessellatorstroke_tessellator: &'a mut StrokeTessellatoroutput_attachment_size: Vector2output_attachment_scale_factor: f32

Auto Trait Implementations

impl<'a> RefUnwindSafe for RenderContext<'a>

impl<'a> Send for RenderContext<'a>

impl<'a> Sync for RenderContext<'a>

impl<'a> Unpin for RenderContext<'a>

impl<'a> !UnwindSafe for RenderContext<'a>

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> Downcast<T> for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,