taisei/src/stage.h
laochailan 5a2ac5b7ba "API changes", swirl
you see dat swirl? you see two z^3*i^|z|?
2011-06-26 13:45:27 +02:00

29 lines
No EOL
668 B
C

/*
* This software is licensed under the terms of the MIT-License
* See COPYING for further information.
* ---
* Copyright (C) 2011, Lukas Weber <laochailan@web.de>
*/
#ifndef STAGE_H
#define STAGE_H
#define TIMER(ptr) int *__timep = ptr; int _i;
#define AT(t) if(*__timep == t)
#define FROM_TO(start,end,step) _i = (*__timep - start)/step; if(*__timep >= (start) && *__timep <= (end) && !(*__timep % (step)))
typedef void (*StageRule)(void);
void stage_loop(StageRule start, StageRule end, StageRule draw, StageRule event);
void stage_start();
void stage_logic();
void stage_draw();
void stage_input();
void stage_end();
void apply_bg_shaders();
#endif