123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- #ifndef _CC_QUADCOMMAND_H_
- #define _CC_QUADCOMMAND_H_
- #include <vector>
- #include "renderer/CCTrianglesCommand.h"
- #include "renderer/CCGLProgramState.h"
- NS_CC_BEGIN
- class CC_DLL QuadCommand : public TrianglesCommand
- {
- public:
-
- QuadCommand();
-
- ~QuadCommand();
-
-
- void init(float globalOrder, GLuint textureID, GLProgramState* glProgramState, const BlendFunc& blendType, V3F_C4B_T2F_Quad* quads, ssize_t quadCount,
- const Mat4& mv, uint32_t flags);
-
- CC_DEPRECATED_ATTRIBUTE void init(float globalOrder, GLuint textureID, GLProgramState* shader, const BlendFunc& blendType, V3F_C4B_T2F_Quad* quads, ssize_t quadCount,
- const Mat4& mv);
- void init(float globalOrder, Texture2D* textureID, GLProgramState* glProgramState, const BlendFunc& blendType, V3F_C4B_T2F_Quad* quads, ssize_t quadCount,
- const Mat4& mv, uint32_t flags);
- protected:
- void reIndex(int indices);
- int _indexSize;
- std::vector<GLushort*> _ownedIndices;
-
- static int __indexCapacity;
- static GLushort* __indices;
- };
- NS_CC_END
- #endif
|