gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] class gnash::path


From: Udo Giacomozzi
Subject: Re: [Gnash-dev] class gnash::path
Date: Fri, 16 Feb 2007 15:49:50 +0100

Hello strk,

Wednesday, February 14, 2007, 2:09:56 PM, you wrote:
s> Also, this makes gnash::path depend on the existance of a
s> gnash::shape_character_def in order to be useful.

Well, that makes sense. The path defines only the coordinates of the
path itself and fill/line styles used for the path. These styles are
shared between possibly lots of paths.

Note a path is *not* a closed shape, it's just a part of it.

Example, two rectangles attached to each other:

  +----------+-----------+
  |//////////|###########|
  |//////////|###########|
  |//////////|###########|
  |//////////|###########|
  +----------+-----------+

Both rectangles have different fill styles. The middle line will most
probably be a path with just one(!) edge. This edge has left fill
style #1 and right fill style #2. The renderer must know that it is
the identical (not just visually equal) fill style of the other
path(s).

So, a path depends on a fill style and a line style list and the
shape_character_def is the instance that brings them together.

Udo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]