Improved interface

*MappedNoiseBase provides a gain and offset control on the noise value
*AbstractXDNoise provides a way to contain different noises in a std
container and access the main "GetValue" member function
*Applied minor optimisation to Perlin4D (previously forgotten)
This commit is contained in:
Remi Beges
2012-07-24 14:21:56 +02:00
parent 10a436b481
commit 354d7ed002
22 changed files with 303 additions and 1313 deletions

View File

@@ -0,0 +1,24 @@
// Copyright (C) 2012 Rémi Bèges
// This file is part of the "Nazara Engine".
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_ABSTRACT2DNOISE_HPP
#define NAZARA_ABSTRACT2DNOISE_HPP
#include <Nazara/Prerequesites.hpp>
#include <Nazara/Noise/MappedNoiseBase.hpp>
template <typename T> class NAZARA_API NzAbstract2DNoise : public NzMappedNoiseBase<T>
{
public:
virtual T GetMappedValue(T x, T y);
virtual T GetValue(T x, T y, T resolution) = 0;
virtual T GetValue(T x, T y);
};
#include <Nazara/Noise/Abstract2DNoise.inl>
#endif // NAZARA_ABSTRACT2DNOISE_HPP