CX/include/model.h
Marcel Plch bd31c409a6
Implement model registry
This allows for mass handling of multiple objects
to be rendered.
2024-09-29 22:12:44 +02:00

23 lines
462 B
C

#ifndef MODEL_H
#define MODEL_H
typedef struct _model {
GLfloat *object;
GLfloat **transformations;
size_t transformation_count;
size_t bufsize;
} Model;
typedef struct _model_registry {
Model **models;
size_t model_count;
size_t size;
} ModelRegistry;
Model *model_load(const char *);
ModelRegistry* modelRegistry_new(void);
int modelRegistry_register(ModelRegistry *, Model *);
void modelRegistry_free(ModelRegistry *);
#endif