Struct conrod::backend::piston::gfx::GfxContext [] [src]

pub struct GfxContext {
    pub encoder: GfxEncoder,
    pub device: Device,
    pub output_color: RenderTargetView<Resources, Srgba8>,
    pub output_stencil: DepthStencilView<Resources, DepthStencil>,
    pub g2d: Gfx2d<Resources>,
    pub factory: Factory,
}

Contains state used by Gfx to draw. Can be stored within a window.

Fields

GFX encoder.

GFX device.

Output frame buffer.

Output stencil buffer.

Gfx2d.

The factory that was created along with the device.

Methods

impl GfxContext
[src]

[src]

Constructor for a new GfxContext

[src]

Renders 2D graphics.

[src]

Called after frame is rendered to cleanup after gfx device.

[src]

Check whether window has resized and update the output.