Пример #1
0
void ScreenSpaceReflectionApp::EnbleReflectionHandler(KlayGE::UICheckBox const & sender)
{
	bool enabled = sender.GetChecked();
	if (teapot_)
	{
		checked_pointer_cast<ReflectMesh>(teapot_->GetRenderable())->EnbleReflection(enabled);
	}
}
Пример #2
0
void ShadowCubeMap::CtrlCameraHandler(KlayGE::UICheckBox const & sender)
{
	if (sender.GetChecked())
	{
		fpcController_.AttachCamera(this->ActiveCamera());
	}
	else
	{
		fpcController_.DetachCamera();
	}
}
Пример #3
0
void CausticsMapApp::DualFaceCausticsCheckBoxHandler(KlayGE::UICheckBox const & sender)
{
	enable_dual_face_caustics_ = sender.GetChecked();
}
Пример #4
0
void DetailedSurfaceApp::WireframeHandler(KlayGE::UICheckBox const & sender)
{
	checked_pointer_cast<PolygonObject>(polygon_)->Wireframe(sender.GetChecked());
}
Пример #5
0
void DetailedSurfaceApp::NaLengthHandler(KlayGE::UICheckBox const & sender)
{
	checked_pointer_cast<PolygonObject>(polygon_)->NaLength(sender.GetChecked());
}
Пример #6
0
void SSSSSApp::TranslucencyHandler(KlayGE::UICheckBox const & sender)
{
	deferred_rendering_->TranslucencyEnabled(sender.GetChecked());
}
Пример #7
0
void SSSSSApp::SSSHandler(KlayGE::UICheckBox const & sender)
{
	deferred_rendering_->SSSEnabled(sender.GetChecked());
}