22 mOutOfDateCompression(false),
98 (*iter)->renderToTarget(_target, _update);
101 (*iter)->renderToTarget(_target, _update);
105 (*iter)->renderToTarget(_target, _update);
115 (*iter)->resizeLayerItemView(oldSize, _viewSize);
202 if ((*iter)->getTexture() == _texture)
206 else if ((*iter)->getNeedVertexCount() == 0)
235 if ((*iter) == _item)
276 bool need_compression =
false;
279 if ((*iter)->getNeedCompression())
281 need_compression =
true;
286 if (!need_compression)
299 (*iter)->setNeedCompression(
false);
301 if ((*iter)->getNeedVertexCount() == 0 && !(*iter)->getManualRender())
302 emptyItems.push_back(*iter);
304 nonEmptyItems.push_back(*iter);
307 nonEmptyItems.insert(nonEmptyItems.end(), emptyItems.begin(), emptyItems.end());
326 if ((*item)->isOutOfDate())
332 if ((*item)->isOutOfDate())
#define MYGUI_EXCEPT(dest)
#define MYGUI_ASSERT_RANGE(index, size, owner)
virtual const IntSize & getSize() const =0
virtual void attachItemToNode(ILayer *_layer, ILayerNode *_node)=0
virtual ILayerItem * getLayerItemByPoint(int _left, int _top) const =0
virtual const RenderTargetInfo & getInfo() const =0
float getNodeDepth() const override
ILayerNode * getParent() const override
VectorRenderItem mSecondRenderItems
ILayerNode * createChildItemNode() override
VectorLayerItem mLayerItems
ILayer * getLayer() const override
size_t getLayerNodeCount() const override
void attachLayerItem(ILayerItem *_item) override
void detachLayerItem(ILayerItem *_item) override
void destroyChildItemNode(ILayerNode *_node) override
VectorRenderItem mFirstRenderItems
void upChildItemNode(ILayerNode *_node) override
EnumeratorILayerNode getEnumerator() const override
void renderToTarget(IRenderTarget *_target, bool _update) override
void resizeView(const IntSize &_viewSize) override
RenderItem * addToRenderItem(ITexture *_texture, bool _firstQueue, bool _manualRender) override
VectorILayerNode mChildItems
ILayerItem * getLayerItemByPoint(int _left, int _top) const override
void outOfDate(RenderItem *_item) override
RenderItem * addToRenderItemFirstQueue(ITexture *_texture, bool _manualRender)
LayerNode(ILayer *_layer, ILayerNode *_parent=nullptr)
RenderItem * addToRenderItemSecondQueue(ITexture *_texture, bool _manualRender)
ILayerNode * getLayerNodeAt(size_t _index) const override
bool mOutOfDateCompression
void setManualRender(bool _value)
void setTexture(ITexture *_value)
bool getManualRender() const
ITexture * getTexture() const
std::vector< RenderItem * > VectorRenderItem
Enumerator< VectorILayerNode > EnumeratorILayerNode