CMT.h 669 B

12345678910111213141516171819202122232425
  1. /*
  2. * CMT.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. struct SDL_Texture;
  12. struct SDL_Renderer;
  13. struct SDL_Surface;
  14. extern SDL_Texture * screenTexture;
  15. extern SDL_Renderer * mainRenderer;
  16. extern SDL_Surface *screen;
  17. /// Notify user about encountered fatal error and terminate the game
  18. /// Defined in clientapp EntryPoint
  19. /// TODO: decide on better location for this method
  20. [[noreturn]] void handleFatalError(const std::string & message, bool terminate);
  21. void handleQuit(bool ask = true);