[][src]Module conrod_core::mesh

A mesh type dedicated to converting sequences of render::Primitives to a representation in vertices ready for uploading to the GPU.

While populating the vertices buffer ready for uploading to the GPU, the Mesh will also produce a sequence of commands describing the order in which draw commands should occur and whether or not the Scizzor should be updated between draws.

Structs

Commands

An iterator yielding Commands, produced by the Renderer::commands method.

Fill

The result of filling the mesh.

Mesh

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

Scizzor

Represents the scizzor in pixel coordinates.

Vertex

The data associated with a single vertex.

Enums

Command

A Command describing a step in the drawing process.

Draw

A Command for drawing to the target.

Constants

DEFAULT_GLYPH_CACHE_DIMS

Default dimensions to use for the glyph cache.

MODE_GEOMETRY

Ignore tex and draw simple, colored 2D geometry.

MODE_IMAGE

Draw an image from the texture at tex in the fragment shader.

MODE_TEXT

Draw text from the text cache texture tex in the fragment shader.

Traits

ImageDimensions

Images within the given image map must know their dimensions in pixels.