19 #ifndef OPENXCOM_SCREEN_H
20 #define OPENXCOM_SCREEN_H
45 int _baseWidth, _baseHeight;
46 double _scaleX, _scaleY;
47 int _topBlackBand, _bottomBlackBand, _leftBlackBand, _rightBlackBand, _cursorTopBlackBand, _cursorLeftBlackBand;
49 int _zoomSurfaceY(SDL_Surface * src, SDL_Surface * dst,
int flipx,
int flipy);
50 SDL_Color deferredPalette[256];
51 int _numColors, _firstColor;
57 void makeVideoFlags();
59 static const int ORIGINAL_WIDTH;
60 static const int ORIGINAL_HEIGHT;
79 void setPalette(SDL_Color *colors,
int firstcolor = 0,
int ncolors = 256,
bool immediately =
false);
97 void screenshot(
const std::string &filename)
const;
103 static void updateScale(
int &type,
int selection,
int &x,
int &y,
bool change);
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:34
void clear()
Clears the screen.
Definition: Screen.cpp:217
Screen()
Creates a new display screen.
Definition: Screen.cpp:110
int getCursorTopBlackBand() const
Gets the screen's top black forbidden to cursor band's height.
Definition: Screen.cpp:477
static bool isOpenGLEnabled()
Checks whether OpenGL output is requested.
Definition: Screen.cpp:553
static void updateScale(int &type, int selection, int &x, int &y, bool change)
update the game scale as required.
Definition: Screen.cpp:588
double getXScale() const
Gets the screen's X scale.
Definition: Screen.cpp:459
void screenshot(const std::string &filename) const
Takes a screenshot.
Definition: Screen.cpp:495
int getCursorLeftBlackBand() const
Gets the screen's left black forbidden to cursor band's width.
Definition: Screen.cpp:486
~Screen()
Cleans up the display screen.
Definition: Screen.cpp:120
SDL_Color * getPalette() const
Gets the screen's 8bpp palette.
Definition: Screen.cpp:277
void handle(Action *action)
Handles keyboard events.
Definition: Screen.cpp:140
int getDY()
Get vertical offset.
Definition: Screen.cpp:575
int getDX()
Get horizontal offset.
Definition: Screen.cpp:566
double getYScale() const
Gets the screen's Y scale.
Definition: Screen.cpp:468
int getWidth() const
Gets the screen's width.
Definition: Screen.cpp:286
static bool isHQXEnabled()
Checks whether HQX is requested and works for the selected resolution.
Definition: Screen.cpp:531
Element that is blit (rendered) onto the screen.
Definition: Surface.h:39
int getHeight() const
Gets the screen's height.
Definition: Screen.cpp:295
void setPalette(SDL_Color *colors, int firstcolor=0, int ncolors=256, bool immediately=false)
Sets the screen's 8bpp palette.
Definition: Screen.cpp:231
Surface * getSurface()
Gets the internal buffer.
Definition: Screen.cpp:130
A display screen, handles rendering onto the game window.
Definition: Screen.h:40
void flip()
Renders the screen onto the game window.
Definition: Screen.cpp:184
void resetDisplay(bool resetVideo=true)
Resets the screen display.
Definition: Screen.cpp:305