Skip to content
Snippets Groups Projects
Commit 2e14b53f authored by Julien Michel's avatar Julien Michel
Browse files

ENH: Inverting GlComponent rendering order

parent b1f03ee0
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ public:
typedef typename GlComponentType::PointType PointType;
typedef ObjectList<GlComponentType> GlComponentListType;
typedef typename GlComponentListType::Pointer GlComponentListPointerType;
typedef typename GlComponentListType::Iterator GlComponentIteratorType;
typedef typename GlComponentListType::ReverseIterator GlComponentIteratorType;
/** Reads the OpenGl buffer from an image pointer
* \param image The image pointer,
......
......@@ -231,8 +231,8 @@ ImageWidget<TInputImage>
}
// Render additionnal GlComponents
for(GlComponentIteratorType it = m_GlComponents->Begin();
it!=m_GlComponents->End();++it)
for(GlComponentIteratorType it = m_GlComponents->ReverseBegin();
it!=m_GlComponents->ReverseEnd();++it)
{
if(it.Get()->GetVisible())
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment