|
AR_Engine_SDK
|




Functions | |
| function IFxTemplate | GetName () end |
| function IFxTemplate | GetElementNum () end |
| function IFxTemplate | GetElement (nIndex) end |
| function IFxTemplate | AddElement (szName, eType) end |
| function IFxTemplate | AddElement (pElement) end |
| function IFxTemplate | RemoveElement (nIndex, bDelete) end |
| function IFxTemplate | RemoveElement (pElement, bDelete) end |
| function IFxTemplate | MoveElement (pElement, nMoveAmount) end |
| function IFxTemplate | DumplicateElement (nIndex) end |
| function IFxTemplate | DumplicateElement (pElement) end |
| function IFxTemplate | GetFileVersion () end |
| function IFxInstance | Release () end |
| function IFxInstance | Tick (fDeltaTime) end |
| function IFxInstance | Play () end |
| function IFxInstance | Pause () end |
| function IFxInstance | IsPaused () end |
| function IFxInstance | Stop (bClearNow) end |
| function IFxInstance | Restart () end |
| function IFxInstance | IsCompleted () end |
| function IFxInstance | Render (pCamera, pScene) end |
| function IFxInstance | Set2DMode (b2DRenderMode) end |
| function IFxInstance | Is2DMode () end |
| function IFxInstance | Set2DModeLayerMask (pLayer) end |
| function IFxInstance | GetAABB () end |
| function IFxInstance | GetFxTemplate () end |
| function IFxInstance | GetParticleNum (nElementIndex) end |
| function IFxInstance | GetParticleNum (pElement) end |
| function IFxInstance | SetAnimTrailBindingSkeletonAndBones (pSkeleton, FirstBoneName, SecondBoneName) end |
| function IFxInstance | SetBeamEmitterSourcePoints (EmitterName, Positions) end |
| function IFxInstance | SetBeamEmitterTargetPoints (EmitterName, Positions) end |
| function IFxManager | Init () end |
| function IFxManager | GetFxInstance (szFxTemplateFile) end |
| function IFxManager | CreateFxInstance (szNewFxTemplateFile) end |
| function IFxManager | SaveFxTemplate (szFxTemplateFile, pTemplate) end |
| function IFxManager | SetBatchEnabled (bEnable) end |
| function IFxManager | IsBatchEnabled () end |
| function IFxManager | ForceBatchInSameLayer (bForce) end |
| function IFxManager | IsForceBatchInSameLayer () end |
| function IFxManager | SetMaxBatchedVertexNum (nMaxNum) end |
| function IFxManager | GetMaxBatchedVertexNum () end |
Variables | |
| IFxTemplate = {} | |
| function IFxTemplate AddElement | ( | szName | , |
| eType | |||
| ) |
| function IFxTemplate AddElement | ( | pElement | ) |
| function IFxManager CreateFxInstance | ( | szNewFxTemplateFile | ) |
| function IFxTemplate DumplicateElement | ( | nIndex | ) |
复制某个粒子元素
| nIndex | number 要复制的元素索引 |
| function IFxTemplate DumplicateElement | ( | pElement | ) |
| function IFxManager ForceBatchInSameLayer | ( | bForce | ) |
设置同一层级的粒子是否强制合批(不考虑先后顺序)
| bForce | boolean |
| function IFxInstance GetAABB | ( | ) |
获取粒子的AABB
| function IFxTemplate GetElement | ( | nIndex | ) |
| function IFxTemplate GetElementNum | ( | ) |
获取粒子元素个数
| function IFxTemplate GetFileVersion | ( | ) |
获取版本号
| function IFxManager GetFxInstance | ( | szFxTemplateFile | ) |
| function IFxInstance GetFxTemplate | ( | ) |
获取粒子特效实例模板指针
| function IFxManager GetMaxBatchedVertexNum | ( | ) |
获取同一层级的粒子是否强制合批
| function IFxTemplate GetName | ( | ) |
获取名称
| function IFxInstance GetParticleNum | ( | nElementIndex | ) |
获取指定粒子元素的粒子数目
| nElementIndex | number 指定粒子元素索引 |
| function IFxInstance GetParticleNum | ( | pElement | ) |
| function IFxManager Init | ( | ) |
初始化
| function IFxInstance Is2DMode | ( | ) |
是否为2D模式
| function IFxManager IsBatchEnabled | ( | ) |
获取是否合批渲染
| function IFxInstance IsCompleted | ( | ) |
判断是否播放完毕
| function IFxManager IsForceBatchInSameLayer | ( | ) |
获取同一层级的粒子是否强制合批
| function IFxInstance IsPaused | ( | ) |
判断是否暂定播放状态
| function IFxTemplate MoveElement | ( | pElement | , |
| nMoveAmount | |||
| ) |
移动某个粒子元素在数组中的位置
| pElement | FxElement 要移动的元素指针 |
| nMoveAmount | number 移动距离,正数为向数组尾移动,负数为向数组头移动 |
| function IFxInstance Pause | ( | ) |
暂停播放粒子特效
| function IFxInstance Play | ( | ) |
播放粒子特效
| function IFxInstance Release | ( | ) |
释放资源
| function IFxTemplate RemoveElement | ( | nIndex | , |
| bDelete | |||
| ) |
移除某个粒子元素
| nIndex | number 要移除的元素索引 |
| bDelete | boolean 是否同时销毁元素 |
| function IFxTemplate RemoveElement | ( | pElement | , |
| bDelete | |||
| ) |
| function IFxManager Render | ( | pCamera | , |
| pScene | |||
| ) |
| function IFxInstance Restart | ( | ) |
重新从头播放粒子特效
| function IFxManager SaveFxTemplate | ( | szFxTemplateFile | , |
| pTemplate | |||
| ) |
将一个FxTemplate对象存到硬盘
| szFxTemplateFile | string 存储文件路径 |
| pTemplate | IFxTemplate 要存储的对象指针 |
| function IFxInstance Set2DMode | ( | b2DRenderMode | ) |
设置粒子是否为2D模式
| b2DRenderMode | boolean 是否为2D模式 |
| function IFxInstance Set2DModeLayerMask | ( | pLayer | ) |
设置粒子的层级
| pLayer | number 在UI前(LO_BeforeUI)或UI后(LO_AfterUI),LO_BetweenUI在当前不起作用 |
| function IFxInstance SetAnimTrailBindingSkeletonAndBones | ( | pSkeleton | , |
| FirstBoneName | , | ||
| SecondBoneName | |||
| ) |
设置骨骼拖尾发射器使用的骨骼
| pSkeleton | XSkeleton 指定的骨骼指针 |
| FirstBoneName | string 父关节名称 |
| SecondBoneName | string 子关节名称 |
| function IFxManager SetBatchEnabled | ( | bEnable | ) |
设置是否合批渲染
| bEnable | boolean 是否合批渲染 |
| function IFxInstance SetBeamEmitterSourcePoints | ( | EmitterName | , |
| Positions | |||
| ) |
设置激光发射器发射点位置
| EmitterName | string 发射器名称 |
| Positions | XVECTOR3[] 位置信息 |
| function IFxInstance SetBeamEmitterTargetPoints | ( | EmitterName | , |
| Positions | |||
| ) |
设置激光发射器目标点位置
| EmitterName | string 发射器名称 |
| Positions | XVECTOR3[] 位置信息 |
| function IFxManager SetMaxBatchedVertexNum | ( | nMaxNum | ) |
设置合批的最大顶点数
| nMaxNum | number |
| function IFxInstance Stop | ( | bClearNow | ) |
停止播放
| bClearNow | boolean 是否立即清除资源,默认为false |
| function IFxInstance Tick | ( | fDeltaTime | ) |
更新粒子特效实例
| fDeltaTime | number 更新间隔 |
| IFxTemplate = {} |
1.8.15