Wed 09 Jul 2008 08:09:10 AM UTC, comment #1:
> Currently, path has a member which indicates whether or not
> the current path is the start of a new shape.
Is the flag used for indicating a new sub-shape or a new shape? What is the difference between a sub-shape and a shape in definition?
> This means that
> the renderer should draw all paths previous to the current
> path and the current and following paths should draw over the
> previous paths.
Sounds really inefficient.
> I'm changing this system by changing shape_character_def to
> maintain an array of subshapes instead.
This is what we have at the moment:
std::vector<Path> m_paths;
What is the difference between a subshape and a Path? There seems to be no subshapes defined in Gnash.
> That way, the renderer can just loop over the array when it
> needs to render, making the algorithms more natural.
> Additionally, in the future, we might just invoke the renderer
> once for every subshape, making the renderers even simpler.
Sounds clearer if it isn't the case at this moment.
|