void CausticsMapApp::ModelSelectionComboBox(KlayGE::UIComboBox const & sender) { switch (sender.GetSelectedIndex()) { case 0: refract_obj_->Visible(false); refract_obj_ = sphere_; refract_obj_->Visible(true); break; default: refract_obj_->Visible(false); refract_obj_ = bunny_; refract_obj_->Visible(true); break; } dummy_light_env_->Position(MathLib::transform_coord(refract_obj_->GetRenderable()->PosBound().Center(), refract_obj_->ModelMatrix())); }
void ShadowCubeMap::SMTypeChangedHandler(KlayGE::UIComboBox const & sender) { sm_type_ = static_cast<SM_TYPE>(sender.GetSelectedIndex()); }
void DetailedSurfaceApp::DetailTypeChangedHandler(KlayGE::UIComboBox const & sender) { checked_pointer_cast<PolygonObject>(polygon_)->DetailType(sender.GetSelectedIndex()); }