[][src]Struct gelatin::DrawContext

pub struct DrawContext<'a> {
    pub display: &'a Display,
    pub dpi_scale_factor: f32,
    pub unit_quad_vertices: &'a VertexBuffer<Vertex>,
    pub unit_quad_indices: &'a IndexBuffer<u16>,
    pub textured_program: &'a Program,
    pub colored_shadowed_program: &'a Program,
    pub colored_program: &'a Program,
    pub viewport: &'a Rect,
    pub projection_transform: &'a Matrix4<f32>,
}

Fields

display: &'a Displaydpi_scale_factor: f32unit_quad_vertices: &'a VertexBuffer<Vertex>unit_quad_indices: &'a IndexBuffer<u16>textured_program: &'a Programcolored_shadowed_program: &'a Programcolored_program: &'a Programviewport: &'a Rectprojection_transform: &'a Matrix4<f32>

Implementations

impl<'a> DrawContext<'a>[src]

pub fn logical_rect_to_viewport(&self, rect: &LogicalRect) -> Rect[src]

pub fn clear_color(
    &self,
    target: &mut Frame,
    color: [f32; 4],
    rect: Option<LogicalRect>
)
[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for DrawContext<'a>

impl<'a> !Send for DrawContext<'a>

impl<'a> !Sync for DrawContext<'a>

impl<'a> Unpin for DrawContext<'a>

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

Blanket Implementations

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> From<T> for T[src]

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

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.