55 #ifndef GCN_SDLGRAPHICS_HPP
56 #define GCN_SDLGRAPHICS_HPP
92 virtual void setTarget(SDL_Surface* target);
99 virtual SDL_Surface* getTarget()
const;
108 virtual void drawSDLSurface(SDL_Surface* surface, SDL_Rect source,
109 SDL_Rect destination);
114 virtual void _beginDraw();
116 virtual void _endDraw();
118 virtual bool pushClipArea(
Rectangle area);
120 virtual void popClipArea();
122 virtual void drawImage(
const Image* image,
int srcX,
int srcY,
123 int dstX,
int dstY,
int width,
126 virtual void drawPoint(
int x,
int y);
128 virtual void drawLine(
int x1,
int y1,
int x2,
int y2);
130 virtual void drawRectangle(
const Rectangle& rectangle);
132 virtual void fillRectangle(
const Rectangle& rectangle);
134 virtual void setColor(
const Color& color);
136 virtual const Color& getColor();
146 virtual void drawHLine(
int x1,
int y,
int x2);
155 virtual void drawVLine(
int x,
int y1,
int y2);
163 #endif // end GCN_SDLGRAPHICS_HPP
bool mAlpha
Definition: sdlgraphics.h:159
SDL_Surface * mTarget
Definition: sdlgraphics.h:157
Definition: graphics.h:97
Color mColor
Definition: sdlgraphics.h:158
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
Definition: sdlgraphics.h:73