-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparser.h
More file actions
34 lines (27 loc) · 675 Bytes
/
parser.h
File metadata and controls
34 lines (27 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef PARSER_H
#define PARSER_H
#include "parserstruct.h"
#include "hedgemesh.h"
#include <string>
#include <vector>
#include <map>
using namespace std;
class Parser{
public:
//assume the file_name is right and
//the file has correct obj file format
Parser(const char* file_name);
~Parser();
void drawInGL(DRAW_TYPE t,bool is_light,bool show_normals,
bool show_texture);
void printInfo();
bool getSuccess();
HEdgeMesh *mesh;
private:
void resizeVector();
bool success;
objInfo object;
float vertice_scale_x, vertice_scale_y, vertice_scale_z;
float vertice_transform_x, vertice_transform_y, vertice_transform_z;
};
#endif