cocos2d-x  3.3rc0
 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)
local push_back ( local command)
ssize_t size () const
var size ()
local size ()
void sort ()
var sort ()
local sort ()
RenderCommandoperator[] (ssize_t index) const
void clear ()
var clear ()
local clear ()

Protected Attributes

std::vector< RenderCommand * > _queueNegZ
std::vector< RenderCommand * > _queue0
var _queue0
local _queue0
std::vector< RenderCommand * > _queuePosZ
var _queuePosZ
local _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 ( )
var clear ( )
local clear ( )
RenderCommand* operator[] ( ssize_t  index) const
RenderCommand* operator[] ( var  index)
RenderCommand* operator[] ( local  index)
void push_back ( RenderCommand command)
var push_back ( var  command)
local push_back ( local  command)
ssize_t size ( ) const
var size ( )
local size ( )
void sort ( )
var sort ( )
local sort ( )

Member Data Documentation

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

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