the_application(agg::pix_format_e format, bool flip_y) : agg::platform_support(format, flip_y), m_idx(-1), m_gamma(130 + 10.0, 10.0 + 4.0, 130 + 150.0, 10.0 + 8.0 + 4.0, !flip_y), m_alpha(130 + 150.0 + 10.0, 10.0 + 4.0, 500 - 10.0, 10.0 + 8.0 + 4.0, !flip_y), m_test(130 + 10.0, 10.0 + 4.0 + 16.0, "Test Performance", !flip_y) { m_x[0] = 100 + 120; m_y[0] = 60; m_x[1] = 369 + 120; m_y[1] = 170; m_x[2] = 143 + 120; m_y[2] = 310; add_ctrl(m_gamma); m_gamma.range(0.0, 1.0); m_gamma.value(0.5); m_gamma.label("Gamma=%1.2f"); m_gamma.no_transform(); add_ctrl(m_alpha); m_alpha.range(0.0, 1.0); m_alpha.value(1.0); m_alpha.label("Alpha=%1.2f"); m_alpha.no_transform(); add_ctrl(m_test); m_test.no_transform(); }
the_application(agg::pix_format_e format, bool flip_y) : agg::platform_support(format, flip_y), m_idx(-1), m_cap(10.0, 10.0, 130.0, 80.0, !flip_y), m_width(130 + 10.0, 10.0 + 4.0, 130 + 150.0, 10.0 + 8.0 + 4.0, !flip_y), m_smooth(130 + 150.0 + 10.0, 10.0 + 4.0, 500 - 10.0, 10.0 + 8.0 + 4.0, !flip_y), m_close(130 + 10.0, 10.0 + 4.0 + 16.0, "Close Polygons", !flip_y), m_even_odd(130 + 150.0 + 10.0, 10.0 + 4.0 + 16.0, "Even-Odd Fill", !flip_y) { m_x[0] = 57 + 100; m_y[0] = 60; m_x[1] = 369 + 100; m_y[1] = 170; m_x[2] = 143 + 100; m_y[2] = 310; add_ctrl(m_cap); m_cap.add_item("Butt Cap"); m_cap.add_item("Square Cap"); m_cap.add_item("Round Cap"); m_cap.cur_item(0); m_cap.no_transform(); add_ctrl(m_width); m_width.range(0.0, 10.0); m_width.value(3.0); m_width.label("Width=%1.2f"); m_width.no_transform(); add_ctrl(m_smooth); m_smooth.range(0.0, 2.0); m_smooth.value(1.0); m_smooth.label("Smooth=%1.2f"); m_smooth.no_transform(); add_ctrl(m_close); m_close.no_transform(); add_ctrl(m_even_odd); m_even_odd.no_transform(); }
the_application(agg::pix_format_e format, bool flip_y) : agg::platform_support(format, flip_y), m_width_slider(5, 5, 150, 12, !flip_y), m_scanline(160, 5, "Use Scanline Rasterizer", !flip_y) { parse_lion(); add_ctrl(m_width_slider); m_width_slider.no_transform(); m_width_slider.range(0.0, 4.0); m_width_slider.value(1.0); m_width_slider.label("Width %3.2f"); add_ctrl(m_scanline); m_scanline.no_transform(); }