1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
int process()
{
}
int output()
{
}
struct circle_t {
int x,y,r; /* x, y, radius */
int col; /* colour */
int xs,ys; /* x speed, y speed */
int dx,dy; /* drawn x, drawn y */
};
void circle_draw (struct circle_t *circle, BITMAP *bmp);
void circle_erase (struct circle_t *circle, BITMAP *bmp);
void circle_update (struct circle_t *circle);
struct circle_t *circle_init (int new_x, int new_y, int new_radius, int new_col, int new_xs, int new_ys);
void circle_destroy (struct circle_t *circle);
int main(int argc, char *argv[])
{
allegro_init();
install_keyboard();
set_gfx_mode (GFX_AUTODETECT, 800, 600, 0, 0);
allegro_exit();
system("pause");
return 0;
}
|