X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftags%2F0.61.09%2Fsrc%2Fmodules%2Fmod_geometry%2Fstar.cpp;fp=synfig-core%2Ftags%2F0.61.09%2Fsrc%2Fmodules%2Fmod_geometry%2Fstar.cpp;h=0000000000000000000000000000000000000000;hb=6fa8f2f38d4b0b35f8539bf94e27ae27015c7689;hp=cb1d8e6efe678963aa4522cb2a39508fc3176804;hpb=47fce282611fbba1044921d22ca887f9b53ad91a;p=synfig.git diff --git a/synfig-core/tags/0.61.09/src/modules/mod_geometry/star.cpp b/synfig-core/tags/0.61.09/src/modules/mod_geometry/star.cpp deleted file mode 100644 index cb1d8e6..0000000 --- a/synfig-core/tags/0.61.09/src/modules/mod_geometry/star.cpp +++ /dev/null @@ -1,204 +0,0 @@ -/* === S Y N F I G ========================================================= */ -/*! \file star.cpp -** \brief Implementation of the "Star" layer -** -** $Id$ -** -** \legal -** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley -** Copyright (c) 2007-2008 Chris Moore -** -** This package is free software; you can redistribute it and/or -** modify it under the terms of the GNU General Public License as -** published by the Free Software Foundation; either version 2 of -** the License, or (at your option) any later version. -** -** This package is distributed in the hope that it will be useful, -** but WITHOUT ANY WARRANTY; without even the implied warranty of -** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -** General Public License for more details. -** \endlegal -** -** === N O T E S =========================================================== -** -** ========================================================================= */ - -/* === H E A D E R S ======================================================= */ - -#ifdef USING_PCH -# include "pch.h" -#else -#ifdef HAVE_CONFIG_H -# include -#endif - -#include "star.h" -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#endif - -using namespace etl; - -/* === M A C R O S ========================================================= */ - -#define SAMPLES 75 - -/* === G L O B A L S ======================================================= */ - -SYNFIG_LAYER_INIT(Star); -SYNFIG_LAYER_SET_NAME(Star,"star"); -SYNFIG_LAYER_SET_LOCAL_NAME(Star,N_("Star")); -SYNFIG_LAYER_SET_CATEGORY(Star,N_("Geometry")); -SYNFIG_LAYER_SET_VERSION(Star,"0.1"); -SYNFIG_LAYER_SET_CVS_ID(Star,"$Id$"); - -/* === P R O C E D U R E S ================================================= */ - -/* === M E T H O D S ======================================================= */ - -/* === E N T R Y P O I N T ================================================= */ - -Star::Star(): - radius1(1.0), - radius2(0.38), - points(5), - angle(Angle::deg(90)), - regular_polygon(false) -{ - sync(); -} - -void -Star::sync() -{ - Angle dist_between_points(Angle::rot(1)/float(points)); - std::vector vector_list; - - int i; - for(i=0;i