AR_Engine_SDK
|
Functions | |
function XEBrushComponent | new () end |
function XEBrushComponent | Initialize (pActor) end |
@type string @readonly Component类型名 More... | |
function XEBrushComponent | Release () end |
function XEBrushComponent | Tick (fDel, bForceTick) end |
function XEBrushComponent | Render (pViewport) end |
function XEBrushComponent | GetBrushPrimitive () end |
function XEBrushComponent | BuildBrushPrimitive (brushInitParam) end |
function XEBrushComponent | SetBrushColor (clrBrushColor) end |
function XEBrushComponent | GetBrushColor () end |
function XEBrushComponent | RemoveAllPathPoints () end |
function XEBrushComponent | AddPathWorldPoint (vWorldPoint) end |
function XEBrushComponent | SetMaterialFile (szMaterialPath, bReCreateBrushPrimitive) end |
function XEBrushComponent | SetTexcoordLoopMode (eMode, bReCreateBrushPrimitive) end |
function XEBrushComponent | SetBrushShapeGroup (shapeGroup, bReCreateBrushPrimitive) end |
function XEBrushComponent | SetBrushShapeByIndex (nIndex, aBrushShape, bReCreateBrushPrimitive) end |
function XEBrushComponent | AddBrushShapePoint (vWorldPos, nIndex, bReCreateBrushPrimitive) end |
function XEBrushComponent | SetBrushInitColor (clrBrushColor, bReCreateBrushPrimitive) end |
function XEBrushComponent | GetBrushInitParam () end |
function XEBrushComponent | CreateNewPath () end |
Variables | |
XEBrushComponent = {} | |
function XEBrushComponent AddBrushShapePoint | ( | vWorldPos | , |
nIndex | , | ||
bReCreateBrushPrimitive | |||
) |
增加画刷形状的点,并重新创建画刷几何体
vWorldPos | XVECTOR3 组成画刷形状的世界坐标点 |
nIndex | number 画刷形状组的索引,默认为0 |
bReCreateBrushPrimitive | boolean 是否重新创建画刷几何体 |
function XEBrushComponent AddPathWorldPoint | ( | vWorldPoint | ) |
为画刷添加一个路径点
vWorldPoint | XVECTOR3 世界空间坐标点 |
function XEBrushComponent BuildBrushPrimitive | ( | brushInitParam | ) |
创建画刷几何体
brushInitParam | IXBrushManager::BrushInitParam 画刷初始化参数 |
function XEBrushComponent CreateNewPath | ( | ) |
创建一段新的路径,如果上一段路径还没有添加路径点,则不会创建新路径
function XEBrushComponent GetBrushColor | ( | ) |
获取画刷颜色
function XEBrushComponent GetBrushInitParam | ( | ) |
XEBrushComponent_GetBrushInitParam00
function XEBrushComponent GetBrushPrimitive | ( | ) |
获取画刷几何体指针
function XEBrushComponent Initialize | ( | pActor | ) |
@type string @readonly Component类型名
根据pActor初始化当前组件的部分数据,包含当前组件所属的XEActor及当前组件的索引等
pActor | XEActor 当前组件所属的XEActor,一般而言,每个XEActor都至少包含一个组件 |
function XEBrushComponent new | ( | ) |
XEBrushComponent_new00
function XEBrushComponent Release | ( | ) |
释放资源
function XEBrushComponent RemoveAllPathPoints | ( | ) |
移除路径上的所有点
function XEBrushComponent Render | ( | pViewport | ) |
function XEBrushComponent SetBrushColor | ( | clrBrushColor | ) |
function XEBrushComponent SetBrushInitColor | ( | clrBrushColor | , |
bReCreateBrushPrimitive | |||
) |
增加画刷初始颜色,并重新创建画刷几何体
clrBrushColor | XCOLORBASE 画刷初始颜色 |
bReCreateBrushPrimitive | boolean 是否重新创建画刷几何体 |
function XEBrushComponent SetBrushShapeByIndex | ( | nIndex | , |
aBrushShape | , | ||
bReCreateBrushPrimitive | |||
) |
更改画刷形状,并重新创建画刷几何体
nIndex | number 画刷形状组的索引 |
aBrushShape | XVECTOR3[] 画刷形状组的某个索引对应的形状 |
bReCreateBrushPrimitive | boolean 是否重新创建画刷几何体 |
function XEBrushComponent SetBrushShapeGroup | ( | shapeGroup | , |
bReCreateBrushPrimitive | |||
) |
更改画刷形状,并重新创建画刷几何体
shapeGroup | XBrushShape[] 画刷形状组 |
bReCreateBrushPrimitive | boolean 是否重新创建画刷几何体 |
function XEBrushComponent SetMaterialFile | ( | szMaterialPath | , |
bReCreateBrushPrimitive | |||
) |
设置材质文件,并重新创建画刷几何体
szMaterialPath | string mt文件滤镜 |
bReCreateBrushPrimitive | boolean 是否重新创建画刷几何体 |
function XEBrushComponent SetTexcoordLoopMode | ( | eMode | , |
bReCreateBrushPrimitive | |||
) |
设置ShapeGroup中各顶点纹理坐标在U方向上的平铺方式(0-1),并重新创建画刷几何体
eMode | number 纹理坐标平铺方式 |
bReCreateBrushPrimitive | boolean 是否重新创建画刷几何体 |
function XEBrushComponent Tick | ( | fDel | , |
bForceTick | |||
) |
更新当前组件的数据,此函数每帧都会被调用
fDel | number 每帧更新的时间间隔(ms) |
bForceTick | boolean 是否强制Tick.如果为true,不管当前组件是否隐藏,都会更新;如果为false,当前组件如果隐藏时不更新。 |
XEBrushComponent = {} |