CMT.h 780 B

1234567891011121314151617181920212223242526
  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_Window;
  13. struct SDL_Renderer;
  14. struct SDL_Surface;
  15. extern SDL_Texture * screenTexture;
  16. extern SDL_Window * mainWindow;
  17. extern SDL_Renderer * mainRenderer;
  18. extern SDL_Surface *screen; // main screen surface
  19. extern SDL_Surface *screen2; // and hlp surface (used to store not-active interfaces layer)
  20. extern SDL_Surface *screenBuf; // points to screen (if only advmapint is present) or screen2 (else) - should be used when updating controls which are not regularly redrawed
  21. void handleQuit(bool ask = true);