_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
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_GRAPHICS_HPP
56 #define GCN_GRAPHICS_HPP
139 virtual bool pushClipArea(
Rectangle area);
146 virtual void popClipArea();
177 virtual void drawImage(
const Image* image,
int srcX,
int srcY,
178 int dstX,
int dstY,
int width,
186 virtual void drawImage(
const Image* image,
int dstX,
int dstY);
194 virtual void drawPoint(
int x,
int y) = 0;
204 virtual void drawLine(
int x1,
int y1,
int x2,
int y2) = 0;
211 virtual void drawRectangle(
const Rectangle& rectangle) = 0;
218 virtual void fillRectangle(
const Rectangle& rectangle) = 0;
225 virtual void setColor(
const Color& color) = 0;
232 virtual const Color& getColor() = 0;
239 virtual void setFont(
Font* font);
250 virtual void drawText(
const std::string& text,
int x,
int y,
unsigned int alignment = LEFT,
bool is_normal =
true);
267 #endif // end GCN_GRAPHICS_HPP
virtual void _beginDraw()
Definition: graphics.h:115
@ CENTER
Definition: graphics.h:257
Definition: graphics.h:97
virtual void _endDraw()
Definition: graphics.h:126
Definition: cliprectangle.h:67
Definition: cliprectangle.cpp:61
Definition: rectangle.h:65
std::stack< ClipRectangle > mClipStack
Definition: graphics.h:262
Font * mFont
Definition: graphics.h:263
static std::list< CGraphic * > Graphics
Definition: graphic.cpp:58
virtual ~Graphics()
Definition: graphics.h:102
(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.