Struct bufro::Renderer [−][src]
pub struct Renderer { /* fields omitted */ }
Expand description
A basic window-less renderer (though you can always just load the function pointers of a window)
Implementations
impl Renderer
[src]
impl Renderer
[src]pub fn new<F: FnMut(&str) -> *const c_void>(function_loader: F) -> Self
[src]
pub fn flush(&mut self)
[src]
pub fn triangle(&mut self, x: f32, y: f32)
[src]
pub fn rect(
&mut self,
x: f32,
y: f32,
width: f32,
height: f32,
angle: f32,
color: Color
)
[src]
&mut self,
x: f32,
y: f32,
width: f32,
height: f32,
angle: f32,
color: Color
)