En 13/07/2010 12:42:25, Domingo Alvarez Duarte <[email protected]>  
escribió:

> Looking at the pattern usage of the functions on fl_vertex.cxx it seems  
> that they are a class on itself:
>
> Basically the pattern is:
>
>
> fl_push_matrix();
> fl_translate(x, y);
> fl_scale(x, y);
>
> do any drawing work with the transformed matrix including any nested new  
> transformations
>
> fl_pop_matrix(); // return the stack to it's original state.
>
> I didn't found a cross class usage of the matrix stack, so if the are  
> used and restored inside each class (and only few classes use it) it  
> seems that turning then into a class tha is instantiated by the class or  
> function that will use it makes sense and eliminate this botleneck.


In fact most of the pre 1.3 draw functions are already remapped to  
fl_graphics_driver->function() it's a matter to extend this mapping to  
matrix stack.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to