gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog server/shape.h


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog server/shape.h
Date: Tue, 13 Feb 2007 17:03:18 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/02/13 17:03:18

Modified files:
        .              : ChangeLog 
        server         : shape.h 

Log message:
                * server/shape.h (class path): add setLeftFill, setRightFill
                  and setStartPoint methods; document some more.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2346&r2=1.2347
http://cvs.savannah.gnu.org/viewcvs/gnash/server/shape.h?cvsroot=gnash&r1=1.13&r2=1.14

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2346
retrieving revision 1.2347
diff -u -b -r1.2346 -r1.2347
--- ChangeLog   13 Feb 2007 16:10:47 -0000      1.2346
+++ ChangeLog   13 Feb 2007 17:03:18 -0000      1.2347
@@ -1,5 +1,7 @@
 2007-02-13 Sandro Santilli <address@hidden>
 
+       * server/shape.h (class path): add setLeftFill, setRightFill
+         and setStartPoint methods; document some more.
        * server/sprite_instance.{cpp,h}:
          Drop unused registeredClass arg in constructor.
        * server/parser/sprite_definition.cpp:

Index: server/shape.h
===================================================================
RCS file: /sources/gnash/gnash/server/shape.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- server/shape.h      14 Oct 2006 03:23:44 -0000      1.13
+++ server/shape.h      13 Feb 2007 17:03:18 -0000      1.14
@@ -5,7 +5,7 @@
 
 // Quadratic bezier outline shapes, the basis for most SWF rendering.
 
-/* $Id: shape.h,v 1.13 2006/10/14 03:23:44 nihilus Exp $ */
+/* $Id: shape.h,v 1.14 2007/02/13 17:03:18 strk Exp $ */
 
 #ifndef GNASH_SHAPE_H
 #define GNASH_SHAPE_H
@@ -48,18 +48,66 @@
        {
        public:
                path();
+
                path(float ax, float ay, int fill0, int fill1, int line);
 
                void    reset(float ax, float ay, int fill0, int fill1, int 
line);
+
                bool    is_empty() const;
 
                bool    point_test(float x, float y);
 
-               // Push the path into the tesselator.
+               /// Push the path into the tesselator.
                void    tesselate() const;
 
+               void addEdge(const edge& e)
+               {
+                       m_edges.push_back(e);
+               }
+
+               /// Set the beginning of the path.
+               void setStartPoint(float ax, float ay)
+               {
+                       m_ax = ax;
+                       m_ay = ay;
+               }
+
+               /// Set the fill to use on the left side
+               //
+               /// @param f
+               ///     The fill index. When this path is
+               ///     added to a shape_character_def, the
+               ///     fill will reference the vector of
+               ///     fill_style defined for that shape
+               ///
+               void setLeftFill(int f)
+               {
+                       m_fill0 = f;
+               }
+
+               /// Set the fill to use on the left side
+               //
+               /// @param f
+               ///     The fill index. When this path is
+               ///     added to a shape_character_def, the
+               ///     fill will reference the vector of
+               ///     fill_style defined for that shape
+               ///
+               void setRightFill(int f)
+               {
+                       m_fill1 = f;
+               }
+
+
        //private:
-               int     m_fill0, m_fill1, m_line;
+
+               /// Left fill
+               int     m_fill0;
+
+               /// Right fill
+               int     m_fill1;
+
+               int     m_line;
                float   m_ax, m_ay;     // starting point
                std::vector<edge>       m_edges;
                bool    m_new_shape;




reply via email to

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