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