本文整理汇总了C++中StdMat2::KeyAtTimeByID方法的典型用法代码示例。如果您正苦于以下问题:C++ StdMat2::KeyAtTimeByID方法的具体用法?C++ StdMat2::KeyAtTimeByID怎么用?C++ StdMat2::KeyAtTimeByID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StdMat2
的用法示例。
在下文中一共展示了StdMat2::KeyAtTimeByID方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LoadDialog
void StraussShaderDlg::LoadDialog(BOOL draw)
{
if (pShader && hRollup) {
glSpin->SetValue( FracToPc( pShader->GetGlossiness() ),FALSE);
glSpin->SetKeyBrackets(KeyAtCurTime(st_glossiness));
mtSpin->SetValue( FracToPc( pShader->GetMetalness() ), FALSE);
mtSpin->SetKeyBrackets(KeyAtCurTime(st_metalness));
trSpin->SetValue(FracToPc(pMtl->GetOpacity(curTime)),FALSE);
trSpin->SetKeyBrackets(pMtl->KeyAtTimeByID(OPACITY_PARAM, curTime));
UpdateColSwatches();
UpdateHilite();
IParamBlock2 * shaderpblock = pShader->pblock;
if ( shaderpblock ) {
cs[0]->UpdateEnableState( shaderpblock, shaderpblock->GetAnimNum( st_diffuse ) );
glSpin->UpdateEnableState( shaderpblock, shaderpblock->GetAnimNum( st_glossiness ) );
mtSpin->UpdateEnableState( shaderpblock, shaderpblock->GetAnimNum( st_metalness ) );
}
// trSpin: opacity is accessed through the material: only handle StdMat2.
EnableMtl2OpacityControl( pMtl, trSpin );
}
}
示例2: UpdateOpacity
void StraussShaderDlg::UpdateOpacity()
{
trSpin->SetValue(FracToPc(pMtl->GetOpacity(curTime)),FALSE);
trSpin->SetKeyBrackets(pMtl->KeyAtTimeByID(OPACITY_PARAM, curTime));
UpdateHilite();
}