void font_render_char(font *font, char ch, int x, int y, color c) { int code = ch - 32; texture **tex = NULL; if (code < 0) { return; } tex = vector_get(&font->textures, code); video_render_char(*tex, x, y, c); }
void render_highlights(scene *scene) { int trans; if (scene->player2.selectable && row_a == row_b && column_a == column_b) { video_render_char(&select_hilight, 11 + (62*column_a), 115 + (42*row_a), 250 - ticks , 0, 250 - ticks); } else { if (scene->player2.selectable) { if (done_b) { trans = 250; } else { trans = 250 - ticks; } video_render_char(&select_hilight, 11 + (62*column_b), 115 + (42*row_b), 0 , 0, trans); } if (done_a) { trans = 250; } else { trans = 250 - ticks; } video_render_char(&select_hilight, 11 + (62*column_a), 115 + (42*row_a), trans, 0, 0); } }