AR_Engine_SDK
载入中...
搜索中...
未找到
函数 | 变量
FxElement.lua 文件参考

#include <FxElement.h>

类 FxElement 继承关系图:
Inheritance graph

函数

function FxElement CanComplete () end
 
function FxElement GetMaxParticles () end
 
function FxElement Clone () end
 
function FxElement IsParticleSystem () end
 
function FxElement SetEnabled (bSet) end
 
function FxElement IsEnabled () end
 
function FxElement GetName () end
 
function FxElement SetName (strName) end
 
function FxElement GetType () end
 
function FxElement GetFxTemplate () end
 
function FxElement SetMaterialInstanceParam (szName, val) end
 
function FxElement ClearMaterialInstanceParam (szName) end
 
function FxElement SetMaterialInstanceTextureParam (szName, pTexture) end
 
function FxElement ClearMaterialInstanceTextureParam (szName) end
 

变量

 FxElement = {}
 

函数说明

◆ CanComplete()

function FxElement CanComplete ( )

是否可以完成,如:一个粒子系统有Loop次数大于0,则认为是可以完成的

返回
boolean 返回结果

◆ ClearMaterialInstanceParam()

function FxElement ClearMaterialInstanceParam ( szName  )

清除材质参数

参数
szNamestring 材质名称
返回
void

◆ ClearMaterialInstanceTextureParam()

function FxElement ClearMaterialInstanceTextureParam ( szName  )

清除材质纹理参数

参数
szNamestring 材质名称
返回
void

◆ Clone()

function FxElement Clone ( )

复制一个完全相同的自身,不添加到Template中,如果之后手动添加到了Template中,不需要delete,否则需要自己delete

返回
FxElement 返回复制的指针对象

◆ GetFxTemplate()

function FxElement GetFxTemplate ( )

获取模板指针

返回
IFxTemplate 模板指针

◆ GetMaxParticles()

function FxElement GetMaxParticles ( )

获取最大粒子数

返回
number 最大粒子数

◆ GetName()

function FxElement GetName ( )

获取名称

返回
string 名称字符串

◆ GetType()

function FxElement GetType ( )

获取元素类型

返回
number 元素类型

◆ IsEnabled()

function FxElement IsEnabled ( )

判断是否启用

返回
boolean 是否启用xture:启用,xfalse:禁用

◆ IsParticleSystem()

function FxElement IsParticleSystem ( )

判断是否是粒子系统

返回
boolean 是否是粒子系统

◆ SetEnabled()

function FxElement SetEnabled ( bSet  )

设置是否启用

参数
bSetboolean 是否启用
返回
void

◆ SetMaterialInstanceParam()

function FxElement SetMaterialInstanceParam ( szName  ,
val   
)

设置材质参数

参数
szNamestring 材质名称
valXMaterialParamTypeValue 材质参数值
返回
void

◆ SetMaterialInstanceTextureParam()

function FxElement SetMaterialInstanceTextureParam ( szName  ,
pTexture   
)

设置材质纹理参数

参数
szNamestring 材质名称
pTextureIXTexture
返回
void

◆ SetName()

function FxElement SetName ( strName  )

设置元素名称

参数
strNamestring
返回
void

变量说明

◆ FxElement

FxElement = {}