diff --git a/modules/gfx/src/entity.cc b/modules/gfx/src/entity.cc index 6c613225463b6a0da0777ecc3d2e5f4ea3215655..c14e4e16024055a383ae500611f58ae9d77e6f95 100644 --- a/modules/gfx/src/entity.cc +++ b/modules/gfx/src/entity.cc @@ -601,9 +601,19 @@ void Entity::SetOutlineExpandColor(const Color& c) Scene::Instance().RequestRedraw(); } +void Entity::SetClipOffset(float f) +{ + GfxObj::SetClipOffset(f); + for (RendererMap::iterator it=renderer_.begin(); it!=renderer_.end(); ++it) { + it->second->VA().SetClipOffset(f); + } + Scene::Instance().RequestRedraw(); + +} + void Entity::OnRenderModeChange() { - for (RendererMap::iterator i=renderer_.begin(), + for (RendererMap::iterator i=renderer_.begin(), e=renderer_.end(); i!=e; ++i) { i->second->ClearViews(); } diff --git a/modules/gfx/src/entity.hh b/modules/gfx/src/entity.hh index d3fe0ad928855e1c6fe41b40943a8439b50996fe..a9687c81c6e5d2f7c8da4b3ac67210eb7285fc3d 100644 --- a/modules/gfx/src/entity.hh +++ b/modules/gfx/src/entity.hh @@ -148,6 +148,7 @@ public: virtual void SetOutlineWidth(float f); virtual void SetOutlineExpandFactor(float f); virtual void SetOutlineExpandColor(const Color& c); + virtual void SetClipOffset(float f); /// \brief resets used entity handle /// replaces underlying entity, keeps query and flags intact