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:
24
include/Nazara/Noise/Abstract4DNoise.hpp
Normal file
24
include/Nazara/Noise/Abstract4DNoise.hpp
Normal 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_ABSTRACT4DNOISE_HPP
|
||||
#define NAZARA_ABSTRACT4DNOISE_HPP
|
||||
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
#include <Nazara/Noise/MappedNoiseBase.hpp>
|
||||
|
||||
template <typename T> class NAZARA_API NzAbstract4DNoise : public NzMappedNoiseBase
|
||||
{
|
||||
public:
|
||||
virtual T GetMappedValue(T x, T y, T z, T w);
|
||||
virtual T GetValue(T x, T y, T z, T w) = 0;
|
||||
virtual T GetValue(T x, T y, T z, T w, T resolution);
|
||||
|
||||
};
|
||||
|
||||
#include <Nazara/Noise/Abstract4DNoise.inl>
|
||||
|
||||
#endif // NAZARA_ABSTRACT4DNOISE_HPP
|
||||
Reference in New Issue
Block a user