Hello,
I have trying use noiseutils.cpp in my project, but when I buiding project this error shows up:
error : The first include statement in source file 'F:\UNREALPROJECT\libnoisetest\Source\libnoisetest\noiseutils.cpp' is trying to include the file 'fstream' as the precompiled header, but that file could not be located in any of the module's include search paths. F:\UNREALPROJECT\libnoisetest\Intermediate\ProjectFiles\EXEC libnoisetest
Sample noiseutils.cpp code:
#include "fstream"
#include <interp.h>
#include <mathconsts.h>
#include "noiseutils.h"
using namespace noise;
using namespace noise::model;
using namespace noise::module;
// Bitmap header size.
const int BMP_HEADER_SIZE = 54;
// Direction of the light source, in compass degrees (0 = north, 90 = east,
// 180 = south, 270 = east)
const double DEFAULT_LIGHT_AZIMUTH = 45.0;
// Amount of contrast between light and dark areas.
const double DEFAULT_LIGHT_CONTRAST = 1.0;
// Elevation of the light source above the horizon, in degrees (0 = on
// horizon, 90 = directly overhead)
const double DEFAULT_LIGHT_ELEVATION = 45.0;
//////////////////////////////////////////////////////////////////////////////
// Miscellaneous functions
namespace noise
{
namespace utils
{
// Performs linear interpolation between two 8-bit channel values.
inline noise::uint8 BlendChannel (const uint8 channel0,
.....
Can someone tell me whats is wrong?