Fission FSN
Loading...
Searching...
No Matches
fsCRenderCommandLine.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsCRenderCommandLine.h
4*
5* Purpose: cocos2d-x line renderer commands
6*
7*********************************************************************/
8
9#ifndef fsCRenderCommandLinehdr
10#define fsCRenderCommandLinehdr
11
12#include <renderer/CCCustomCommand.h>
13
15#include "fsIRenderCommand.h"
16
17class fsIRenderData;
18
20{
21 friend class fsCRenderer;
22
23public:
24
25 void init(fsS32 pLines);
26
29
30protected:
31private:
32
33 void batchDataRender() override;
34 void batchDataPopulate(fsIRenderData const* pRenderData, fsS32 pOffest,
35 fsIRenderer::eSPRITE_STRIP_PLACE pPlace) override;
36
37 void pipelineSetup(cocos2d::PipelineDescriptor& pPipelineDescriptor, cocos2d::backend::ProgramType pProgram);
38 void buffersCreate(fsS32 pCount);
39
40 cocos2d::CustomCommand _customCommandGLLine;
41 cocos2d::V2F_C4B_T2F* _bufferGLLine = nullptr;
42
43 int _bufferCapacityGLLine = 0;
44 int _bufferCountGLLine = 0;
45};
46
47#endif
friend class fsCRenderer
Definition fsCRenderCommandLine.h:21
void init(fsS32 pLines)
Definition fsCRenderCommandLine.cpp:96
~fsCRenderCommandLine()
Definition fsCRenderCommandLine.cpp:109
fsCRenderCommandLine(fsS32 pLines)
Definition fsCRenderCommandLine.cpp:102
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