13 #ifndef OGLPLUS_IMAGES_CLOUD_1107121519_HPP
14 #define OGLPLUS_IMAGES_CLOUD_1107121519_HPP
33 GLfloat _sub_variance;
36 void _adjust_sphere(
Vec3f& center, GLfloat& radius)
const;
37 bool _apply_sphere(
const Vec3f& center, GLfloat radius);
39 static GLfloat _rand_u(
void);
40 static GLfloat _rand_s(
void);
42 void _make_spheres(
Vec3f center, GLfloat radius);
49 const Vec3f& origin =
Vec3f(0.0f, -0.3f, 0.0f),
50 GLfloat init_radius = 0.7f,
51 GLfloat sub_scale = 0.333f,
52 GLfloat sub_variance = 0.5f,
53 GLfloat min_radius = 0.04f
61 Cloud2D(
const Cloud& cloud);
67 #if !OGLPLUS_LINK_LIBRARY || defined(OGLPLUS_IMPLEMENTING_LIBRARY)
68 #include <oglplus/images/cloud.ipp>
71 #endif // include guard
Vector< GLfloat, 3 > Vec3f
3D float vector
Definition: vector.hpp:79
A simple generator of 3D textures which can be used to render cloud effects.
Definition: cloud.hpp:28
Wrapper for (texture) image data.
Definition: image.hpp:45
Cloud(GLsizei width, GLsizei height, GLsizei depth, const Vec3f &origin=Vec3f(0.0f,-0.3f, 0.0f), GLfloat init_radius=0.7f, GLfloat sub_scale=0.333f, GLfloat sub_variance=0.5f, GLfloat min_radius=0.04f)
Creates a cloud image of given width, height and depth.