2024-09-29 20:11:45 +00:00
|
|
|
#ifndef MODEL_H
|
|
|
|
#define MODEL_H
|
2023-10-25 13:02:23 +00:00
|
|
|
|
|
|
|
typedef struct _model {
|
|
|
|
GLfloat *object;
|
2024-09-29 20:11:45 +00:00
|
|
|
GLfloat **transformations;
|
|
|
|
size_t transformation_count;
|
2023-10-25 13:02:23 +00:00
|
|
|
size_t bufsize;
|
|
|
|
} Model;
|
|
|
|
|
2024-09-29 20:11:45 +00:00
|
|
|
typedef struct _model_registry {
|
|
|
|
Model **models;
|
|
|
|
size_t model_count;
|
|
|
|
size_t size;
|
|
|
|
} ModelRegistry;
|
|
|
|
|
2023-12-13 09:56:21 +00:00
|
|
|
Model *model_load(const char *);
|
2024-09-29 20:11:45 +00:00
|
|
|
ModelRegistry* modelRegistry_new(void);
|
|
|
|
int modelRegistry_register(ModelRegistry *, Model *);
|
|
|
|
void modelRegistry_free(ModelRegistry *);
|
2023-10-25 13:02:23 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|