2 #ifndef _YI_POLYGON_FILL_H_ 3 #define _YI_POLYGON_FILL_H_ 6 #include <glm/gtc/type_ptr.hpp> 48 static const uint32_t MAX_EDGES = 1000;
56 bool Create(int32_t nWidth, int32_t nHeight);
83 static void PolygonDataBounds(
const CYIPolygonData &polygonDataIn, glm::vec4 &polygonBounds);
97 uint32_t GetEdges(
const CYIPolygonData *pPolygonData, uint32_t nVertexStart);
99 void MaskEdge(YI_POLY_EDGE *pEdge,
bool bNonZeroFill);
104 uint32_t *m_pGradientLUT;
105 int32_t m_nGradientLUTSize;
106 YI_POLY_EDGE *m_pEdges;
118 #endif // _YI_POLYGON_FILL_H_ #define YI_DISALLOW_COPY_AND_ASSIGN(TypeName)
Delete the copy constructor and assignment operator (and consequently the move constructor as well) ...
Definition: YiPredef.h:114
bool bStartOfSegment
Definition: YiPolygonFill.h:24
The core bitmap container class used by You.i Engine.
Definition: YiBitmap.h:20
std::vector< YI_POLYGON_VERTEX > CYIPolygonData
A type representing multiple vertices of a polygon.
Definition: YiPolygonFill.h:32
Contains information on how a gradient will be drawn.
Definition: YiGradient.h:18
A structure that describe a single vertex of a polygon.
Definition: YiPolygonFill.h:20
float x
Definition: YiPolygonFill.h:22
YI_POLYGON_VERTEX()
Definition: YiPolygonFill.h:25
A class used to represent a color value.
Definition: YiColor.h:31
float y
Definition: YiPolygonFill.h:23
A class that contains information on how to fill a polygon.
Definition: YiPolygonFill.h:44