Former-commit-id: 77de49ee01fea466cb97b22771e4c625389fd95c [formerly edce9427bc009c8ea6a6df35d9ce134a83ab985c] Former-commit-id: 76227519c8be75a45f6f65250a0870c2eb866953
29 lines
762 B
C++
29 lines
762 B
C++
// Copyright (C) 2016 Rémi Bèges
|
|
// This file is part of the "Nazara Engine - Noise module"
|
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
|
|
|
#ifndef NAZARA_PERLIN_HPP
|
|
#define NAZARA_PERLIN_HPP
|
|
|
|
#include <Nazara/Prerequesites.hpp>
|
|
#include <Nazara/Noise/Config.hpp>
|
|
#include <Nazara/Noise/NoiseBase.hpp>
|
|
#include <initializer_list>
|
|
|
|
namespace Nz
|
|
{
|
|
class NAZARA_NOISE_API Perlin : public NoiseBase
|
|
{
|
|
public:
|
|
Perlin() = default;
|
|
Perlin(unsigned int seed);
|
|
~Perlin() = default;
|
|
|
|
float Get(float x, float y, float scale) const override;
|
|
float Get(float x, float y, float z, float scale) const override;
|
|
float Get(float x, float y, float z, float w, float scale) const override;
|
|
};
|
|
}
|
|
|
|
#endif // NAZARA_PERLIN_HPP
|