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