示例#1
0
文件: controls.c 项目: jwise/kgtd
void controls_draw(int x, int y, state_t *state)
{
	if((x > SEL_X + SEL_BUFFER || y < SEL_Y - SEL_BUFFER) &&
	   y < BOT_BAR - BOT_BAR_BUFFER)
		draw_prelight_grid(x, y, state);
	draw_scores(state);
	bar_draw(state);
	sel_draw(state);
}
示例#2
0
void controls_draw(state_t *state)
{
	int x, y;

	SDL_GetMouseState(&x, &y);
	if(in_main_area(x, y))
		draw_main(x, y, state);
	levels_draw(state);
	scores_draw(state);
	bar_draw(x, y, state);
	sel_draw(state);
}