From fbf52f64a9baa17f1331f87e8a118bd1aa81338c Mon Sep 17 00:00:00 2001 From: Able Date: Sun, 28 Nov 2021 21:03:48 -0600 Subject: [PATCH] adding a text rendering option --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index fcf40e7..3fc8c35 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -33,6 +33,9 @@ pub trait AglApi { fn paint_cursor(&mut self, coords: Point); fn hide_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 fn draw(&mut self); /// Setup the clear color to be used