CMT.h 656 B

1234567891011121314151617
  1. #pragma once
  2. #include <SDL_render.h>
  3. #include "../lib/CondSh.h"
  4. extern SDL_Texture * screenTexture;
  5. extern SDL_Window * mainWindow;
  6. extern SDL_Renderer * mainRenderer;
  7. extern SDL_Surface *screen; // main screen surface
  8. extern SDL_Surface *screen2; // and hlp surface (used to store not-active interfaces layer)
  9. 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
  10. extern CondSh<bool> serverAlive; //used to prevent game start from executing if server is already running
  11. void removeGUI();
  12. void handleQuit(bool ask = true);