7#ifndef MYGUI_RENDER_ITEM_H_
8#define MYGUI_RENDER_ITEM_H_
26 virtual ~RenderItem();
28 void renderToTarget(IRenderTarget* _target,
bool _update);
30 void setTexture(ITexture* _value);
31 ITexture* getTexture()
const;
33 void addDrawItem(ISubWidget* _item,
size_t _count);
34 void removeDrawItem(ISubWidget* _item);
35 void reallockDrawItem(ISubWidget* _item,
size_t _count);
38 bool isOutOfDate()
const;
40 size_t getNeedVertexCount()
const;
41 size_t getVertexCount()
const;
43 bool getCurrentUpdate()
const;
44 Vertex* getCurrentVertexBuffer()
const;
46 void setLastVertexCount(
size_t _count);
48 IRenderTarget* getRenderTarget();
50 void setNeedCompression(
bool _compression);
51 bool getNeedCompression()
const;
54 void rebuildGeometry(IRenderTarget* _target);
56 ITexture* mTexture{
nullptr};
58 size_t mNeedVertexCount{0};
60 bool mOutOfDate{
false};
64 size_t mCountVertex{0};
66 bool mCurrentUpdate{
true};
67 Vertex* mCurrentVertex{
nullptr};
68 size_t mLastVertexCount{0};
70 IVertexBuffer* mVertexBuffer{
nullptr};
71 IRenderTarget* mRenderTarget{
nullptr};
73 bool mNeedCompression{
false};
std::vector< DrawItemInfo > VectorDrawItem
std::pair< ISubWidget *, size_t > DrawItemInfo