本文整理汇总了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_);
}
}
示例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_);
}
}
示例3: CtrlCameraHandler
void GlobalIlluminationApp::CtrlCameraHandler(UICheckBox const & sender)
{
if (sender.GetChecked())
{
fpcController_.AttachCamera(this->ActiveCamera());
}
else
{
fpcController_.DetachCamera();
}
}
示例4: CtrlCameraHandler
void DeferredRenderingApp::CtrlCameraHandler(UICheckBox const & sender)
{
if (sender.GetChecked())
{
fpcController_.AttachCamera(this->ActiveCamera());
}
else
{
fpcController_.DetachCamera();
}
}
示例5: FPSCameraHandler
void PostProcessingApp::FPSCameraHandler(UICheckBox const & sender)
{
if (sender.GetChecked())
{
fpcController_.AttachCamera(this->ActiveCamera());
}
else
{
fpcController_.DetachCamera();
}
}
示例6: CtrlCameraHandler
void CascadedShadowMapApp::CtrlCameraHandler(UICheckBox const & sender)
{
if (sender.GetChecked())
{
fpcController_.AttachCamera(this->ActiveCamera());
}
else
{
fpcController_.DetachCamera();
}
}
示例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);
}
}
示例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);
}
示例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_);
}
}
}
示例10: ColorGradingHandler
void GlobalIlluminationApp::ColorGradingHandler(UICheckBox const & sender)
{
Context::Instance().RenderFactoryInstance().RenderEngineInstance().ColorGradingEnabled(sender.GetChecked());
}
示例11: AAHandler
void GlobalIlluminationApp::AAHandler(UICheckBox const & sender)
{
Context::Instance().RenderFactoryInstance().RenderEngineInstance().PPAAEnabled(sender.GetChecked() ? 1 : 0);
}
示例12: SSVOHandler
void GlobalIlluminationApp::SSVOHandler(UICheckBox const & sender)
{
deferred_rendering_->SSVOEnabled(0, sender.GetChecked());
}
示例13: ColorMapHandler
void RasterizationOrderApp::ColorMapHandler(UICheckBox const & sender)
{
checked_pointer_cast<RenderQuad>(render_quad_)->ColorMapOn(sender.GetChecked());
}