TGopFilledPolygon Class Reference

class TGopFilledPolygon : public TGraphicsOperation

An accelerated graphics operation that fills a polygon with a colour.

AddPoints() must be called to specify the polygon to be filled. Objects of this class can be passed to a graphics accelerator's Operation() function either individually, or in a buffer.

How a graphics accelerator can fill polygons is given by TGraphicsAcceleratorCaps::iPolygon.

TGraphicsAcceleratorCaps::iPolygon

Inherits from

Constructor & Destructor Documentation

TGopFilledPolygon(TRgb, CGraphicsContext::TFillRule)

TGopFilledPolygon(TRgbaColor,
CGraphicsContext::TFillRuleaFillRule
)[inline]

Constructor with a fill rule and a fill colour. The number of points is initialised to zero.

Parameters

TRgb aColorThe fill colour.
CGraphicsContext::TFillRule aFillRuleBit flags for how self-crossing polygons are filled.

Member Functions Documentation

AddPoints(TInt, TPoint *)

voidAddPoints(TIntaNumPoints,
TPoint *aPoints
)[inline]

Specifies the polygon to be filled as a number of 2D point coordinates.

AddPoints() should only be called once the TGopFilledPolygon object has been stored into a buffer. There must be enough room in the buffer after the TGopFilledPolygon object to hold aNumPoints TPoint sized structures. This is because the points are copied into the memory space directly following the TGopFilledPolygon object.

Parameters

TInt aNumPointsThe number of points in the polygon.
TPoint * aPointsPointer to the first point in the polygon.

Member Data Documentation

TRgb iColor

TRgb iColor

The fill colour.

CGraphicsContext::TFillRule iFillRule

CGraphicsContext::TFillRule iFillRule

Bit flags for how self-crossing polygons are filled.

CGraphicsContext::TFillRule

TInt iNumPoints

TInt iNumPoints

The number of points in the polygon.