本文整理汇总了C++中COperator::Rebirth方法的典型用法代码示例。如果您正苦于以下问题:C++ COperator::Rebirth方法的具体用法?C++ COperator::Rebirth怎么用?C++ COperator::Rebirth使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类COperator
的用法示例。
在下文中一共展示了COperator::Rebirth方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MoveAsMap
//.........这里部分代码省略.........
bool bEffectBased = pModelGroup->GetIsEffectBased();
bool bEffecIsExit = pModelGroup->GetEffectName(strEffectName);
int nAtten = pModelGroup->GetAtten();
int nRatio = pModelGroup->GetAffectRatio();
bool bPointLight = false, bSpotLight = false;
if (pModelGroup->m_SL.m_bIAmbScenePointLight)
bPointLight = true;
if (pModelGroup->m_SpotLight.m_bIAmbSceneSpotLight)
bSpotLight = true;
///一段时间的播放长度最小最大值
DWORD dwPlayLenMin = pModelGroup->GetPlayTimeLenMin();
DWORD dwPlayLenMax = pModelGroup->GetPlayTimeLenMax();
///二段播放间隔长度最小最大值
DWORD dwPlayIntervalMin = pModelGroup->GetPlayIntervalMin();
DWORD dwPlayIntervalMax = pModelGroup->GetPlayIntervalMax();
CMapEditObject *pMapEditObject = NULL;
pMapEditObject = pModelGroup->GetSelfPresentation(0);
if( pModelGroup == NULL )
{
MessageBox(NULL,"没有模型,不保存","",MB_OK);
return;
}
MoldeSaveProperty sModelSavePro = pMapEditObject->sModelSavePro;
sModelSavePro.nCenterGridIndex = nNewGridIndex;
if ( bEffectBased && bEffecIsExit )
{
pOperator->RebirthIndividualEffect(strEffectName, sModelSavePro.nCenterGridIndex, sModelSavePro.vRotate.y, sModelSavePro.nRotationCnt,
sModelSavePro.vRotate.z, sModelSavePro.nPitchCnt, sModelSavePro.vRotate.x, sModelSavePro.nYawCnt, sModelSavePro.vScale.x, sModelSavePro.vScale.y, sModelSavePro.vScale.z, &sModelSavePro.vUserOffsetEx, sModelSavePro.vPosition, 0, NULL, 0);
}
else // effect
{
if( strCueName != "" )
{
EAUTO_GENERATION_TYPE eAutoGenerationType = EAGT_NONE;
BYTE byRenderStyle = 0;
bool bShadow = true;
bool bReceiveShadow = false;
BYTE bTransState = 0;
int nMirrorType = 0, nRatio = 0;
bool bTrans = true;
CVector3f vUserOffsetEx2 = CVector3f(sModelSavePro.vUserOffsetEx.y,sModelSavePro.vUserOffsetEx.x,sModelSavePro.vUserOffsetEx.z);
pOperator->Rebirth(strItemName, sModelSavePro.nCenterGridIndex, sModelSavePro.vRotate.y, sModelSavePro.nRotationCnt,
sModelSavePro.vRotate.z, sModelSavePro.nPitchCnt, sModelSavePro.vRotate.x, sModelSavePro.nYawCnt, sModelSavePro.vScale.x, sModelSavePro.vScale.y, sModelSavePro.vScale.z, &vUserOffsetEx2, 0, NULL, 0,0,1.0f,
eAutoGenerationType,byRenderStyle,nAtten,false,bShadow,bTrans,bTransState,nMirrorType,nRatio, "", strItemName, strCueName);
}
else
pOperator->Rebirth(&sModelSavePro, strItemName, "", nRatio, strItemName, strCueName);
}
size_t size = grid.vecCenterObjects.size();
CEditModelGroup *pNewModelGroup = NULL;
CTObjectPtr p = grid.vecCenterObjects[size-1];
pNewModelGroup = p->GetModelGroup();
if( pNewModelGroup )
{
if( bPointLight )
{