forked from capnramses/antons_opengl_tutorials_book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobj_parser.h
22 lines (20 loc) · 1.43 KB
/
obj_parser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/******************************************************************************\
| OpenGL 4 Example Code. |
| Accompanies written series "Anton's OpenGL 4 Tutorials" |
| Email: anton at antongerdelan dot net |
| First version 7 Nov 2013 |
| Dr Anton Gerdelan, Trinity College Dublin, Ireland. |
| See individual libraries' separate legal notices |
|******************************************************************************|
| Anton's lazy Wavefront OBJ parser |
| Anton Gerdelan 7 Nov 2013 |
| Notes: |
| I ignore MTL files |
| Mesh MUST be triangulated - quads not accepted |
| Mesh MUST contain vertex points, normals, and texture coordinates |
| Faces MUST come after all other data in the .obj file |
\******************************************************************************/
#ifndef _OBJ_PARSER_H_
#define _OBJ_PARSER_H_
bool load_obj_file( const char* file_name, float*& points, float*& tex_coords, float*& normals, int& point_count );
#endif