35 lines
436 B
C++
35 lines
436 B
C++
#ifndef __LOAD3DS_H
|
|
#define __LOAD3DS_H
|
|
|
|
#include <iostream>
|
|
#include <fstream>
|
|
#include <string>
|
|
#include <vector>
|
|
#include "model.h"
|
|
|
|
class Chunk {
|
|
private:
|
|
short ident;
|
|
char m;
|
|
char n;
|
|
|
|
public:
|
|
Chunk() { };
|
|
void parse();
|
|
};
|
|
|
|
class Load3ds {
|
|
private:
|
|
std::string filename;
|
|
|
|
bool parsed;
|
|
bool error;
|
|
public:
|
|
Load3ds(std::string _fname, bool parse=true);
|
|
|
|
bool parse(Model *m);
|
|
void unload();
|
|
};
|
|
|
|
#endif
|