Mercurial > fife-parpg
diff engine/core/view/renderers/instancerenderer.h @ 591:378b588216d6
* Improved addTransparentArea(). Now you can set a list with namespaces.
author | helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 13 Aug 2010 20:28:52 +0000 |
parents | d1df6cf5ff23 |
children | e3140f01749d |
line wrap: on
line diff
--- a/engine/core/view/renderers/instancerenderer.h Fri Aug 13 16:42:09 2010 +0000 +++ b/engine/core/view/renderers/instancerenderer.h Fri Aug 13 20:28:52 2010 +0000 @@ -24,6 +24,7 @@ // Standard C++ library includes #include <string> +#include <list> // 3rd party library includes @@ -68,7 +69,7 @@ /** Marks given instance to have an transparent area with given paramters */ - void addTransparentArea(Instance* instance, const std::string &groups, unsigned int w, unsigned int h, unsigned char trans, bool front = true); + void addTransparentArea(Instance* instance, const std::list<std::string> &groups, unsigned int w, unsigned int h, unsigned char trans, bool front = true); /** Removes instance from outlining list */ @@ -133,7 +134,8 @@ class AreaInfo { public: Instance* instance; - std::string groups; + //std::string groups; + std::list<std::string> groups; unsigned int w; unsigned int h; unsigned char trans;