Fission FSN
Loading...
Searching...
No Matches
fsCRenderCommandTriangle.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsCRenderCommandTriangle.h
4*
5* Purpose: cocos2d-x triangle renderer commands
6*
7*********************************************************************/
8
9#ifndef fsCRenderCommandTrianglehdr
10#define fsCRenderCommandTrianglehdr
11
12#include <renderer/CCTrianglesCommand.h>
13
14#include "fsIRenderCommand.h"
15
17
18class fsCTexture;
19
20
22{
23 friend class fsCRenderer;
24
25public:
26
27 void init(const fsCTexture* pTexture, fsS32 pSprites);
28
29 fsCRenderCommandTriangle(const fsCTexture* pTexture, fsS32 pSprites);
31
32protected:
33private:
34
35 void batchDataRender() override;
36 void batchDataPopulate(fsIRenderData const* pRenderData, fsS32 pSpriteOffest,
37 fsIRenderer::eSPRITE_STRIP_PLACE pPlace) override;
38
39 void buffersAllocate(fsS32 pSprites);
40 void pipelineSetup(cocos2d::PipelineDescriptor& pPipelineDescriptor, cocos2d::backend::ProgramType pProgram);
41
42 const fsCTexture* mTexture;
43 cocos2d::TrianglesCommand _trianglesCommand;
44 cocos2d::TrianglesCommand::Triangles _triangles;
45};
46
47#endif
void init(const fsCTexture *pTexture, fsS32 pSprites)
Definition fsCRenderCommandTriangle.cpp:100
friend class fsCRenderer
Definition fsCRenderCommandTriangle.h:23
fsCRenderCommandTriangle(const fsCTexture *pTexture, fsS32 pSprites)
Definition fsCRenderCommandTriangle.cpp:106
~fsCRenderCommandTriangle()
Definition fsCRenderCommandTriangle.cpp:112
Definition fsCTexture.h:22
Definition fsIRenderData.h:24
fsIRendererCommand()
Definition fsIRenderCommand.cpp:31
virtual void batchDataRender()
Definition fsIRenderCommand.h:33
eSPRITE_STRIP_PLACE
Definition fsIRenderer.h:89
int fsS32
Definition fsBaseTypes.h:20