On Tue, Aug 28, 2007 at 03:54:31PM +0800, zou lunkai wrote:
> > Unfortunately, edges are still made of floats, so conversion will still 
> > happen
> > when creating them. I'm not sure about effects of making edges made of ints
> > as they'll eventually be scaled and need to be floats anyway.
> >
> > We should probably make edge a template itself (and move under libgeometry).
> 
> What about using TWIPS(int) in edges, leave the convertion tho the
> renderer interfacea? I guess agg renderer won't have much difficulty
> about this(UdoG:)?).  But besides renderers,  there are still a lot to
> change in the ActionScript core...

Yes, that would be the idea of a templated edge. Like Range2d<> we use ints
or floats with automatic conversion when needed.
In this case, edge<int> could be converted to edge<float> when aplying matrices.

--strk;


_______________________________________________
Gnash-commit mailing list
Gnash-commit@gnu.org
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to