Photon 0.0.2 Simple Open Source 2D Game API |
PenClass which is used for drawing primitives. Each instance of pen has a color, and the various members simply draw primitives in that color. Summary
setColor
Sets color to use for drawing. Parameters
drawCircle
Draw an empty circle. Parameters
fillCircle
Draw a filled circle. Parameters
|
Default constructor, sets color to white.
Pen()
Sets color to use for drawing.
void setColor( ubyte r, ubyte g, ubyte b, ubyte a = 255 )
Draws a single point.
void drawPoint( const math:: Point2 & point ) const
Draw a line from one point to another.
void drawLine( const math:: Point2 & p1, const math:: Point2 & p2 ) const
Draw a vector, including small arrow, with base at a given point.
void drawVector( const math:: Point2 & point, const math:: Vector2 & vector ) const
Draw an empty rectangle.
void drawRect( const math:: Rect & rect ) const
Draw a filled rectangle.
void fillRect( const math:: Rect & rect ) const
Draw an empty circle.
void drawCircle( const math:: Circle & circle ) const
Draw a filled circle.
void fillCircle( const math:: Circle & circle ) const