Go to the source code of this file.
|
| #define | WIDTH 640 |
| #define | HEIGHT 360 |
| #define | BALL_R 24 |
| #define | SPEED 320.0f /* pixels per second */ |
| #define | FIXED_HZ 10 /* deliberately low so the stutter is obvious */ |
| #define | TOP_Y 120 /* smooth (interpolated) ball */ |
| #define | BOT_Y 240 /* raw (un-interpolated) ball */ |
|
| static void | fixed_step (struct bj_app *app, struct bj_tick_info tick, void *ud) |
| static void | on_draw (struct bj_window *w, struct bj_render_target *target, const struct bj_rect *dirty, void *user_data) |
| static void | step (struct bj_app *app, struct bj_tick_info tick, void *user_data) |
| static void * | setup (struct bj_app *app, void *init_data) |
| static void | teardown (struct bj_app *app, void *user_data) |
| int | main (int argc, char *argv[]) |
◆ BALL_R
◆ BOT_Y
| #define BOT_Y 240 /* raw (un-interpolated) ball */ |
◆ FIXED_HZ
| #define FIXED_HZ 10 /* deliberately low so the stutter is obvious */ |
◆ HEIGHT
◆ SPEED
| #define SPEED 320.0f /* pixels per second */ |
◆ TOP_Y
| #define TOP_Y 120 /* smooth (interpolated) ball */ |
◆ WIDTH
◆ fixed_step()
| void fixed_step |
( |
struct bj_app * | app, |
|
|
struct bj_tick_info | tick, |
|
|
void * | ud ) |
|
static |
◆ main()
| int main |
( |
int | argc, |
|
|
char * | argv[] ) |
◆ on_draw()
◆ setup()
| void * setup |
( |
struct bj_app * | app, |
|
|
void * | init_data ) |
|
static |
◆ step()
| void step |
( |
struct bj_app * | app, |
|
|
struct bj_tick_info | tick, |
|
|
void * | user_data ) |
|
static |
◆ teardown()
| void teardown |
( |
struct bj_app * | app, |
|
|
void * | user_data ) |
|
static |
◆ curr_x
◆ prev_x
◆ render_alpha
◆ vx
◆ window