aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorMax Horn2008-12-31 13:43:50 +0000
committerMax Horn2008-12-31 13:43:50 +0000
commit1c0fe874102d1abfa980ce30f3aeda6fc51046d5 (patch)
treedb5ea70773d00aeb6ad27bca3cda64a57bbd8f02 /graphics
parent6f24756a1536c6ffe32b14c47b3df03b3b0f0a21 (diff)
downloadscummvm-rg350-1c0fe874102d1abfa980ce30f3aeda6fc51046d5.tar.gz
scummvm-rg350-1c0fe874102d1abfa980ce30f3aeda6fc51046d5.tar.bz2
scummvm-rg350-1c0fe874102d1abfa980ce30f3aeda6fc51046d5.zip
Clarified some ImageMan doxygen comments
svn-id: r35629
Diffstat (limited to 'graphics')
-rw-r--r--graphics/imageman.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/graphics/imageman.h b/graphics/imageman.h
index 474b0dade5..a43a4c39e6 100644
--- a/graphics/imageman.h
+++ b/graphics/imageman.h
@@ -41,28 +41,29 @@ public:
~ImageManager();
/**
- * adds an .zip archive to the pool where the ImageManager searches
- * for image files
+ * Adds a directory or .zip archive to the list of places where
+ * the ImageManager searches for image files.
*
- * @param name the name of the archive (has to be full path)
+ * @param name an FSNode pointing to the archive
* @return true on success and false on failure
*/
bool addArchive(const Common::String &name);
/**
- * deletes an .zip archive from the pool where the Image Manager searches
- * for image files
+ * Removes a directory or .zip archive from the the list of places where
+ * the ImageManager searches for image files.
*
* @param name the name of the archive
*/
void removeArchive(const Common::String &name);
/**
- * registers a surface to the ImageManager.
- * surf->free(), also delete surf, will be called when the ImageManager will
- * be destroyed or if ImageManager::unregisterSurface is called.
- * if the parameter 'surf' is 0 the Manger will try to load an image with
- * the filename 'name'
+ * Registers a surface with the ImageManager.
+ * The ImageManager takes over ownership of the surface, in particular
+ * when the surface gets unregistered, Surface::free() is invoked and
+ * the surface gets deleted by the ImageManager.
+ * If the parameter 'surf' is 0 the ImageManager tries to load an image with
+ * the filename 'name'.
*
* @param name the name of the new handle
* @param surf the surface which should be associated to the given name
@@ -71,8 +72,9 @@ public:
bool registerSurface(const Common::String &name, Surface *surf);
/**
- * unregisters a surface, after this the returned surface from
- * getSurface should NOT be used anymore
+ * Unregisters and delete a surface which was previously registered
+ * with the ImageManager. After unregistering a surface, it must NOT
+ * be used anymore.
*
* @param name the handle
* @return true on success, false on failure
@@ -80,9 +82,9 @@ public:
bool unregisterSurface(const Common::String &name);
/**
- * gets a surface registered to a handle
+ * Gets a surface registered to a certain name.
*
- * @param name the name of the handle
+ * @param name the name of the surface
* @return returns an pointer to an Surface object or 0 on failure
*/
Surface *getSurface(const Common::String &name);