12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- #ifndef _CC_BATCHCOMMAND_H_
- #define _CC_BATCHCOMMAND_H_
- #include "renderer/CCRenderCommand.h"
- NS_CC_BEGIN
- class TextureAtlas;
- class GLProgram;
- /**
- Command used to draw batches in one TextureAtlas.
- */
- class CC_DLL BatchCommand : public RenderCommand
- {
- public:
-
- BatchCommand();
-
- ~BatchCommand();
-
- void init(float globalZOrder, GLProgram* shader, BlendFunc blendType, TextureAtlas *textureAtlas, const Mat4& modelViewTransform, uint32_t flags);
-
- CC_DEPRECATED_ATTRIBUTE void init(float depth, GLProgram* shader, BlendFunc blendType, TextureAtlas *textureAtlas, const Mat4& modelViewTransform);
-
- void execute();
- protected:
-
- int32_t _materialID;
-
- GLuint _textureID;
-
- GLProgram* _shader;
-
- BlendFunc _blendType;
-
- TextureAtlas *_textureAtlas;
-
- Mat4 _mv;
- };
- NS_CC_END
- #endif
|