Struct conrod_gfx::Renderer

source ·
pub struct Renderer<'a, R: Resources> { /* private fields */ }
Expand description

This type is used for translating render::Primitives into Commandss that indicate how to draw the GUI using gfx.

Implementations

Create a new renderer from a gfx::Factory, gfx::handle::RenderTargetView and a given dpi_factor

Produce an Iterator yielding Commands.

Fill the inner vertex and command buffers by translating the given primitives.

Draws using the inner list of Commands to the given display.

Note: If you require more granular control over rendering, you may want to use the fill and commands methods separately. This method is simply a convenience wrapper around those methods for the case that the user does not require accessing or modifying conrod’s draw parameters, uniforms or generated draw commands.

Call this routine when a window has been resized. This ensures that conrod primitives are drawn properly with the draw call.

Call this routine to clear the render target.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.