AR_Engine_SDK
|
#include <FxInstance.h>
#include <FxInstance.h>
#include <FxInstance.h>
#include <FxInstance.h>
函数 | |
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 | 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 | Set2DMode (b2DRenderMode) end |
function IFxInstance | Is2DMode () end |
function IFxInstance | Set2DModeLayerMask (pLayer) end |
function IFxInstance | EnableScreenMask (bEnable) end |
function IFxInstance | IsScreenMaskEnabled () end |
function IFxInstance | SetScreenMaskRegion (vRegion) end |
function IFxInstance | GetScreenMaskRegion () end |
function IFxInstance | GetAABB () end |
function IFxInstance | GetFxTemplate () end |
function IFxInstance | SetAnimTrailBindingSkeletonAndBones (pSkeleton, FirstBoneName, SecondBoneName) end |
function IFxInstance | SetBeamEmitterSourcePoints (EmitterName, Positions) end |
function IFxInstance | SetBeamEmitterTargetPoints (EmitterName, Positions) end |
function IFxManager | GetFxInstance (szFxTemplateFile, pLoadInfo) 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 |
function IFxManager | ReloadFxTemplate (szFxTemplateFile, pLoadInfo) end |
变量 | |
IFxTemplate = {} | |
function IFxTemplate AddElement | ( | pElement | ) |
function IFxTemplate AddElement | ( | szName | , |
eType | |||
) |
function IFxManager CreateFxInstance | ( | szNewFxTemplateFile | ) |
function IFxTemplate DumplicateElement | ( | nIndex | ) |
复制某个粒子元素
nIndex | number 要复制的元素索引 |
function IFxTemplate DumplicateElement | ( | pElement | ) |
function IFxInstance EnableScreenMask | ( | bEnable | ) |
设置是否开启屏幕空间的裁剪
bEnable | boolean 是否开启 |
function IFxManager ForceBatchInSameLayer | ( | bForce | ) |
设置同一层级的粒子是否强制合批(不考虑先后顺序)
bForce | boolean |
function IFxInstance GetAABB | ( | ) |
获取粒子的AABB
function IFxTemplate GetElement | ( | nIndex | ) |
function IFxTemplate GetElementNum | ( | ) |
获取粒子元素个数
function IFxTemplate GetFileVersion | ( | ) |
获取版本号
function IFxManager GetFxInstance | ( | szFxTemplateFile | , |
pLoadInfo | |||
) |
function IFxInstance GetFxTemplate | ( | ) |
获取粒子特效实例模板指针
function IFxManager GetMaxBatchedVertexNum | ( | ) |
获取同一层级的粒子是否强制合批
function IFxTemplate GetName | ( | ) |
获取名称
function IFxInstance GetScreenMaskRegion | ( | ) |
获取屏幕空间的裁剪区域
function IFxInstance Is2DMode | ( | ) |
是否为2D模式
function IFxManager IsBatchEnabled | ( | ) |
获取是否合批渲染
function IFxInstance IsCompleted | ( | ) |
判断是否播放完毕
function IFxManager IsForceBatchInSameLayer | ( | ) |
获取同一层级的粒子是否强制合批
function IFxInstance IsPaused | ( | ) |
判断是否暂定播放状态
function IFxInstance IsScreenMaskEnabled | ( | ) |
获取是否开启屏幕空间的裁剪
function IFxTemplate MoveElement | ( | pElement | , |
nMoveAmount | |||
) |
移动某个粒子元素在数组中的位置
pElement | FxElement 要移动的元素指针 |
nMoveAmount | number 移动距离,正数为向数组尾移动,负数为向数组头移动 |
function IFxInstance Pause | ( | ) |
暂停播放粒子特效
function IFxInstance Play | ( | ) |
播放粒子特效
function IFxManager ReloadFxTemplate | ( | szFxTemplateFile | , |
pLoadInfo | |||
) |
重加载fx模板
szFxTemplateFile | string |
pLoadInfo | string |
function IFxTemplate RemoveElement | ( | nIndex | , |
bDelete | |||
) |
移除某个粒子元素
nIndex | number 要移除的元素索引 |
bDelete | boolean 是否同时销毁元素 |
function IFxTemplate RemoveElement | ( | pElement | , |
bDelete | |||
) |
function IFxInstance Restart | ( | ) |
重新从头播放粒子特效
function IFxManager SaveFxTemplate | ( | szFxTemplateFile | , |
pTemplate | |||
) |
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 | |||
) |
function IFxInstance SetBeamEmitterTargetPoints | ( | EmitterName | , |
Positions | |||
) |
function IFxManager SetMaxBatchedVertexNum | ( | nMaxNum | ) |
设置合批的最大顶点数
nMaxNum | number |
function IFxInstance SetScreenMaskRegion | ( | vRegion | ) |
function IFxInstance Stop | ( | bClearNow | ) |
停止播放
bClearNow | boolean 是否立即清除资源,默认为false |
IFxTemplate = {} |