29 lines
397 B
C
29 lines
397 B
C
#ifndef WAVEFRONTOBJ_H
|
|
#define WAVEFRONTOBJ_H
|
|
|
|
#include <GL/glew.h>
|
|
#include "matrixMath.h"
|
|
|
|
typedef struct {
|
|
vec3 position;
|
|
vec3 normal;
|
|
vec2 texture;
|
|
} vertex;
|
|
|
|
typedef struct {
|
|
vertex v1;
|
|
vertex v2;
|
|
vertex v3;
|
|
} face;
|
|
|
|
typedef struct {
|
|
face* faces;
|
|
GLuint length;
|
|
} ParsedObjFile;
|
|
|
|
|
|
extern ParsedObjFile readObjFile(char* path);
|
|
extern void clearParsedFile(ParsedObjFile file);
|
|
|
|
|
|
#endif |