void exit_engine_renderer(void)
{
    glDisable(GL_BLEND);
    er.vao = rm_vao(er.vao, 2);
    er.win = rm_win(er.win);
    glfwTerminate();
}
Example #2
0
// Shows the inventory
void
show_inventory(void)
{
  WINDOW * w_inv;
  COORDS co;
  int t_freeze;

  w_inv = create_win(0, 0, 0, 0, 1, CP_WHITEBLUE);
  co = get_geometry(w_inv);
  set_winstr(w_inv, (co.x - (int) strlen("INVENTORY")) / 2, 1, A_BOLD,
             CP_WHITEBLUE, "INVENTORY");

  t_freeze = pause_game();
  set_inputmode(IM_KEYPRESS);
  getch();
  rm_win(w_inv);
  resume_game(t_freeze);
}