pub struct Frame {
// some fields omitted
}A frame is a render target that can be drawn on.
Because frame rendering will wait on vsync, you should - as the name
implies - use one Frame instance per frame.
Trait Implementations
fn clear<C: Color>(&mut self, color: C)
fn with_scissor<F, R>(&mut self, x: u32, y: u32, w: u32, h: u32, f: F) -> R where F: FnOnce(&mut Self) -> R
fn draw_to_stencil<R, S>(&mut self, typ: StencilType, stencil_fn: S) -> R where S: FnOnce(&mut Self) -> R
fn apply_matrix(&mut self, other: [[Float; 4]; 4]) -> &mut Self
fn translate(&mut self, dx: Float, dy: Float) -> &mut Self
fn scale(&mut self, sx: Float, sy: Float) -> &mut Self
fn shear(&mut self, sx: Float, sy: Float) -> &mut Self
fn rotate(&mut self, theta: Float) -> &mut Self
fn with_matrix<F, R>(&mut self, f: F) -> R where F: FnOnce(&mut Self) -> R
fn with_rotation<F, R>(&mut self, rotation: Float, f: F) -> R where F: FnOnce(&mut Self) -> R
fn with_translate<F, R>(&mut self, dx: Float, dy: Float, f: F) -> R where F: FnOnce(&mut Self) -> R
fn with_scale<F, R>(&mut self, scale_x: Float, scale_y: Float, f: F) -> R where F: FnOnce(&mut Self) -> R
fn with_shear<F, R>(&mut self, sx: Float, sy: Float, f: F) -> R where F: FnOnce(&mut Self) -> R
impl HasDisplay for Frame
impl HasFontCache for Frame
impl HasSurface for Frame
impl HasDrawCache for Frame
impl HasPrograms for Frame
impl DrawParamMod for Frame
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct, enum,
trait, typedef (or
tdef).
Search functions by type signature (e.g.
vec -> usize)