mirror of https://github.com/axmolengine/axmol.git
Add Queue_count for render queues
This commit is contained in:
parent
75253d66ff
commit
3c635d044e
|
@ -129,7 +129,7 @@ RenderCommand* RenderQueue::operator[](ssize_t index) const
|
|||
void RenderQueue::clear()
|
||||
{
|
||||
_commands.clear();
|
||||
for(int index = GLOBALZ_NEG; index <= GLOBALZ_POS; ++index)
|
||||
for(int index = 0; index < QUEUE_COUNT; ++index)
|
||||
{
|
||||
_commands.push_back(std::vector<RenderCommand*>());
|
||||
}
|
||||
|
|
|
@ -56,6 +56,7 @@ public:
|
|||
GLOBALZ_ZERO = 3,
|
||||
GLOBALZ_POS = 4,
|
||||
QUEUE_GROUP_SIZE = 5,
|
||||
QUEUE_COUNT,
|
||||
};
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue