obj->frustum_culling = false;
obj->current_face = NULL;
obj->faces = array_create(sizeof(ObjectFace));
+ obj->on_render = NULL;
+ obj->extra = NULL;
return obj;
}
#pragma GCC diagnostic pop
-void object_render(Object *obj)
+void object_render(Object *obj, f64 dtime)
{
+ if (obj->on_render)
+ obj->on_render(obj, dtime);
+
if (! obj->visible)
return;