Crate graphics_buffer[−][src]
Expand description
This library provides a buffer which can be used as a render target for Piston’s graphics library. This buffer can be loaded from and/or saved to a file on disk. This allows for things like screenshots in games.
There is also an optional feature for RenderBuffer
that allows it to be
converted into a G2dTexture
so that it can be rendered with
piston_window
. To
enable this, add features = ["piston_window_texture"]
to the graphics_buffer
dependency in your cargo.toml
. More about this feature can be found in
the RenderBuffer
documentation.
Structs
A buffer that can be rendered to with Piston’s graphics library.
Enums
An Error type for RenderBuffer
.
Constants
The identity matrix: [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]]
.
Functions
Create a BufferGlyphs
from some font data
Create a BufferGlyphs
from a path to some font
Type Definitions
A character cache for drawing text to a RenderBuffer
.