Advanced Strategic Command
graphics.h
Go to the documentation of this file.
1 /***************************************************************************
2  sdlgraph.h - description
3  -------------------
4  begin : Sat Dec 18 1999
5  copyright : (C) 1999 by Martin Bickel
6  email : bickel@asc-hq.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 
19 #ifndef graphicsH
20 #define graphicsH
21 
22 #include "../global.h"
23 #include "../palette.h"
24 #include "../basegfx.h"
25 #include "../graphics/surface.h"
26 
27 
28 
29 //*********** Initialization ************
30 
31 extern void initASCGraphicSubsystem ( SDL_Surface* screen );
32 extern void shutdownASCGraphicSubsystem();
33 
34 //*********** Misc ************
35 
36 
37 extern int copy2screen( void );
38 extern int copy2screen( int x1, int y1, int x2, int y2 );
39 
40 // extern SDL_Surface* getScreen();
41 
42 extern Surface& getActiveSurface();
43 
44 class MouseHider {
45  int x;
46  int y;
47  bool locked;
48  public:
49  MouseHider();
50  void unlock();
51  ~MouseHider();
52 };
53 
54 
55 #endif
void initASCGraphicSubsystem(SDL_Surface *screen)
Definition: graphics.cpp:42
void unlock()
Definition: graphics.cpp:151
Surface & getActiveSurface()
Definition: graphics.cpp:82
int copy2screen(void)
Definition: graphics.cpp:91
void shutdownASCGraphicSubsystem()
Definition: graphics.cpp:69
SDL_Surface * screen
Definition: graphics.cpp:31