Struct radiant_rs::support::DrawBuilder[][src]

#[must_use]
pub struct DrawBuilder<'a, T: 'a> { /* fields omitted */ }

A rectangle builder.

Obtained from Renderer::rect() or Renderer::fill()

Methods

impl<'a, T> DrawBuilder<'a, T>
[src]

The following implementations are available when drawing with Renderer::rect() or Renderer::fill().

Sets a color for drawing. Defaults to white. If a texture is supplied in addtion to the color, each fragment will be computed from texel color * color.

Sets the texture for drawing. If a color is supplied in addtion to the texture, each fragment will be computed from texel color * color.

Sets the blendmode used to blend the source with the target.

Sets the fragment shader program used to draw.

Sets a model matrix for drawing.

Draws the rectangle.

impl<'a> DrawBuilder<'a, DrawBuilderRect>
[src]

The following implementations are only available when drawing with Renderer::rect()

Sets a view matrix for drawing.

Uses a view matrix that maps the dimensions of the target to the pixel-size of the target.

This is the default setting. It means that a point, e.g. (12., 34.) is mapped to the pixel (12, 34) on the target.

Uses a view matrix that maps the dimensions of the display to the pixel-size of the target.

Uses a view matrix that maps the dimensions of the source to the pixel-size of the target.

Uses a matrix that maps the entire target to a rectangle of (0., 0., 1., 1.)

Trait Implementations

impl<'a, T: Clone + 'a> Clone for DrawBuilder<'a, T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a, T> !Send for DrawBuilder<'a, T>

impl<'a, T> !Sync for DrawBuilder<'a, T>