This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/core/loscene/scene.c

29 lines
590 B
C
Raw Normal View History

#include "./scene.h"
#include <assert.h>
#include <stddef.h>
#include "core/locommon/input.h"
void loscene_delete(loscene_t* scene) {
if (scene == NULL) return;
assert(scene->vtable.delete != NULL);
scene->vtable.delete(scene);
}
loscene_t* loscene_update(loscene_t* scene, const locommon_input_t* input) {
assert(scene != NULL);
assert(input != NULL);
assert(scene->vtable.update != NULL);
return scene->vtable.update(scene, input);
}
void loscene_draw(loscene_t* scene) {
assert(scene != NULL);
assert(scene->vtable.draw != NULL);
scene->vtable.draw(scene);
}