Debian Codegraph @

examples/widgets/graphicsview/boxes/3rdparty/fbm.h

raw
1 /*****************************************************************
2
3 Prototypes for the fractional Brownian motion algorithm. These
4 functions were originally the work of F. Kenton Musgrave. For
5 documentation of the different functions please refer to the book:
6 "Texturing and modeling: a procedural approach"
7 by David S. Ebert et. al.
8
9 ******************************************************************/
10
11 #ifndef _fbm_h
12 #define _fbm_h
13
14 #include <math.h>
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 //#define TRUE 1
21 //#define FALSE 0
22
23 typedef struct {
24 double x;
25 double y;
26 double z;
27 } Vector;
28
29 float noise3(float vec[]);
30 double fBm( Vector point, double H, double lacunarity, double octaves,
31 int init );
32 #endif
33
34 #ifdef __cplusplus
35 }
36 #endif
37
38
39
40