30 lines
316 B
C++
30 lines
316 B
C++
#pragma once
|
|
#include <vector>
|
|
#include <list>
|
|
#include <fstream>
|
|
|
|
struct chunkHeader {
|
|
char name[5];
|
|
int size;
|
|
std::streampos position;
|
|
};
|
|
|
|
class Object
|
|
{
|
|
public:
|
|
Object(const char* path);
|
|
~Object();
|
|
|
|
private:
|
|
|
|
std::list<chunkHeader*> lChunk;
|
|
std::fstream fsMesh;
|
|
|
|
|
|
private:
|
|
void readChunks();
|
|
|
|
public:
|
|
|
|
};
|