2016-09-06 13:15:29 +00:00
|
|
|
#pragma once
|
|
|
|
#include <vector>
|
2016-09-13 17:48:27 +00:00
|
|
|
#include <list>
|
|
|
|
#include <fstream>
|
2016-09-06 13:15:29 +00:00
|
|
|
|
2016-09-13 17:48:27 +00:00
|
|
|
struct chunkHeader {
|
|
|
|
char name[5];
|
|
|
|
int size;
|
|
|
|
std::streampos position;
|
|
|
|
};
|
2016-09-12 14:49:05 +00:00
|
|
|
|
2016-09-06 13:15:29 +00:00
|
|
|
class Object
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Object(const char* path);
|
|
|
|
~Object();
|
|
|
|
|
|
|
|
private:
|
2016-09-13 17:48:27 +00:00
|
|
|
|
|
|
|
std::list<chunkHeader*> lChunk;
|
|
|
|
std::fstream fsMesh;
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
void readChunks();
|
2016-09-06 13:15:29 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
};
|