LeviLamina
Loading...
Searching...
No Matches
PerlinNoise.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class IRandom;
8class ImprovedNoise;
9class Vec3;
10// clang-format on
11
12class PerlinNoise {
13public:
14 // member variables
15 // NOLINTBEGIN
16 ::ll::TypedStorage<4, 4, int const> mLevels;
17 ::ll::TypedStorage<8, 24, ::std::vector<::ImprovedNoise>> mNoiseLevels;
18 ::ll::TypedStorage<4, 4, float> mNormalizationFactor;
19 // NOLINTEND
20
21public:
22 // prevent constructor by default
23 PerlinNoise& operator=(PerlinNoise const&);
24 PerlinNoise();
25
26public:
27 // member functions
28 // NOLINTBEGIN
29 MCAPI PerlinNoise(::PerlinNoise const&);
30
31 MCAPI PerlinNoise(::IRandom& random, int levels);
32
33 MCAPI PerlinNoise(uint seed, int levels);
34
35 MCAPI void fillRegion(
36 float* buffer,
37 ::Vec3 const& pos,
38 int xSize,
39 int ySize,
40 int zSize,
41 ::Vec3 const& scale,
42 int xStep,
43 int yStep,
44 int zStep
45 ) const;
46
47 MCAPI float getValueNormalized(::Vec3 const& pos) const;
48
49 MCAPI ~PerlinNoise();
50 // NOLINTEND
51
52public:
53 // constructor thunks
54 // NOLINTBEGIN
55 MCAPI void* $ctor(::PerlinNoise const&);
56
57 MCAPI void* $ctor(::IRandom& random, int levels);
58
59 MCAPI void* $ctor(uint seed, int levels);
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCAPI void $dtor();
66 // NOLINTEND
67};
Definition IRandom.h:13
Definition ImprovedNoise.h:9
Definition Vec3.h:10
Definition buffer.h:5