adding a text rendering option

This commit is contained in:
Able 2021-11-28 21:03:48 -06:00
parent 924ec6ba95
commit fbf52f64a9

View file

@ -33,6 +33,9 @@ pub trait AglApi {
fn paint_cursor(&mut self, coords: Point); fn paint_cursor(&mut self, coords: Point);
fn hide_cursor(); fn hide_cursor();
fn show_cursor(); fn show_cursor();
fn draw_text(&mut self, coords: Point, scale: u8, color: RGBA, text: String);
/// Actually move the double buffer to the single buffer and "update" the screen /// Actually move the double buffer to the single buffer and "update" the screen
fn draw(&mut self); fn draw(&mut self);
/// Setup the clear color to be used /// Setup the clear color to be used