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...
 
void setTransparent (bool isTransparent)
 set transparent flag More...
 

Protected Member Functions

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

Protected Attributes

Type _type
 
float _globalOrder
 
bool _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 

Constructor & Destructor Documentation

RenderCommand ( )
protected
virtual ~RenderCommand ( )
protectedvirtual

Member Function Documentation

float getGlobalOrder ( ) const
inline

Get Render Command Id.

Type getType ( ) const
inline

Returns the Command type.

bool isTransparent ( ) const
inline

Retruns whether is transparent.

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

set transparent flag

Member Data Documentation

float _globalOrder
protected
bool _isTransparent
protected
Type _type
protected

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