pub struct Mesh { /* private fields */ }
Expand description

A mesh whose vertices may be populated by a list of render primitives.

This is a convenience type for simplifying backend implementations.

Implementations

Construct a new empty Mesh with default glyph cache dimensions.

Construct a Mesh with the given glyph cache dimensions.

Fill the inner vertex buffer from the given primitives.

  • viewport: the window in which the UI is drawn. The width and height should be the physical size (pixels).
  • dpi_factor: the factor for converting from conrod’s DPI agnostic point space to the pixel space of the viewport.
  • image_map: a map from image IDs to images.
  • primitives: the sequence of UI primitives in order of depth to be rendered.

The rusttype glyph cache used for managing caching of glyphs into the pixel buffer.

The CPU-side of the glyph cache, storing all necessary pixel data in a single slice.

Produce an Iterator yielding Commands.

These commands describe the order in which unique draw commands and scizzor updates should occur.

The slice containing all vertices produced by the fill function.

Note that these vertices may be represent geometry across multiple Commands.

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.