-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathParser.h
More file actions
executable file
·44 lines (34 loc) · 943 Bytes
/
Parser.h
File metadata and controls
executable file
·44 lines (34 loc) · 943 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
35
36
37
38
39
40
41
42
43
44
/*
* Parser.cpp
*
* Created by Jacopo Volpin on 12/04/10.
*
* classe per le lettura del file *.obj e relativo immagazzinamento dei dati. Essendo puntatori a strutture dati
* presenti in ObjReader, vi è condivisione di memoria e non replicazione dati.
* Per l'oggetto Vertex è stato utilizzato un vector in quanto sempre presenti nel file *.obj.
* Per il resto è stato optato l'utilizzo di una struttura dati simile.
*/
#include "OpenGL/gl.h"
#include "GLUT/glut.h"
#include "OpenGL/glu.h"
#include "stdio.h"
#include "string.h"
#include "Container.h"
#include "Triangles.h"
#include "Quads.h"
#include "Vertex.h"
#include<string.h>
#include<iostream>
#include<vector>
#ifndef PARSER_H
#define PARSER_H
using namespace std;
class Parser {
private:
FILE *fp;
char str[256];
public:
Parser(char *);
void start_parser(vector<Vertex> *, Container<Triangles> *, Container<Quads> *, Container<Normal> *);
};
#endif