////////////////////////////////////////////////////////////////////////// // GL Color construction Color::Color(CCH_type r, CCH_type g, CCH_type b, CCH_type a) { set_R(r); set_G(g); set_B(b); set_A(a); }
////////////////////////////////////////////////////////////////////////// // GL Color default construction Color::Color() { set_R(0.0f); set_G(0.0f); set_B(0.0f); set_A(1.0f); }
////////////////////////////////////////////////////////////////////////// // GL Color construction Color::Color(CCH_type r, CCH_type g, CCH_type b) { set_R(r); set_G(g); set_B(b); set_A(1.0f); }
void interval_set_move_4_discrete_types() { typedef IntervalSet<T> IntervalSetT; typedef typename IntervalSetT::interval_type IntervalT; typedef std::vector<T> VectorT; //JODO static_cast fails for gcc compilers //IntervalSetT set_A(boost::move(static_cast<IntervalSetT&>(IntervalSetT(I_D(0,4))))); IntervalSetT set_A(boost::move(static_cast<IntervalSetT&>(IntervalSetT(I_D(0,4)).add(I_D(0,0)) ))); IntervalSetT set_B(boost::move(static_cast<IntervalSetT&>(IntervalSetT(I_D(0,2)).add(I_D(2,4)).add(I_D(0,4))))); BOOST_CHECK( icl::is_element_equal(set_A, set_B) ); BOOST_CHECK_EQUAL( set_A, join(set_B) ); //JODO static_cast fails for gcc compilers //set_A = boost::move(static_cast<IntervalSetT&>(IntervalSetT(I_I(1,4)))); set_A = boost::move(static_cast<IntervalSetT&>(IntervalSetT(I_I(1,4)).add(I_D(0,0)))); set_B = boost::move(static_cast<IntervalSetT&>(IntervalSetT(C_I(0,2)).insert(I_D(3,5)).add(C_D(0,5)))); BOOST_CHECK( icl::is_element_equal(set_A, set_B) ); BOOST_CHECK_EQUAL( set_A, join(set_B) ); }