Blender V4.3
PseudoNoise.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
12#include "Precision.h"
13
14#ifdef WITH_CXX_GUARDEDALLOC
15# include "MEM_guardedalloc.h"
16#endif
17
18namespace Freestyle {
19
21 public:
22 virtual ~PseudoNoise() {}
23
26
27 real turbulenceSmooth(real x, uint nbOctave = 8);
28 real turbulenceLinear(real x, uint nbOctave = 8);
29
30 static void init(long seed);
31
32 protected:
33 static const uint NB_VALUE_NOISE = 512;
35
36#ifdef WITH_CXX_GUARDEDALLOC
37 MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:PseudoNoise")
38#endif
39};
40
41} /* namespace Freestyle */
unsigned int uint
Read Guarded memory(de)allocation.
Define the float precision used in the program.
void init()
static unsigned long seed
Definition btSoftBody.h:39
real turbulenceLinear(real x, uint nbOctave=8)
static real _values[NB_VALUE_NOISE]
Definition PseudoNoise.h:34
static const uint NB_VALUE_NOISE
Definition PseudoNoise.h:33
real turbulenceSmooth(real x, uint nbOctave=8)
inherits from class Rep
Definition AppCanvas.cpp:20
double real
Definition Precision.h:14