Add missing typedefsin lazy_perlin
This commit is contained in:
parent
e5c806a198
commit
9be7fb87df
1 changed files with 3 additions and 0 deletions
|
|
@ -14,6 +14,9 @@ namespace psemek::pcg
|
||||||
{
|
{
|
||||||
using generator_func = util::function<geom::vector<T, N>(geom::vector<int, N> const &)>;
|
using generator_func = util::function<geom::vector<T, N>(geom::vector<int, N> const &)>;
|
||||||
|
|
||||||
|
using value_type = T;
|
||||||
|
static constexpr auto dimension = N;
|
||||||
|
|
||||||
lazy_perlin (std::size_t grid_size, generator_func generator)
|
lazy_perlin (std::size_t grid_size, generator_func generator)
|
||||||
: grid_size_(grid_size)
|
: grid_size_(grid_size)
|
||||||
, gen_(std::move(generator))
|
, gen_(std::move(generator))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue