AR_Engine_SDK
|
Variables | |
IXBrushPrimitive = {} | |
IXBrushPrimitive | TM_VERTEX = 0 |
IXBrushPrimitive | TM_SHAPE = 0 |
IXBrushPrimitive | TM_SHAPEGROUP = 0 |
function IXBrushPrimitive AddPathPoint | ( | vPoint | ) |
为画刷添加一个路径点
vPoint | XVECTOR3 路径点的位置 |
function IXBrushManager CreateBrush | ( | param | ) |
@type XBrushShape[]
@type string @readonly @type number @type XCOLORBASE 创建一个画刷
param | IXBrushManager::BrushInitParam |
function IXBrushPrimitive GetColor | ( | ) |
获取画刷当前的颜色
function IXBrushPrimitive GetMaterialInstance | ( | ) |
获取画刷的材质实例
function IXBrushPrimitive GetPath | ( | nPathIndex | ) |
获取指定的整条路径
nPathIndex | number 路径的索引 |
IXBrushPrimitive_GetPath02
nPathIndex | number |
function IXBrushPrimitive GetPath | ( | nPathIndex | , |
vPath | |||
) |
获取指定的整条路径,安全版,效率较低
nPathIndex | number 路径的索引 |
vPath | XVECTOR3[] |
function IXBrushPrimitive GetPathNum | ( | ) |
获取路径个数
function IXBrushPrimitive GetPathPoint | ( | nIndex | , |
vPos | , | ||
nPathIndex | |||
) |
根据索引获取路径点位置
nIndex | number 路径点的索引 |
vPos | XVECTOR3 |
nPathIndex | number |
function IXBrushPrimitive GetPathPoint | ( | nIndex | , |
nPathIndex | |||
) |
IXBrushPrimitive_GetPathPoint01
nIndex | number |
nPathIndex | number |
function IXBrushManager GetPathPointMinDistance | ( | ) |
获取路径点之间的最小间隔
function IXBrushPrimitive GetPathPointsNum | ( | nPathIndex | ) |
获取某条路径上路径点的个数
nPathIndex | number |
function IXBrushPrimitive GetShapeGroup | ( | ) |
获取ShapeGroup
function IXBrushPrimitive GetSmoothAngle | ( | ) |
获取平滑角度
function IXBrushManager GetTexcoordLoopDistance | ( | ) |
获取纹理的重复距离
function IXBrushPrimitive new | ( | ) |
function IXBrushPrimitive NewPath | ( | ) |
开始一段新的路径
function IXBrushPrimitive RemoveAllPathPoints | ( | ) |
移除所有路径点
function IXBrushPrimitive SetColor | ( | color | ) |
function IXBrushManager SetPathPointMinDistance | ( | fDistance | ) |
设置路径点之间的最小间隔,默认是0.1
fDistance | number |
function IXBrushPrimitive SetSmoothAngle | ( | fCosAngle | ) |
设置平滑角度,两段路径之间角度的cos值小于该值时会生成额外的顶点用于平滑
fCosAngle | number |
function IXBrushManager SetTexcoordLoopDistance | ( | fDistance | ) |
设置纹理的重复距离
fDistance | number 纹理的重复距离.默认是1.0,最小是0.1 |
IXBrushPrimitive = {} |
IXBrushPrimitive TM_SHAPE = 0 |
IXBrushPrimitive TM_SHAPEGROUP = 0 |
IXBrushPrimitive TM_VERTEX = 0 |