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

#include <graphics/YiPolygonStroke.h>

Public Member Functions

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

Constructor & Destructor Documentation

◆ CYIPolygonStroke()

CYIPolygonStroke::CYIPolygonStroke ( )

◆ ~CYIPolygonStroke()

virtual CYIPolygonStroke::~CYIPolygonStroke ( )

Member Function Documentation

◆ Stroke()

float CYIPolygonStroke::Stroke ( CYIBitmap pBitmap,
CYIPolygonFill pFiller,
CYIPolygonData pPolygonData,
float  width,
CYIGradient pGradient,
const CYIColor color,
float  maxStrokeLength = -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 width and will only be drawn for a maximum length of maxStrokeLength, 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

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