+ add push_vertex(x,y,command) method

This commit is contained in:
Artem Pavlenko 2011-02-24 15:47:44 +00:00
parent 93514d57a2
commit ef28bca095

View file

@ -277,16 +277,21 @@ public:
}
}
void push_vertex(value_type x, value_type y, CommandType c)
{
cont_.push_back(x,y,c);
}
void line_to(value_type x,value_type y)
{
cont_.push_back(x,y,SEG_LINETO);
push_vertex(x,y,SEG_LINETO);
}
void move_to(value_type x,value_type y)
{
cont_.push_back(x,y,SEG_MOVETO);
push_vertex(x,y,SEG_MOVETO);
}
unsigned num_points() const
{
return cont_.size();