DarkflameServer/dNavigation/dTerrain/RawFile.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
467 B
C
Raw Normal View History

#pragma once
#include <string>
#include <vector>
class RawChunk;
struct RawMesh;
class RawFile {
public:
RawFile(std::string filePath);
~RawFile();
2022-09-04 10:47:53 +00:00
RawMesh* GetMesh() { return m_FinalMesh; }
private:
void GenerateFinalMeshFromChunks();
void WriteFinalMeshToOBJ(std::string path);
uint8_t m_Version;
uint16_t m_Padding;
uint32_t m_ChunkCount;
uint32_t m_Width;
uint32_t m_Height;
std::vector<RawChunk*> m_Chunks;
2022-09-04 10:47:53 +00:00
RawMesh* m_FinalMesh = nullptr;
};