X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_noise%2Fnoise.h;h=283702cad9a6efc0e7cc5270487ebc196e22c62e;hb=334e15ce6c4d9b1f30a168a55e7ef4d31320d568;hp=3bdec02844fd59220824f357ceea43435737b00c;hpb=e8a065f2385c219c511b57dac52786120bfa097d;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mod_noise/noise.h b/synfig-core/trunk/src/modules/mod_noise/noise.h index 3bdec02..283702c 100644 --- a/synfig-core/trunk/src/modules/mod_noise/noise.h +++ b/synfig-core/trunk/src/modules/mod_noise/noise.h @@ -1,11 +1,12 @@ /* === S Y N F I G ========================================================= */ /*! \file noise.h -** \brief Template Header +** \brief Header file for implementation of the "Noise Gradient" layer ** -** $Id: noise.h,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $ +** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 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 @@ -50,7 +51,7 @@ private: synfig::Vector size; Random random; - int smooth; + Random::SmoothType smooth; int detail; bool do_alpha; synfig::Gradient gradient; @@ -58,10 +59,10 @@ private: bool turbulent; bool do_displacement; synfig::Vector displacement; - + //void sync(); mutable synfig::Time curr_time; - + bool super_sample; synfig::Color color_func(const synfig::Point &x, float supersample,synfig::Context context)const; @@ -70,12 +71,12 @@ private: public: Noise(); - + virtual bool set_param(const synfig::String ¶m, const synfig::ValueBase &value); virtual synfig::ValueBase get_param(const synfig::String ¶m)const; virtual synfig::Color get_color(synfig::Context context, const synfig::Point &pos)const; virtual bool accelerated_render(synfig::Context context,synfig::Surface *surface,int quality, const synfig::RendDesc &renddesc, synfig::ProgressCallback *cb)const; - synfig::Layer::Handle hit_check(synfig::Context context, const synfig::Point &point)const; + synfig::Layer::Handle hit_check(synfig::Context context, const synfig::Point &point)const; virtual void set_time(synfig::Context context, synfig::Time time)const; virtual void set_time(synfig::Context context, synfig::Time time, const synfig::Point &point)const;