cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RenderQueue Class Reference

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 ()
 
RenderCommandoperator[] (ssize_t index) const
 
void clear ()
 

Protected Attributes

std::vector< RenderCommand * > _queueNegZ
 
std::vector< RenderCommand * > _queue0
 
std::vector< RenderCommand * > _queuePosZ
 

Detailed Description

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.

Member Function Documentation

void clear ( )
RenderCommand* operator[] ( ssize_t  index) const
void push_back ( RenderCommand command)
ssize_t size ( ) const
void sort ( )

Member Data Documentation

std::vector<RenderCommand*> _queue0
protected
std::vector<RenderCommand*> _queueNegZ
protected
std::vector<RenderCommand*> _queuePosZ
protected

The documentation for this class was generated from the following file: