Struct graphics_buffer::RenderBuffer[][src]

pub struct RenderBuffer { /* fields omitted */ }

A buffer that can be rendered to with Piston's graphics library.

Methods

impl RenderBuffer
[src]

Create a new RenderBuffer with the given witdth or height.

Creates a new RenderBuffer by opening it from a file.

Clear the buffer with a color.

Returns the color of the pixel at the given coordinates.

Sets the color of the pixel at the given coordinates.

Trait Implementations

impl Debug for RenderBuffer
[src]

Formats the value using the given formatter. Read more

impl Clone for RenderBuffer
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<RgbaImage> for RenderBuffer
[src]

Performs the conversion.

impl From<DynamicImage> for RenderBuffer
[src]

Performs the conversion.

impl Deref for RenderBuffer
[src]

The resulting type after dereferencing.

Dereferences the value.

impl ImageSize for RenderBuffer
[src]

Get the image size.

Gets the image width.

Gets the image height.

impl Graphics for RenderBuffer
[src]

The texture type associated with the back-end. Read more

Clears background with a color. Read more

Clears stencil buffer with a value, usually 0. Read more

Renders list of 2d triangles using a solid color. Read more

Renders list of 2d triangles using a color and a texture. Read more

Draws a rectangle. Read more

Draws a polygon. Read more

Draws a tweened polygon using linear interpolation. Read more

Draws image. Read more

Draws ellipse. Read more

Draws line. Read more

Draws circle arc. Read more

Draws deformed image. Read more

Auto Trait Implementations