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

Base class of the RenderCommand hierarchy. More...

#include <CCRenderCommand.h>

Inheritance diagram for RenderCommand:
BatchCommand CustomCommand GroupCommand MeshCommand PrimitiveCommand QuadCommand TrianglesCommand

Public Types

enum  Type {
  UNKNOWN_COMMAND, QUAD_COMMAND, CUSTOM_COMMAND, BATCH_COMMAND,
  GROUP_COMMAND, MESH_COMMAND, PRIMITIVE_COMMAND, TRIANGLES_COMMAND
}
 

Public Member Functions

float getGlobalOrder () const
 Get Render Command Id. More...
 
Type getType () const
 Returns the Command type. More...
 
bool isTransparent () const
 Retruns whether is transparent. More...
 
local isTransparent ()
 Retruns whether is transparent. More...
 
void setTransparent (bool isTransparent)
 set transparent flag More...
 
var setTransparent ( var isTransparent)
 set transparent flag More...
 
local setTransparent ( local isTransparent)
 set transparent flag More...
 

Protected Member Functions

 RenderCommand ()
 RenderCommand ()
virtual ~RenderCommand ()
local ~RenderCommand ()
void printID ()
local printID ()

Protected Attributes

Type _type
float _globalOrder
local _globalOrder
bool _isTransparent
var _isTransparent
local _isTransparent

Detailed Description

Base class of the RenderCommand hierarchy.

The Renderer knows how to render RenderCommands objects.

Member Enumeration Documentation

enum Type
strong
Enumerator
UNKNOWN_COMMAND 
QUAD_COMMAND 
CUSTOM_COMMAND 
BATCH_COMMAND 
GROUP_COMMAND 
MESH_COMMAND 
PRIMITIVE_COMMAND 
TRIANGLES_COMMAND 
var Type
strong
Enumerator
UNKNOWN_COMMAND 
QUAD_COMMAND 
CUSTOM_COMMAND 
BATCH_COMMAND 
GROUP_COMMAND 
MESH_COMMAND 
PRIMITIVE_COMMAND 
TRIANGLES_COMMAND 
local Type
strong
Enumerator
UNKNOWN_COMMAND 
QUAD_COMMAND 
CUSTOM_COMMAND 
BATCH_COMMAND 
GROUP_COMMAND 
MESH_COMMAND 
PRIMITIVE_COMMAND 
TRIANGLES_COMMAND 

Constructor & Destructor Documentation

RenderCommand ( )
protected
var RenderCommand ( )
protected
local RenderCommand ( )
protected
virtual ~RenderCommand ( )
protectedvirtual
var ~RenderCommand ( )
protectedvirtual
local ~RenderCommand ( )
protectedvirtual

Member Function Documentation

float getGlobalOrder ( ) const
inline

Get Render Command Id.

Type getType ( ) const
inline

Returns the Command type.

var getType ( )
inline

Returns the Command type.

local getType ( )
inline

Returns the Command type.

bool isTransparent ( ) const
inline

Retruns whether is transparent.

var isTransparent ( )
inline

Retruns whether is transparent.

local isTransparent ( )
inline

Retruns whether is transparent.

void printID ( )
protected
var printID ( )
protected
local printID ( )
protected
void setTransparent ( bool  isTransparent)
inline

set transparent flag

var setTransparent ( var  isTransparent)
inline

set transparent flag

local setTransparent ( local  isTransparent)
inline

set transparent flag

Member Data Documentation

float _globalOrder
protected
var _globalOrder
protected
local _globalOrder
protected
bool _isTransparent
protected
var _isTransparent
protected
local _isTransparent
protected
Type _type
protected
var _type
protected
local _type
protected

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