7#ifndef MYGUI_RENDER_ITEM_H_
8#define MYGUI_RENDER_ITEM_H_
33 void setManualRender(
bool _value);
34 bool getManualRender()
const;
36 void addDrawItem(
ISubWidget* _item,
size_t _count);
38 void reallockDrawItem(
ISubWidget* _item,
size_t _count);
41 bool isOutOfDate()
const;
43 size_t getNeedVertexCount()
const;
44 size_t getVertexCount()
const;
46 bool getCurrentUpdate()
const;
47 Vertex* getCurrentVertexBuffer()
const;
49 void setLastVertexCount(
size_t _count);
53 void setNeedCompression(
bool _compression);
54 bool getNeedCompression()
const;
59 size_t mNeedVertexCount{0};
61 bool mOutOfDate{
false};
65 size_t mCountVertex{0};
67 bool mCurrentUpdate{
true};
68 Vertex* mCurrentVertex{
nullptr};
69 size_t mLastVertexCount{0};
74 bool mNeedCompression{
false};
75 bool mManualRender{
false};
std::vector< DrawItemInfo > VectorDrawItem
std::pair< ISubWidget *, size_t > DrawItemInfo