aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-06-04 10:53:24 +0200
committerBad Diode <bd@badd10de.dev>2021-06-04 10:53:24 +0200
commitaedaa7ade0ed623d09b18a34023f2e02201e67e6 (patch)
tree98af99d9c83c00ba8b1bff64c1cf59380a0df3e4 /src/main.c
parent0578a6db65f81f868c527aadfb57a89875d09d94 (diff)
downloadstepper-aedaa7ade0ed623d09b18a34023f2e02201e67e6.tar.gz
stepper-aedaa7ade0ed623d09b18a34023f2e02201e67e6.zip
Add slow rect drawing primitive to renderer
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 61547c8..ab41915 100644
--- a/src/main.c
+++ b/src/main.c
@@ -64,12 +64,14 @@ int main(void) {
64 irq_init(); 64 irq_init();
65 irs_set(IRQ_VBLANK, irs_stub); 65 irs_set(IRQ_VBLANK, irs_stub);
66 66
67 txt_drawf("Hello world: %d", 4, 4, 6, 10);
68 67
69 // Main loop. 68 // Main loop.
70 PROF_INIT(); 69 PROF_INIT();
71 while (true) { 70 while (true) {
72 bios_vblank_wait(); 71 bios_vblank_wait();
72 txt_drawf("Hello world: %d", 4, 4, 6, 10);
73 draw_rect(30, 30, 45, 45, 1);
74 draw_rect(35, 35, 60, 40, 2);
73 PROF_SHOW(); 75 PROF_SHOW();
74 PROF(flip_buffer(), flip_cycles); 76 PROF(flip_buffer(), flip_cycles);
75 } 77 }