You.i Engine
CYIPolygonStroke Class Reference

Detailed Description

Class which draws a stroke representing CYIPolygonData.

Draws a stroke given CYIPolygonData, properties of the stroke and a CYIPolygonFill which is responsible for filling the stroke.

See also
CYIPolygonFill

#include <graphics/YiPolygonStroke.h>

Public Member Functions

 CYIPolygonStroke ()
 
virtual ~CYIPolygonStroke ()
 
float Stroke (CYIBitmap *pBitmap, CYIPolygonFill *pFiller, CYIPolygonData *pPolygonData, float fWidth, CYIGradient *pGradient, const CYIColor &color, float fMaxStrokeLength=-1)
 

Constructor & Destructor Documentation

CYIPolygonStroke::CYIPolygonStroke ( )
virtual CYIPolygonStroke::~CYIPolygonStroke ( )
virtual

Member Function Documentation

float CYIPolygonStroke::Stroke ( CYIBitmap pBitmap,
CYIPolygonFill pFiller,
CYIPolygonData pPolygonData,
float  fWidth,
CYIGradient pGradient,
const CYIColor color,
float  fMaxStrokeLength = -1 
)

Draws a stroke on the pBitmap. The stroke will be drawn using the pPolygonData which represents the vertex points of a polygon. The stroke will have a width of fWidth and will only be drawn for a maximum length of fMaxStrokeLength, these values are in pixel units. The color of the stroke will be represented by pGradient and color. The pFiller will be used to fill the stroke after processing the pPolygonData.

See also
CYIPolygonFill::Fill

The documentation for this class was generated from the following file: