16 #ifndef C4FOWDRAWSTRATEGY_H
17 #define C4FOWDRAWSTRATEGY_H
44 const unsigned int*
GetIndices()
const {
return &indices[0]; }
48 void FinishPrimitive();
55 std::vector<unsigned int> indices;
56 unsigned int begin_vertices{0};
57 unsigned int cur_vertices{0};
129 void DrawVertex(
float x,
float y,
bool shadeLight);
131 static const float C4FoWSmooth;
138 float r1, g1, b1, a1;
139 float r2, g2, b2, a2;
140 float r3, g3, b3, a3;
144 std::vector<Vertex> vertices;
145 unsigned int vbo_size;
146 unsigned int ibo_size;
147 unsigned int vaoids[3];
171 void DrawVertex(Vertex& vertex);
176 std::vector<Vertex> vertices;
177 unsigned int vbo_size;
178 unsigned int ibo_size;
void Begin(const C4FoWRegion *region) override
void End(C4ShaderCall &call) override
~C4FoWDrawLightTextureStrategy() override
void DrawDarkVertex(float x, float y) override
C4FoWDrawLightTextureStrategy(const C4FoWLight *light)
void DrawLightVertex(float x, float y) override
virtual void BeginIntermediateFade()
enum C4FoWDrawStrategy::DrawPhase P_None
virtual void DrawLightVertex(float x, float y)
virtual void End(C4ShaderCall &call)
C4FoWDrawTriangulator triangulator
virtual void Begin(const C4FoWRegion *region)=0
virtual void EndIntermediateFade()
virtual void DrawDarkVertex(float x, float y)
C4FoWDrawStrategy()=default
virtual void EndFanMaxed()
virtual void BeginFanMaxed()
virtual ~C4FoWDrawStrategy()=default
unsigned int GetNIndices() const
const unsigned int * GetIndices() const
void DrawDarkVertex(float x, float y) override
C4FoWDrawWireframeStrategy(const C4FoWLight *light, const C4TargetFacet *screen)
void Begin(const C4FoWRegion *region) override
void DrawLightVertex(float x, float y) override
~C4FoWDrawWireframeStrategy() override
void End(C4ShaderCall &call) override