2018-04-22 22:40:31 +00:00
|
|
|
#ifndef MODEL_LOADER_H
|
|
|
|
#define MODEL_LOADER_H
|
|
|
|
|
2018-04-27 15:03:40 +00:00
|
|
|
typedef struct _entity {
|
|
|
|
size_t offset;
|
|
|
|
size_t size;
|
|
|
|
} Entity;
|
|
|
|
|
2018-04-22 22:40:31 +00:00
|
|
|
typedef struct _model {
|
2018-04-27 15:03:40 +00:00
|
|
|
GLfloat *object;
|
2018-04-22 22:40:31 +00:00
|
|
|
size_t bufsize;
|
2018-04-27 15:03:40 +00:00
|
|
|
Entity *entities[5];
|
2018-04-22 22:40:31 +00:00
|
|
|
} Model;
|
|
|
|
|
2018-04-27 15:03:40 +00:00
|
|
|
Model * model_load(const char *);
|
2018-04-22 22:40:31 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|