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


C++ COperator::RebirthIndividualEffect方法代码示例

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


在下文中一共展示了COperator::RebirthIndividualEffect方法的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 )
								{
开发者ID:LaoZhongGu,项目名称:RushGame,代码行数:67,代码来源:ChangeMoveMapData.cpp


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