1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- #ifndef _CC_CUSTOMCOMMAND_H_
- #define _CC_CUSTOMCOMMAND_H_
- #include "renderer/CCRenderCommand.h"
- NS_CC_BEGIN
- class CC_DLL CustomCommand : public RenderCommand
- {
- public:
-
- CustomCommand();
-
- ~CustomCommand();
-
- public:
-
- void init(float globalZOrder, const Mat4& modelViewTransform, uint32_t flags);
-
- void init(float globalZOrder);
-
- void execute();
-
- bool isTranslucent() { return true; }
-
- std::function<void()> func;
- protected:
- };
- NS_CC_END
- #endif
|