_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the documentation of this file.
55 #ifndef GCN_SDLGRAPHICS_HPP
56 #define GCN_SDLGRAPHICS_HPP
92 virtual void setTarget(SDL_Surface** surface);
101 virtual void drawSDLSurface(SDL_Surface* surface, SDL_Rect source,
102 SDL_Rect destination);
107 virtual void _beginDraw();
109 virtual void _endDraw();
111 virtual bool pushClipArea(
Rectangle area);
113 virtual void popClipArea();
115 virtual void drawImage(
const Image* image,
int srcX,
int srcY,
116 int dstX,
int dstY,
int width,
119 virtual void drawPoint(
int x,
int y);
121 virtual void drawLine(
int x1,
int y1,
int x2,
int y2);
123 virtual void drawRectangle(
const Rectangle& rectangle);
125 virtual void fillRectangle(
const Rectangle& rectangle);
127 virtual void setColor(
const Color& color);
129 virtual const Color& getColor();
139 virtual void drawHLine(
int x1,
int y,
int x2);
148 virtual void drawVLine(
int x,
int y1,
int y2);
156 #endif // end GCN_SDLGRAPHICS_HPP
Definition: graphics.h:97
SDL_Surface ** mTarget
Definition: sdlgraphics.h:150
virtual void drawImage(const Image *image, int srcX, int srcY, int dstX, int dstY, int width, int height)=0
Definition: cliprectangle.cpp:61
Definition: rectangle.h:65
Color mColor
Definition: sdlgraphics.h:151
Definition: sdlgraphics.h:73
bool mAlpha
Definition: sdlgraphics.h:152
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.