Files
directx-plane-game/Graphics2/HeightMapTerrainNode.h
iDunnoDev 616f68bf8b Added Comments
Added ability to hold shift and skip the terrain generation when loading
Added ability for the perlin terrain to save a raw image of the terrain to use as a cache
2022-06-13 16:41:25 +01:00

18 lines
532 B
C++

#pragma once
#include "DirectXFramework.h"
#include "SharedMethods.h"
#include "TerrainNode.h"
// Height map terrain node, contains the methods needed to generate a terrain node with the given weird height map
class HeightMapTerrainNode : public TerrainNode
{
public:
HeightMapTerrainNode(wstring name, wstring heightMap, wstring seed, float waterHeight = 150.0f, int widthX = 1023, int widthZ = 1023, int cellSizeX = 10, int cellSizeZ = 10);
private:
wstring _heightMap;
bool LoadHeightMap(wstring heightMapFilename);
};