16 #ifndef AGG_CONV_CLOSE_POLYGON_INCLUDED 17 #define AGG_CONV_CLOSE_POLYGON_INCLUDED 19 #include "agg_basics.h" 29 void attach(VertexSource& source) { m_source = &source; }
31 void rewind(
unsigned path_id);
32 unsigned vertex(
double* x,
double* y);
39 VertexSource* m_source;
50 template<
class VertexSource>
53 m_source->rewind(path_id);
61 template<
class VertexSource>
64 unsigned cmd = path_cmd_stop;
71 cmd = m_cmd[m_vertex];
76 cmd = m_source->vertex(x, y);
80 cmd |= path_flags_close;
88 m_cmd[0] = path_cmd_end_poly | path_flags_close;
89 m_cmd[1] = path_cmd_stop;
103 m_cmd[0] = path_cmd_end_poly | path_flags_close;