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
falsycat 84c3a02b9a [RELEASE] u22-v03
This version is submitted to U22 breau.
2020-09-14 00:00:00 +00:00

29 lines
590 B
C

#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);
}