> 1/does the algorithm works only from0,0 to Frame_width,frame_height?
> Is there a-to define a "worldcoordinate system" different than the
> "Renderer coordinate System" (let ' s say rendering lines bounded between
> -100,-100 100,100 in a 100x100 buffer,without translating/rescaling all
> The coordinates of my lines).
> I ' ve found the Agg::conv_transform andagg::conv_curve classes. Is.
> The How to go?
It ' s done by Trans_viewport, seeagg_trans_viewport.h
Can use a separate converter:
Agg::trans_viewport VP;
. . .
Agg::conv_transform<your_pipeline_type,
AGG::TRANS_VIEWPORT>CONV_VP (Your_pipeline, VP);
Or you can add it to the Affinetransformer:
Agg::trans_viewport VP;
Agg::trans_affine affine;
. . .
...//Create affine matrix
...//Initialize viewport;
Affine *= vp.to_affine ();
Agg::conv_transform<your_pipeline_type>
Conv_trans (Your_pipeline, affine);
Agg::trans_viewport