You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
510 B
38 lines
510 B
#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
|