aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index f89e743..89d0444 100644
--- a/src/main.c
+++ b/src/main.c
@@ -21,7 +21,11 @@ WITH REGARD TO THIS SOFTWARE.
21 21
22void 22void
23render(void) { 23render(void) {
24 // TODO: Fix small font rendering.
25 // TODO: Draw remaining sprites.
26 // TODO: Decouple update from rendering.
24 PROF(screen_fill(0), clear_cycles); 27 PROF(screen_fill(0), clear_cycles);
28 PROF(draw_rect(0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1, 1), clear_cycles);
25 PROF(draw_triggers(), draw_trigs_cycles); 29 PROF(draw_triggers(), draw_trigs_cycles);
26 PROF(draw_channels(), draw_btn_cycles); 30 PROF(draw_channels(), draw_btn_cycles);
27 PROF(draw_pattern_buttons(), draw_btn_cycles); 31 PROF(draw_pattern_buttons(), draw_btn_cycles);
@@ -30,6 +34,10 @@ render(void) {
30 PROF(draw_play(), draw_btn_cycles); 34 PROF(draw_play(), draw_btn_cycles);
31 PROF(draw_stop(), draw_btn_cycles); 35 PROF(draw_stop(), draw_btn_cycles);
32 PROF(draw_piano(), draw_piano_cycles); 36 PROF(draw_piano(), draw_piano_cycles);
37 // TODO: Draw the notes currently playing with a fade off animation for the
38 // first 3 channels.
39 TriggerNote *trig = get_current_trig();
40 PROF(draw_note(trig->note, COL_NOTE_PRESSED), draw_piano_cycles);
33 PROF(draw_parameters(), draw_param_cycles); 41 PROF(draw_parameters(), draw_param_cycles);
34 PROF(draw_trig_cursor(trig_selection_loc, COL_CURSOR), draw_cursor_cycles); 42 PROF(draw_trig_cursor(trig_selection_loc, COL_CURSOR), draw_cursor_cycles);
35 PROF(draw_channel_cursor(channel_selection_loc, COL_GREY), draw_cursor_cycles); 43 PROF(draw_channel_cursor(channel_selection_loc, COL_GREY), draw_cursor_cycles);