32 lines
486 B
C++
32 lines
486 B
C++
#pragma once
|
|
#include <vector>
|
|
#include <list>
|
|
#include <fstream>
|
|
//#include <windows.h>
|
|
|
|
struct chunkHeader {
|
|
char name[5];
|
|
std::uint32_t size;
|
|
std::streampos position;
|
|
};
|
|
|
|
class Object
|
|
{
|
|
public:
|
|
Object(const char* path);
|
|
~Object();
|
|
|
|
private:
|
|
|
|
std::list<chunkHeader*> lChunkMsh2;
|
|
std::list<std::list<chunkHeader*>*> lChunkModls;
|
|
std::fstream fsMesh;
|
|
|
|
|
|
private:
|
|
void loadChunks(std::list<chunkHeader*> &destination, std::streampos start, const std::uint32_t end);
|
|
|
|
public:
|
|
|
|
};
|