diff options
author | Denis Kasak | 2009-06-22 20:13:25 +0000 |
---|---|---|
committer | Denis Kasak | 2009-06-22 20:13:25 +0000 |
commit | f5e39fa61d9a2ca46010c37701bd11547e3aa27f (patch) | |
tree | 91de8cfe2d6fb1755cc625df8be0fe88fdc12382 /engines/draci/surface.cpp | |
parent | 8c3e1b0e8dd66e5c8eaa87f405a2d940c9e858ec (diff) | |
download | scummvm-rg350-f5e39fa61d9a2ca46010c37701bd11547e3aa27f.tar.gz scummvm-rg350-f5e39fa61d9a2ca46010c37701bd11547e3aa27f.tar.bz2 scummvm-rg350-f5e39fa61d9a2ca46010c37701bd11547e3aa27f.zip |
* Expanded docs for the Sprite class
* Added Surface and Screen docs
* Small documentation fixes
svn-id: r41779
Diffstat (limited to 'engines/draci/surface.cpp')
-rw-r--r-- | engines/draci/surface.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/engines/draci/surface.cpp b/engines/draci/surface.cpp index 1c7fce08b5..148c24633b 100644 --- a/engines/draci/surface.cpp +++ b/engines/draci/surface.cpp @@ -38,6 +38,10 @@ Surface::~Surface() { this->free(); } +/** + * @brief Marks a dirty rectangle on the surface + * @param r The rectangle to be marked dirty + */ void Surface::markDirtyRect(Common::Rect r) { Common::List<Common::Rect>::iterator it; @@ -61,31 +65,54 @@ void Surface::markDirtyRect(Common::Rect r) { _dirtyRects.push_back(r); } +/** + * @brief Clears all dirty rectangles + * + */ void Surface::clearDirtyRects() { _dirtyRects.clear(); } +/** + * @brief Marks the whole surface dirty + */ void Surface::markDirty() { _fullUpdate = true; } +/** + * @brief Marks the whole surface clean + */ void Surface::markClean() { _fullUpdate = false; _dirtyRects.clear(); } +/** + * @brief Checks whether the surface needs a full update + */ bool Surface::needsFullUpdate() { return _fullUpdate; } +/** + * @brief Fetches the surface's dirty rectangles + * @return A pointer a list of dirty rectangles + */ Common::List<Common::Rect> *Surface::getDirtyRects() { return &_dirtyRects; } +/** + * @brief Returns the current transparent colour of the surface + */ uint8 Surface::getTransparentColour() { return _transparentColour; } +/** + * @brief Sets the surface's transparent colour + */ void Surface::setTransparentColour(uint8 colour) { _transparentColour = colour; } |