void ScreenSpaceReflectionApp::EnbleReflectionHandler(KlayGE::UICheckBox const & sender) { bool enabled = sender.GetChecked(); if (teapot_) { checked_pointer_cast<ReflectMesh>(teapot_->GetRenderable())->EnbleReflection(enabled); } }
void ShadowCubeMap::CtrlCameraHandler(KlayGE::UICheckBox const & sender) { if (sender.GetChecked()) { fpcController_.AttachCamera(this->ActiveCamera()); } else { fpcController_.DetachCamera(); } }
void CausticsMapApp::DualFaceCausticsCheckBoxHandler(KlayGE::UICheckBox const & sender) { enable_dual_face_caustics_ = sender.GetChecked(); }
void DetailedSurfaceApp::WireframeHandler(KlayGE::UICheckBox const & sender) { checked_pointer_cast<PolygonObject>(polygon_)->Wireframe(sender.GetChecked()); }
void DetailedSurfaceApp::NaLengthHandler(KlayGE::UICheckBox const & sender) { checked_pointer_cast<PolygonObject>(polygon_)->NaLength(sender.GetChecked()); }
void SSSSSApp::TranslucencyHandler(KlayGE::UICheckBox const & sender) { deferred_rendering_->TranslucencyEnabled(sender.GetChecked()); }
void SSSSSApp::SSSHandler(KlayGE::UICheckBox const & sender) { deferred_rendering_->SSSEnabled(sender.GetChecked()); }