Beispiel #1
0
void WidgetOwner::CallWidgets_AppendVertices(std::vector<Vertex_2f_2f_4f_1f>& vertices)
{
	const std::vector<Widget*>& widgets = GetWidgets();
	for (auto i = widgets.rbegin(); i != widgets.rend(); ++i)
	{
		Widget* widget = *i;
		if (widget->IsVisible())
			widget->RenderVertices(vertices);
	}
}
Beispiel #2
0
        void    Widget::RenderChildren(RenderTarget& target, RenderQueue& queue) const
        {
            if (!mVisible)
                return;

            for (Widgets::const_iterator it = mChildren.begin(); it != mChildren.end(); ++it)
            {
                Widget* widg = *it;

                if (widg->IsVisible())
                    target.Draw(*widg);
            }
        }