示例#1
0
void App::render(DisplayWindow &window, GameTime &game_time)
{
	canvas.clear(Colorf(0.0f,0.0f,0.2f, 1.0f));

	root->update();
	canvas.set_blend_state(premultiply_src_blend);
	gui_image.draw(canvas, 0, 0);
	canvas.reset_blend_state();

	draw_font_example();
	draw_font_info();

	last_fps = game_time.get_updates_per_second();

	window.flip(1);
}
示例#2
0
文件: font.cpp 项目: punkkeks/ClanLib
void App::render(DisplayWindow &window, GameTime &game_time)
{
	canvas.set_map_mode(MapMode(map_2d_upper_left));

	canvas.clear(Colorf(0.0f,0.0f,0.2f, 1.0f));

	gui_manager.draw_windows(canvas);

	draw_font_example();
	draw_font_info();

	last_fps = game_time.get_updates_per_second();

	gui_manager.process();

	window.flip(1);

	KeepAlive::process();
}