Esempio n. 1
0
Graph::Graph(const char *title, const char *x_axis_name, const char *y_axis_name) {
	_F_
	set_captions(title, x_axis_name, y_axis_name);
	logx = logy = false;
	legend = grid = true;
	key = NULL;
}
Esempio n. 2
0
void PPM :: render() {
	film.clear(Spectrum(1.f, 0.f, 0.f));

	new kernels::BuildHitPoints(scene, 1);
	gama->synchronize();

//	build_hit_points(1);
	float r = 0.f;
	while(true) {
		r += 0.01;
		if (r >= .5f) r = 0.f;
		set_captions();
		display->request_update(config.min_frame_time);
	}
}