Ejemplo n.º 1
0
Archivo: Blocks.cpp Proyecto: Coguar/TP
void start() {
	ContextSettings settings;
	settings.antialiasingLevel = 8;
	RenderWindow window(VideoMode(800, 800), "Blocks", sf::Style::Default, settings);
	Group *group = new Group;
	initiation(*group);

	while (window.isOpen()) {
		update(window, *group);
		draw(*group, window);
	}
	delete_blocks(*group);
	delete group;

}
Ejemplo n.º 2
0
/* Data removal */
void delete_cache(struct cache *cache) {
  delete_blocks(cache->blocks, cache->nb_blocks);
  free(cache);
}