当前位置: 首页>>代码示例>>C++>>正文


C++ UICheckBox::GetChecked方法代码示例

本文整理汇总了C++中UICheckBox::GetChecked方法的典型用法代码示例。如果您正苦于以下问题:C++ UICheckBox::GetChecked方法的具体用法?C++ UICheckBox::GetChecked怎么用?C++ UICheckBox::GetChecked使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UICheckBox的用法示例。


在下文中一共展示了UICheckBox::GetChecked方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: HDRHandler

void DeferredRenderingApp::HDRHandler(UICheckBox const & sender)
{
	if (DeferredRenderingLayer::DT_Final == buffer_type_)
	{
		hdr_enabled_ = sender.GetChecked();
		RenderEngine& re = Context::Instance().RenderFactoryInstance().RenderEngineInstance();
		re.HDREnabled(hdr_enabled_);
	}
}
开发者ID:Chenmxs,项目名称:KlayGE,代码行数:9,代码来源:DeferredRendering.cpp

示例2: AntiAliasHandler

void DeferredRenderingApp::AntiAliasHandler(UICheckBox const & sender)
{
	if (DeferredRenderingLayer::DT_Final == buffer_type_)
	{
		anti_alias_enabled_ = sender.GetChecked();
		RenderEngine& re = Context::Instance().RenderFactoryInstance().RenderEngineInstance();
		re.PPAAEnabled(anti_alias_enabled_);
	}
}
开发者ID:Chenmxs,项目名称:KlayGE,代码行数:9,代码来源:DeferredRendering.cpp

示例3: CtrlCameraHandler

void GlobalIlluminationApp::CtrlCameraHandler(UICheckBox const & sender)
{
    if (sender.GetChecked())
    {
        fpcController_.AttachCamera(this->ActiveCamera());
    }
    else
    {
        fpcController_.DetachCamera();
    }
}
开发者ID:xdzj,项目名称:KlayGE,代码行数:11,代码来源:GlobalIllumination.cpp

示例4: CtrlCameraHandler

void DeferredRenderingApp::CtrlCameraHandler(UICheckBox const & sender)
{
	if (sender.GetChecked())
	{
		fpcController_.AttachCamera(this->ActiveCamera());
	}
	else
	{
		fpcController_.DetachCamera();
	}
}
开发者ID:Chenmxs,项目名称:KlayGE,代码行数:11,代码来源:DeferredRendering.cpp

示例5: FPSCameraHandler

void PostProcessingApp::FPSCameraHandler(UICheckBox const & sender)
{
	if (sender.GetChecked())
	{
		fpcController_.AttachCamera(this->ActiveCamera());
	}
	else
	{
		fpcController_.DetachCamera();
	}
}
开发者ID:,项目名称:,代码行数:11,代码来源:

示例6: CtrlCameraHandler

void CascadedShadowMapApp::CtrlCameraHandler(UICheckBox const & sender)
{
	if (sender.GetChecked())
	{
		fpcController_.AttachCamera(this->ActiveCamera());
	}
	else
	{
		fpcController_.DetachCamera();
	}
}
开发者ID:BitYorkie,项目名称:KlayGE,代码行数:11,代码来源:CascadedShadowMap.cpp

示例7:

void SoundApp::Music2Handler(UICheckBox const & sender)
{
	AudioFactory& af = Context::Instance().AudioFactoryInstance();
	AudioEngine& ae = af.AudioEngineInstance();
	if (sender.GetChecked())
	{
		ae.Play(2, true);
	}
	else
	{
		ae.Stop(2);
	}
}
开发者ID:zsnake1209,项目名称:KlayGE,代码行数:13,代码来源:Sound.cpp

示例8: TessellationOnHandler

void TessellationApp::TessellationOnHandler(UICheckBox const & sender)
{
	bool enabled = sender.GetChecked();

	checked_pointer_cast<TriangleObject>(polygon_)->TessEnabled(enabled);

	dialog_->Control<UIStatic>(id_edge0_static_)->SetEnabled(enabled);
	dialog_->Control<UISlider>(id_edge0_slider_)->SetEnabled(enabled);
	dialog_->Control<UIStatic>(id_edge1_static_)->SetEnabled(enabled);
	dialog_->Control<UISlider>(id_edge1_slider_)->SetEnabled(enabled);
	dialog_->Control<UIStatic>(id_edge2_static_)->SetEnabled(enabled);
	dialog_->Control<UISlider>(id_edge2_slider_)->SetEnabled(enabled);
	dialog_->Control<UIStatic>(id_inside_static_)->SetEnabled(enabled);
	dialog_->Control<UISlider>(id_inside_slider_)->SetEnabled(enabled);
}
开发者ID:iankona,项目名称:KlayGE,代码行数:15,代码来源:Tessellation.cpp

示例9: SSVOHandler

void DeferredRenderingApp::SSVOHandler(UICheckBox const & sender)
{
	if ((DeferredRenderingLayer::DT_Final == buffer_type_) || (DeferredRenderingLayer::DT_SSVO == buffer_type_))
	{
		ssvo_enabled_ = sender.GetChecked();
		deferred_rendering_->SSVOEnabled(0, ssvo_enabled_);
		RenderEngine& re = Context::Instance().RenderFactoryInstance().RenderEngineInstance();
		if (DeferredRenderingLayer::DT_SSVO == buffer_type_)
		{
			re.HDREnabled(false);
		}
		else
		{
			re.HDREnabled(hdr_enabled_);
		}
	}
}
开发者ID:Chenmxs,项目名称:KlayGE,代码行数:17,代码来源:DeferredRendering.cpp

示例10: ColorGradingHandler

void GlobalIlluminationApp::ColorGradingHandler(UICheckBox const & sender)
{
    Context::Instance().RenderFactoryInstance().RenderEngineInstance().ColorGradingEnabled(sender.GetChecked());
}
开发者ID:xdzj,项目名称:KlayGE,代码行数:4,代码来源:GlobalIllumination.cpp

示例11: AAHandler

void GlobalIlluminationApp::AAHandler(UICheckBox const & sender)
{
    Context::Instance().RenderFactoryInstance().RenderEngineInstance().PPAAEnabled(sender.GetChecked() ? 1 : 0);
}
开发者ID:xdzj,项目名称:KlayGE,代码行数:4,代码来源:GlobalIllumination.cpp

示例12: SSVOHandler

void GlobalIlluminationApp::SSVOHandler(UICheckBox const & sender)
{
    deferred_rendering_->SSVOEnabled(0, sender.GetChecked());
}
开发者ID:xdzj,项目名称:KlayGE,代码行数:4,代码来源:GlobalIllumination.cpp

示例13: ColorMapHandler

void RasterizationOrderApp::ColorMapHandler(UICheckBox const & sender)
{
	checked_pointer_cast<RenderQuad>(render_quad_)->ColorMapOn(sender.GetChecked());
}
开发者ID:zsnake1209,项目名称:KlayGE,代码行数:4,代码来源:RasterizationOrder.cpp


注:本文中的UICheckBox::GetChecked方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。