예제 #1
0
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()));
}
예제 #2
0
void ShadowCubeMap::SMTypeChangedHandler(KlayGE::UIComboBox const & sender)
{
	sm_type_ = static_cast<SM_TYPE>(sender.GetSelectedIndex());
}
예제 #3
0
void DetailedSurfaceApp::DetailTypeChangedHandler(KlayGE::UIComboBox const & sender)
{
	checked_pointer_cast<PolygonObject>(polygon_)->DetailType(sender.GetSelectedIndex());
}