diff options
author | Vicent Marti | 2008-05-07 22:51:45 +0000 |
---|---|---|
committer | Vicent Marti | 2008-05-07 22:51:45 +0000 |
commit | 46fada31b72c4fab68d857a5fa16b57d059f4117 (patch) | |
tree | 224b5fa44eb92d693ea0987d41f726d0d53ca774 /graphics/VectorRenderer.h | |
parent | ba6c4a6239d5496f0f218d8fa76c11e77bf9139e (diff) | |
download | scummvm-rg350-46fada31b72c4fab68d857a5fa16b57d059f4117.tar.gz scummvm-rg350-46fada31b72c4fab68d857a5fa16b57d059f4117.tar.bz2 scummvm-rg350-46fada31b72c4fab68d857a5fa16b57d059f4117.zip |
- Fixed compiling in MSVC2008
- Aliased circles optimized (drawn using pointers directly)
- Filling for aliased circles
- Rounded squares
- Filling for rounded squares
svn-id: r31936
Diffstat (limited to 'graphics/VectorRenderer.h')
-rw-r--r-- | graphics/VectorRenderer.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h index 96b0698de7..a49170c56a 100644 --- a/graphics/VectorRenderer.h +++ b/graphics/VectorRenderer.h @@ -77,6 +77,8 @@ public: virtual void drawSquare(int x, int y, int w, int h, bool fill) = 0; + virtual void drawRoundedSquare(int x1, int y1, int r, int w, int h) = 0; + /** * Gets the pixel pitch for the current drawing surface. * Note: This is a real pixel-pitch, not a byte-pitch. @@ -178,6 +180,8 @@ protected: */ virtual void drawCircleAlg(int x, int y, int r) = 0; + virtual void drawRoundedSquareAlg(int x1, int y1, int r, int w, int h) = 0; + Surface *_activeSurface; /** Pointer to the surface currently being drawn */ }; @@ -218,6 +222,10 @@ public: void drawSquare(int x, int y, int w, int h, bool fill); + void drawRoundedSquare(int x1, int y1, int r, int w, int h) { + drawRoundedSquareAlg( x1, y1, r, w, h ); + } + /** * @see VectorRenderer::setColor() */ @@ -269,6 +277,9 @@ protected: */ virtual void drawCircleAlg(int x, int y, int r); + virtual void drawRoundedSquareAlg(int x1, int y1, int r, int w, int h) { + } + PixelType _color; /** Color currently being used to draw on the renderer */ }; @@ -337,6 +348,8 @@ protected: * @see VectorRenderer::drawCircleAlg() */ virtual void drawCircleAlg(int x, int y, int r); + + virtual void drawRoundedSquareAlg(int x1, int y1, int r, int w, int h); }; } // end of namespace Graphics |