diff options
author | Paul Gilbert | 2015-05-19 07:37:55 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-05-19 07:37:55 -0400 |
commit | 1df183ffcb08a69ed414afd69284a0596fee4e82 (patch) | |
tree | f1129f74eb64fd57cb4aac40836303ac6a495bbe /engines/sherlock/surface.h | |
parent | 0faf1c0b8f5c52cde1addae3e14469fc5fa9b9a2 (diff) | |
download | scummvm-rg350-1df183ffcb08a69ed414afd69284a0596fee4e82.tar.gz scummvm-rg350-1df183ffcb08a69ed414afd69284a0596fee4e82.tar.bz2 scummvm-rg350-1df183ffcb08a69ed414afd69284a0596fee4e82.zip |
SHERLOCK: Move method comments from cpp to headers
Diffstat (limited to 'engines/sherlock/surface.h')
-rw-r--r-- | engines/sherlock/surface.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/engines/sherlock/surface.h b/engines/sherlock/surface.h index b2a759aa8d..7049d8ae76 100644 --- a/engines/sherlock/surface.h +++ b/engines/sherlock/surface.h @@ -33,6 +33,9 @@ class Surface : public Graphics::Surface { private: bool _freePixels; + /** + * Clips the given source bounds so the passed destBounds will be entirely on-screen + */ bool clip(Common::Rect &srcBounds, Common::Rect &destBounds); protected: virtual void addDirtyRect(const Common::Rect &r) {} @@ -41,19 +44,53 @@ public: Surface(); virtual ~Surface(); + /** + * Sets up an internal surface with the specified dimensions that will be automatically freed + * when the surface object is destroyed + */ void create(uint16 width, uint16 height); + + /** + * Copy a surface into this one + */ void blitFrom(const Graphics::Surface &src); + + /** + * Draws a surface at a given position within this surface + */ void blitFrom(const Graphics::Surface &src, const Common::Point &pt); + + /** + * Draws a sub-section of a surface at a given position within this surface + */ void blitFrom(const Graphics::Surface &src, const Common::Point &pt, const Common::Rect &srcBounds); + + /** + * Draws an image frame at a given position within this surface with transparency + */ void transBlitFrom(const ImageFrame &src, const Common::Point &pt, bool flipped = false, int overrideColor = 0); + + /** + * Draws a surface at a given position within this surface with transparency + */ void transBlitFrom(const Graphics::Surface &src, const Common::Point &pt, bool flipped = false, int overrideColor = 0); + /** + * Fill a given area of the surface with a given color + */ void fillRect(int x1, int y1, int x2, int y2, byte color); + + /** + * Fill a given area of the surface with a given color + */ void fillRect(const Common::Rect &r, byte color); + /** + * Clear the screen + */ void clear(); }; |