Ejemplo n.º 1
0
void viewport_draw(viewport_t *viewport)
{
	texture_iterate(viewport);
//	usleep(4000);


	draw_thing(viewport);




	viewport->current_texture = get_next_texture(viewport);
	viewport->status.frames++;
	update_status(&viewport->status);
//	if(!viewport->button_down) viewport->xrot += 0.1;
};
Ejemplo n.º 2
0
void viewport_draw(viewport_t *viewport)
{
//	usleep(14000);

	clear_viewport();

//printf("viewport_draw 2\n");
	draw_thing(viewport);

//printf("viewport_draw 3\n");
	draw_overlays();
//printf("viewport_draw 4\n");

	texture_iterate(viewport);
	viewport->status.frames++;
	update_status(&viewport->status);
	if(!viewport->button_down) viewport->xrot += 0.1;
};