[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/server/parser shape_character_def.h
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/server/parser shape_character_def.h |
Date: |
Wed, 14 Feb 2007 00:51:05 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/02/14 00:51:05
Modified files:
server/parser : shape_character_def.h
Log message:
document compute_bound
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/shape_character_def.h?cvsroot=gnash&r1=1.6&r2=1.7
Patches:
Index: shape_character_def.h
===================================================================
RCS file: /sources/gnash/gnash/server/parser/shape_character_def.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- shape_character_def.h 13 Feb 2007 17:11:06 -0000 1.6
+++ shape_character_def.h 14 Feb 2007 00:51:05 -0000 1.7
@@ -5,7 +5,7 @@
// Quadratic bezier outline shapes, the basis for most SWF rendering.
-/* $Id: shape_character_def.h,v 1.6 2007/02/13 17:11:06 strk Exp $ */
+/* $Id: shape_character_def.h,v 1.7 2007/02/14 00:51:05 strk Exp $ */
#ifndef GNASH_SHAPE_CHARACTER_DEF_H
#define GNASH_SHAPE_CHARACTER_DEF_H
@@ -42,8 +42,12 @@
const std::vector<fill_style>& fill_styles,
const std::vector<line_style>& line_styles) const;
virtual void tesselate(float error_tolerance,
tesselate::trapezoid_accepter* accepter) const;
+
+ /// Get cached bounds of this shape.
const rect& get_bound() const { return m_bound; }
- void compute_bound(rect* r) const; // @@ what's the
difference between this and get_bound?
+
+ /// Compute bounds by looking at the component paths
+ void compute_bound(rect* r) const;
void output_cached_data(tu_file* out, const cache_options&
options);
void input_cached_data(tu_file* in);
@@ -76,6 +80,7 @@
std::vector<path> m_paths;
private:
+
void sort_and_clean_meshes() const;
rect m_bound;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/server/parser shape_character_def.h,
Sandro Santilli <=