3 // Written by Harald JOHNSEN, started April 2005.
5 // Copyright (C) 2005 Harald JOHNSEN - hjohnsen@evc.net
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27 #include <simgear/compiler.h>
32 #include <simgear/scene/material/Effect.hxx>
33 #include <simgear/scene/material/EffectGeode.hxx>
44 SGNewCloud(string type,
45 const SGPath &tex_path,
63 osg::ref_ptr<simgear::EffectGeode> genCloud ();
65 static double getDensity(void)
67 return sprite_density;
70 // Set the sprite density
71 static void setDensity(double d)
83 double min_sprite_width;
84 double max_sprite_width;
85 double min_sprite_height;
86 double max_sprite_height;
94 osg::ref_ptr<simgear::Effect> effect;
95 static double sprite_density;
97 osg::Geometry* createOrthQuad(float w, float h, int varieties_x, int varieties_y);
103 #endif // _NEWCLOUD_HXX