Noise: Refresh module using ZNoise

https://github.com/Overdrivr/ZNoise

Former-commit-id: 843916c55738cd6188fe452e610613469eb0e2e3 [formerly 00c5836482dd408da622486b885adad65a77aabd]
Former-commit-id: c5992f7852fb8ac76de673ca4149b2a51856c20c
This commit is contained in:
Jérôme Leclercq
2016-06-18 07:52:33 +02:00
parent a05e0ba815
commit 2f6ec2bd2c
56 changed files with 1408 additions and 2017 deletions

View File

@@ -0,0 +1,38 @@
// 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_MIXERBASE_HPP
#define NAZARA_MIXERBASE_HPP
#include <Nazara/Prerequesites.hpp>
#include <Nazara/Noise/NoiseBase.hpp>
#include <array>
namespace Nz
{
class NAZARA_NOISE_API MixerBase
{
public:
MixerBase();
~MixerBase() = default;
float GetHurstParameter() const;
float GetLacunarity() const;
float GetOctaveNumber() const;
void SetParameters(float hurst, float lacunarity, float octaves);
protected:
float m_hurst;
float m_lacunarity;
float m_octaves;
std::vector<float> m_exponent_array;
float m_sum;
private:
void Recompute();
};
}
#endif // NAZARA_MIXERBASE_HPP