X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_noise%2Fnoise.h;h=1ea78d638a661cfe53e9d60c646ee787a86b071e;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;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..1ea78d6 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 @@ -33,7 +34,7 @@ #include #include #include -#include "random.h" +#include "random_noise.h" /* === M A C R O S ========================================================= */ @@ -49,8 +50,8 @@ private: synfig::Vector size; - Random random; - int smooth; + RandomNoise random; + RandomNoise::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;