Struct graphics_buffer::RenderBuffer[][src]

pub struct RenderBuffer { /* fields omitted */ }
Expand description

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

Implementations

Create a new RenderBuffer with the given witdth or height.

Creates a new RenderBuffer by opening it from a file.

Creates a new RenderBuffer by decoding image data.

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.

Creates a G2dTexture from the RenderBuffer for drawing to a PistonWindow.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Create texture from memory.

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Performs the conversion.

Performs the conversion.

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

Same as tri_list, but with individual vertex colors. Read more

Same as tri_list_uv, but with individual vertex colors. 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

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Get the image size.

Gets the image width.

Gets the image height.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The error when performing an operation.

Update the texture. 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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.