mirror of https://github.com/axmolengine/axmol.git
41 lines
948 B
C
41 lines
948 B
C
|
//
|
||
|
// Created by NiTe Luo on 11/13/13.
|
||
|
//
|
||
|
|
||
|
|
||
|
|
||
|
#ifndef _CC_GROUPCOMMAND_H_
|
||
|
#define _CC_GROUPCOMMAND_H_
|
||
|
|
||
|
#include "CCPlatformMacros.h"
|
||
|
#include "RenderCommand.h"
|
||
|
|
||
|
NS_CC_BEGIN
|
||
|
|
||
|
class GroupCommand : public RenderCommand
|
||
|
{
|
||
|
|
||
|
public:
|
||
|
GroupCommand(int viewport, int32_t depth, int renderQueueID);
|
||
|
~GroupCommand();
|
||
|
|
||
|
// +----------+----------+-----+-----------------------------------+
|
||
|
// | | | | | |
|
||
|
// | ViewPort | Transluc | | Depth | |
|
||
|
// | 3 bits | 1 bit | | 24 bits | |
|
||
|
// +----------+----------+-----+----------------+------------------+
|
||
|
virtual int64_t generateID() override;
|
||
|
|
||
|
inline bool isTranslucent() {return true;}
|
||
|
inline int getRenderQueueID() {return _renderQueueID;}
|
||
|
|
||
|
protected:
|
||
|
int _viewport;
|
||
|
int32_t _depth;
|
||
|
int _renderQueueID;
|
||
|
};
|
||
|
|
||
|
NS_CC_END
|
||
|
|
||
|
#endif //_CC_GROUPCOMMAND_H_
|