ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/noise.h
(Generate patch)

Comparing deliantra/server/include/noise.h (file contents):
Revision 1.16 by root, Wed Nov 28 17:32:51 2012 UTC vs.
Revision 1.17 by root, Wed Nov 28 17:41:45 2012 UTC

21 */ 21 */
22 22
23#ifndef NOISE_H_ 23#ifndef NOISE_H_
24#define NOISE_H_ 24#define NOISE_H_
25 25
26#include <string.h> // possible workaround for tinyvec using memcpy without including string.h 26#include <string.h> // workaround for tinyvec using memcpy without including string.h
27#include <blitz/tinyvec.h> 27#include <blitz/tinyvec.h>
28#include <blitz/tinyvec-et.h> 28#include <blitz/tinyvec-et.h>
29 29
30#include "global.h" 30#include "global.h"
31 31
219 219
220 frac_gen (int octaves = 3, value_t lacunarity = 2, value_t hurst_expo = .5, uint32_t seed = 0); 220 frac_gen (int octaves = 3, value_t lacunarity = 2, value_t hurst_expo = .5, uint32_t seed = 0);
221 221
222 value_t noise (vec_t P, uint32_t seed = 0) func_pure 222 value_t noise (vec_t P, uint32_t seed = 0) func_pure
223 { 223 {
224 return operator() (P, seed); 224 return this->operator() (P, seed);
225 } 225 }
226 226
227 value_t fBm (vec_t P) func_pure; 227 value_t fBm (vec_t P) func_pure;
228 value_t turbulence (vec_t P) func_pure; 228 value_t turbulence (vec_t P) func_pure;
229 value_t multifractal (vec_t P, value_t offset = 1) func_pure; 229 value_t multifractal (vec_t P, value_t offset = 1) func_pure;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines