This commit is contained in:
2022-06-21 20:21:00 +00:00
parent 162aebe3fa
commit b5de1012ff
5 changed files with 33 additions and 13 deletions

View File

@@ -53,3 +53,15 @@ void register_component(const char *name, size_t size,
c->id = ncomponent - 1;
c->datasize = size;
}
void comp_draw_debug(struct component *c) {
c->draw_debug(c->data);
}
void comp_draw_gui(struct component *c) {
c->draw_gui(c->data);
}
void comp_update(struct component *c, struct mGameObject *go) {
c->update(c->data, go);
}