cocos2d-x
3.3
|
Class that knows how to sort RenderCommand
objects.
More...
#include <CCRenderer.h>
Public Member Functions | |
void | push_back (RenderCommand *command) |
ssize_t | size () const |
void | sort () |
RenderCommand * | operator[] (ssize_t index) const |
void | clear () |
Protected Attributes | |
std::vector< RenderCommand * > | _queueNegZ |
std::vector< RenderCommand * > | _queue0 |
std::vector< RenderCommand * > | _queuePosZ |
Class that knows how to sort RenderCommand
objects.
Since the commands that have z == 0
are "pushed back" in the correct order, the only RenderCommand
objects that need to be sorted, are the ones that have z < 0
and z > 0
.
void clear | ( | ) |
RenderCommand* operator[] | ( | ssize_t | index | ) | const |
void push_back | ( | RenderCommand * | command | ) |
ssize_t size | ( | ) | const |
void sort | ( | ) |
|
protected |
|
protected |
|
protected |