Пример #1
0
void Display()
{
  // Clear colour and depth buffers
  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

  switch (state)
  {
    case MENU:
      game->Draw();
      menuManager.Draw();
      break;
      
    case GAME:
      game->Draw();
      break;
  }  
  
  glutSwapBuffers();
}
void TitleScreen::Draw(ALLEGRO_DISPLAY *display)
{
	//al_draw_text(font,al_map_rgb(255,0,0),100,100,NULL,"TitleScreen");
	menu.Draw(display);
}