CMT.h 869 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. #include <SDL_render.h>
  12. #include "../lib/CondSh.h"
  13. extern SDL_Texture * screenTexture;
  14. extern SDL_Window * mainWindow;
  15. extern SDL_Renderer * mainRenderer;
  16. extern SDL_Surface * screen; // main screen surface
  17. extern SDL_Surface * screen2; // and hlp surface (used to store not-active interfaces layer)
  18. 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
  19. extern CondSh<bool> serverAlive; //used to prevent game start from executing if server is already running
  20. void removeGUI();
  21. void handleQuit(bool ask = true);