[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] gnash ChangeLog server/parser/shape_character_d...
From: |
zou lunkai |
Subject: |
Re: [Gnash-commit] gnash ChangeLog server/parser/shape_character_d... |
Date: |
Tue, 28 Aug 2007 15:54:31 +0800 |
> 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...
On 8/28/07, Sandro Santilli <address@hidden> wrote:
> On Tue, Aug 28, 2007 at 08:59:05AM +0800, zou lunkai wrote:
> > > - float cx = x + in->read_sint(num_bits);
> > > - float cy = y + in->read_sint(num_bits);
> > > - float ax = cx + in->read_sint(num_bits);
> > > - float ay = cy + in->read_sint(num_bits);
> > > + int cx = x + in->read_sint(num_bits);
> > > + int cy = y + in->read_sint(num_bits);
> > > + int ax = cx + in->read_sint(num_bits);
> > > + int ay = cy + in->read_sint(num_bits);
> > ...
> >
> > Good to see these changes. It really meaningless to convert to float
> > numbers at parse time. And AGG seldom uses float numbers(double and
> > integral numbers are choosed internally, IIRC).
>
> 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).
>
> --strk;
>
- [Gnash-commit] gnash ChangeLog server/parser/shape_character_d..., Sandro Santilli, 2007/08/23
- [Gnash-commit] gnash ChangeLog server/parser/shape_character_d..., Sandro Santilli, 2007/08/27
- [Gnash-commit] gnash ChangeLog server/parser/shape_character_d..., Sandro Santilli, 2007/08/27
- [Gnash-commit] gnash ChangeLog server/parser/shape_character_d..., Sandro Santilli, 2007/08/27
- Re: [Gnash-commit] gnash ChangeLog server/parser/shape_character_d..., zou lunkai, 2007/08/27
- Re: [Gnash-commit] gnash ChangeLog server/parser/shape_character_d..., Sandro Santilli, 2007/08/28
- Re: [Gnash-commit] gnash ChangeLog server/parser/shape_character_d...,
zou lunkai <=
- Re: [Gnash-commit] gnash ChangeLog server/parser/shape_character_d..., Sandro Santilli, 2007/08/28
- Re[2]: [Gnash-commit] gnash ChangeLog server/parser/shape_character_d..., Udo Giacomozzi, 2007/08/28
- Re: Re[2]: [Gnash-commit] gnash ChangeLog server/parser/shape_character_d..., zou lunkai, 2007/08/28
- Re: [Gnash-commit] gnash ChangeLog server/parser/shape_character_d..., Sandro Santilli, 2007/08/30
- Re[2]: [Gnash-commit] gnash ChangeLog server/parser/shape_character_d..., Udo Giacomozzi, 2007/08/30
- Re[2]: [Gnash-commit] gnash ChangeLog server/parser/shape_character_d..., Udo Giacomozzi, 2007/08/28
- Re: Re[2]: [Gnash-commit] gnash ChangeLog server/parser/shape_character_d..., zou lunkai, 2007/08/28
- Re[4]: [Gnash-commit] gnash ChangeLog server/parser/shape_character_d..., Udo Giacomozzi, 2007/08/28