Anti-Grain Geometry Tutorial
|
AGG does most of its operations based on paths. A path object needs to have the following two functions implemented.
See SimplePath for an example.
Additionally, two objects are needed. These two objects can be re-used.
Finally, agg::render_scanlines_aa_solid is used to render the paths using scanline algorithm.
The above for anti-aliased drawing. If you want to use non-anti-aliased drawing, use the following instead.
tutorial_path_1.cpp generates an image containing a green square and a red star.
An equivalent SVG is