From 5ca4491aa46b7090189685fecf422ee7316de724 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Thu, 3 Jun 2021 15:07:53 +0200 Subject: Add tile drawing function for the framebuffer --- src/main.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 6226bcd..913043a 100644 --- a/src/main.c +++ b/src/main.c @@ -13,7 +13,6 @@ WITH REGARD TO THIS SOFTWARE. #include "filesystem.c" #include "renderer.c" -// #include "text.h" // // Config parameters. @@ -65,16 +64,11 @@ int main(void) { irq_init(); irs_set(IRQ_VBLANK, irs_stub); - draw_pixel(10, 0, 1); - draw_pixel(10, 1, 2); - draw_pixel(10, 2, 3); - draw_pixel(10, 3, 4); - draw_pixel( 0, 0, 1); - draw_pixel( 0, 1, 2); - draw_pixel( 0, 2, 3); - draw_pixel( 0, 3, 4); - txt_position(8, 8); - txt_printf("Hello world!"); + Tile *tile = FONT_DATA; + tile += 'A'; + draw_tile(0, 0, tile, true); + draw_tile(0, 4, tile, true); + draw_tile(4, 0, tile, true); // Main loop. PROF_INIT(); -- cgit v1.2.1