mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 21:47:24 +00:00
25 lines
324 B
C
25 lines
324 B
C
|
#pragma once
|
||
|
|
||
|
#include <cstdint>
|
||
|
#include <fstream>
|
||
|
|
||
|
struct RawMesh;
|
||
|
class RawHeightMap;
|
||
|
|
||
|
class RawChunk {
|
||
|
public:
|
||
|
RawChunk(std::ifstream& stream);
|
||
|
~RawChunk();
|
||
|
|
||
|
void GenerateMesh();
|
||
|
|
||
|
uint32_t m_ChunkIndex;
|
||
|
uint32_t m_Width;
|
||
|
uint32_t m_Height;
|
||
|
float m_X;
|
||
|
float m_Z;
|
||
|
|
||
|
RawHeightMap* m_HeightMap;
|
||
|
RawMesh* m_Mesh;
|
||
|
};
|