mirror of
https://github.com/IllusionMan1212/cudoku.git
synced 2026-10-24 18:12:25 +00:00
help overlay
This commit is contained in:
@@ -151,11 +151,20 @@ int main(int argc, char *argv[]) {
|
||||
last_t = now;
|
||||
|
||||
if (!use_texture) {
|
||||
draw_grid(window_size);
|
||||
draw_board(&game, window_size);
|
||||
}
|
||||
|
||||
draw_timer(&game.timer);
|
||||
|
||||
if (timer_ended(&game.help_timer)) {
|
||||
timer_stop(&game.help_timer);
|
||||
game.should_draw_help = false;
|
||||
}
|
||||
|
||||
if (game.should_draw_help) {
|
||||
draw_help(&game.help_timer);
|
||||
}
|
||||
|
||||
if (game.has_won) {
|
||||
draw_win(&game);
|
||||
}
|
||||
@@ -222,14 +231,6 @@ int main(int argc, char *argv[]) {
|
||||
/* /1* draw_text_at(font_shader, text, text_pos, text_scale, font_vao, font_vbo, (float *)projection.m, &text_color); *1/ */
|
||||
/* /1* } *1/ */
|
||||
|
||||
/* if (timer_ended(&game.help_timer)) { */
|
||||
/* timer_stop(&game.help_timer); */
|
||||
/* game.should_draw_help = false; */
|
||||
/* } */
|
||||
|
||||
/* /1* if (game.should_draw_help) *1/ */
|
||||
/* /1* draw_help_overlay(selection_shader, font_shader, selection_vao, selection_vbo, font_vao, font_vbo, &projection, height, &game.help_timer); *1/ */
|
||||
|
||||
/* /1* glXSwapBuffers(display, window); *1/ */
|
||||
/* } */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user