move platformes and scenery to /apps/demos/
This commit is contained in:
16
apps/demos/scenery/scenes/scene.h
Normal file
16
apps/demos/scenery/scenes/scene.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef SCENE_H
|
||||
#define SCENE_H
|
||||
|
||||
|
||||
typedef struct State State;
|
||||
typedef struct Scene {
|
||||
char *id;
|
||||
void (*tick)(State *);
|
||||
void (*end)(State *);
|
||||
} Scene;
|
||||
|
||||
|
||||
void switch_to(State *state, Scene *(*scene_func)(State *));
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user