Commit 4c8214ac by Denis Salem

Update UML and add src

parent 9d8a3399
class HeightmapBrushes {
public:
HeightmapBrushes(int * seed);
~HeightmapBrushes();
private:
};
class Planet {
public:
Planet(brushes * HeightmapBrushes, int * seed);
~Planet();
void PushChunk(glm::vec3 id);
void PopChunk(glm::vec3 id);
void RenderDistances();
FetchChunk(glm::vec3 id);
private:
int LookForFreeChunk();
HeightmapBrushes * m_Brushes;
Chunk m_ChunksPlusezed[64];
Chunk m_ChunksPlusigrec[64];
Chunk m_ChunksPlusix[64];
Chunk m_ChunksMinusezed[64];
Chunk m_ChunksMinusigrec[64];
Chunk m_ChunksMinusix[64];
};
#ifndef INC_PROCEDURAL_ENGINE
#define INC_PROCEDURAL_ENGIN
#define HEIGHTMAP_AREA 262144
#define HEIGHTMAP_SCALE 512
#include "dataType.hpp"
#include "HeightmapBrushes.hpp"
#include "Planet.hpp"
#include "Observatory.hpp"
#include "ProceduralConductor.hpp"
#endif
typedef float Heightmap[HEIGHTMAP_AREA];
typedef struct Chunk {
Heightmap heightmap;
Chunk * ne;
Chunk * nw;
Chunk * se;
Chunk * sw;
bool allocated;
float centerX;
float centerY;
float halfScale;
} Chunk;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment