예제 #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
파일: SSSSS.cpp 프로젝트: qioixiy/KlayGE
void SSSSSApp::TranslucencyHandler(KlayGE::UICheckBox const & sender)
{
	deferred_rendering_->TranslucencyEnabled(sender.GetChecked());
}
예제 #7
0
파일: SSSSS.cpp 프로젝트: qioixiy/KlayGE
void SSSSSApp::SSSHandler(KlayGE::UICheckBox const & sender)
{
	deferred_rendering_->SSSEnabled(sender.GetChecked());
}