libsegl/model/old/load3ds.h

38 lines
510 B
C++

#ifndef __LOAD3DS_H
#define __LOAD3DS_H
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include "model.h"
#include "../glcolor.h"
class Chunk {
private:
short ident;
char m;
char n;
public:
Chunk() { };
void parse();
};
class Load3ds {
private:
std::string filename;
bool parsed;
bool error;
GLColor readColorChunk(std::ifstream *file);
public:
Load3ds(std::string _fname, bool parse=true);
bool parse(Model *m);
void unload();
};
#endif