Refactor into more modular architecture
This commit is contained in:
18
scene.h
Normal file
18
scene.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef SCENE_H
|
||||
#define SCENE_H
|
||||
|
||||
#include "maths.h"
|
||||
|
||||
typedef void (*scene_anim_cb_t)(vec2_t *verts);
|
||||
|
||||
void scene_clear();
|
||||
void scene_update();
|
||||
void scene_draw();
|
||||
|
||||
unsigned scene_add(
|
||||
unsigned entity, const vec2_t *verts, unsigned vert_count, bool connect);
|
||||
void scene_hide(unsigned id);
|
||||
void scene_show(unsigned id);
|
||||
void scene_animate(unsigned id, scene_anim_cb_t cb);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user