|
AR_Engine_SDK
|

Functions | |
| function IXCanvasBase | Init () end |
| function IXCanvasBase | Release () end |
| function IXCanvasBase | DrawString (x, y, szString, clr) end |
| function IXCanvasBase | DrawQuad (x, y, nWidth, nHeight, clr, bSolid, pMat) end |
| function IXCanvasBase | Render2DLine (xBegin, yBegin, xEnd, yEnd, clr, pMat) end |
| function IXCanvasBase | Render2DCircle (vPos, fRadius, vStartNormalizedDir, vEndNormalizedDir, color, bClockWise, bSolid, pMat) end |
| function IXCanvasBase | RenderLine (vBegin, vEnd, clr, bZEnabled) end |
| function IXCanvasBase | RenderLines (aVerts, nNumVert, aIndices, nNumIndex, clr, aColors, nNumColor, bZEnabled) end |
| function IXCanvasBase | RenderAABB (aabb, clr, bSolid, bLight, bZEnabled) end |
| function IXCanvasBase | RenderSphere (vPos, fRadius, clr, bSolid, bLight, bZEnabled, pMat) end |
| function IXCanvasBase | RenderOBB (obb, clr, bSolid, bLight, bZEnabled, pMat) end |
| function IXCanvasBase | RenderBox (vPos, vDir, vUp, vRight, vExts, clr, bSolid, bLight, bZEnabled, pMat) end |
| function IXCanvasBase | RenderCone (cone, clr, bSolid, bLight, bZEnabled, pMat) end |
| function IXCanvasBase | RenderCustomGeometry (aVerts, nNumVert, aIndices, nNumIndex, clr, aColors, nNumColor, aNormals, nNumNormal, bLight, bZEnabled) end |
| function IXCanvasBase | RenderCustomGeometry (aVerts, aColors, aTexcoords, nNumVert, aIndices, nNumIndex, pTex, bZEnabled) end |
| function IXCanvasBase | RenderCircle (vPos, fRadius, vStartNormalizedDir, vEndNormalizedDir, vNormalizedRotationAxis, color, bSolid, bZEnabled, pWorldMat) end |
| function IXCanvasBase | RenderCapsule (capsule, clr, bSolid, bLight, bZEnabled, pMat) end |
Variables | |
| IXCanvasBase = {} | |
| function IXCanvasBase DrawQuad | ( | x | , |
| y | , | ||
| nWidth | , | ||
| nHeight | , | ||
| clr | , | ||
| bSolid | , | ||
| pMat | |||
| ) |
绘制四边形
| x | number 绘制的起始位置坐标的x分量 |
| y | number 绘制的起始位置坐标的y分量 |
| nWidth | number 绘制的四边形宽度 |
| nHeight | number 绘制的四边形高度 |
| clr | XCOLORBASE 绘制颜色(XCOLORBASE格式) |
| bSolid | boolean 是否用颜色填充四边形区域,默认是false |
| pMat | XMATRIX3 叠加矩阵,默认为空。(如果设置了叠加矩阵,绘制信息会叠加上这个矩阵数据) |
| function IXCanvasBase DrawString | ( | x | , |
| y | , | ||
| szString | , | ||
| clr | |||
| ) |
绘制字符串
| x | number 绘制的位置坐标的x分量 |
| y | number 绘制的位置坐标的y分量 |
| szString | string 要绘制的字符串内容 |
| clr | XCOLORBASE 绘制颜色(XCOLORBASE格式) |
| function IXCanvasBase Init | ( | ) |
初始化
| function IXCanvasBase Release | ( | ) |
释放
| function IXCanvasBase Render2DCircle | ( | vPos | , |
| fRadius | , | ||
| vStartNormalizedDir | , | ||
| vEndNormalizedDir | , | ||
| color | , | ||
| bClockWise | , | ||
| bSolid | , | ||
| pMat | |||
| ) |
IXCanvasBase_Render2DCircle00
| vPos | XVECTOR2 |
| fRadius | number |
| vStartNormalizedDir | XVECTOR2 |
| vEndNormalizedDir | XVECTOR2 |
| color | XCOLORBASE |
| bClockWise | boolean |
| bSolid | boolean |
| pMat | XMATRIX3 |
| function IXCanvasBase Render2DLine | ( | xBegin | , |
| yBegin | , | ||
| xEnd | , | ||
| yEnd | , | ||
| clr | , | ||
| pMat | |||
| ) |
绘制2D直线
| xBegin | number 直线的起始点坐标x分量 |
| yBegin | number 直线的起始点坐标y分量 |
| xEnd | number 直线的结束点坐标x分量 |
| yEnd | number 直线的结束点坐标y分量 |
| clr | XCOLORBASE 绘制颜色(XCOLORBASE格式) |
| pMat | XMATRIX3 叠加矩阵,默认为空。(如果设置了叠加矩阵,绘制信息会叠加上这个矩阵数据) |
| function IXCanvasBase RenderAABB | ( | aabb | , |
| clr | , | ||
| bSolid | , | ||
| bLight | , | ||
| bZEnabled | |||
| ) |
绘制AABB包围盒
| aabb | XCusAABB 要绘制的包围盒信息 |
| clr | XCOLORBASE 绘制颜色(XCOLORBASE格式) |
| bSolid | boolean 是否用颜色填充绘制的区域,默认是false |
| bLight | boolean 是否绘制光照信息,默认为xtrue |
| bZEnabled | boolean 是否开启深度测试,默认为xtrue(开启后,只绘制观察者可见到的部分) |
| function IXCanvasBase RenderBox | ( | vPos | , |
| vDir | , | ||
| vUp | , | ||
| vRight | , | ||
| vExts | , | ||
| clr | , | ||
| bSolid | , | ||
| bLight | , | ||
| bZEnabled | , | ||
| pMat | |||
| ) |
IXCanvasBase_RenderBox00
| vPos | XVECTOR3 |
| vDir | XVECTOR3 |
| vUp | XVECTOR3 |
| vRight | XVECTOR3 |
| vExts | XVECTOR3 |
| clr | XCOLORBASE |
| bSolid | boolean |
| bLight | boolean |
| bZEnabled | boolean |
| pMat | XMATRIX4 |
| function IXCanvasBase RenderCapsule | ( | capsule | , |
| clr | , | ||
| bSolid | , | ||
| bLight | , | ||
| bZEnabled | , | ||
| pMat | |||
| ) |
绘制胶囊体
| capsule | XCusCapsule 要绘制的胶囊体信息 |
| clr | XCOLORBASE 绘制颜色(XCOLORBASE格式) |
| bSolid | boolean 是否用颜色填充绘制的区域,默认是false |
| bLight | boolean 是否绘制光照信息,默认为xtrue |
| bZEnabled | boolean 是否开启深度测试,默认为xtrue(开启后,只绘制观察者可见到的部分) |
| pMat | XMATRIX4 叠加矩阵,默认为空。(如果设置了叠加矩阵,绘制信息会叠加上这个矩阵数据) |
| function IXCanvasBase RenderCircle | ( | vPos | , |
| fRadius | , | ||
| vStartNormalizedDir | , | ||
| vEndNormalizedDir | , | ||
| vNormalizedRotationAxis | , | ||
| color | , | ||
| bSolid | , | ||
| bZEnabled | , | ||
| pWorldMat | |||
| ) |
IXCanvasBase_RenderCircle00
| vPos | XVECTOR3 |
| fRadius | number |
| vStartNormalizedDir | XVECTOR3 |
| vEndNormalizedDir | XVECTOR3 |
| vNormalizedRotationAxis | XVECTOR3 |
| color | XCOLORBASE |
| bSolid | boolean |
| bZEnabled | boolean |
| pWorldMat | XMATRIX4 |
| function IXCanvasBase RenderCone | ( | cone | , |
| clr | , | ||
| bSolid | , | ||
| bLight | , | ||
| bZEnabled | , | ||
| pMat | |||
| ) |
绘制椎体
| cone | XCusCone 要绘制的椎体信息 |
| clr | XCOLORBASE 绘制颜色(XCOLORBASE格式) |
| bSolid | boolean 是否用颜色填充绘制的区域,默认是false |
| bLight | boolean 是否绘制光照信息,默认为xtrue |
| bZEnabled | boolean 是否开启深度测试,默认为xtrue(开启后,只绘制观察者可见到的部分) |
| pMat | XMATRIX4 叠加矩阵,默认为空。(如果设置了叠加矩阵,绘制信息会叠加上这个矩阵数据) |
| function IXCanvasBase RenderCustomGeometry | ( | aVerts | , |
| nNumVert | , | ||
| aIndices | , | ||
| nNumIndex | , | ||
| clr | , | ||
| aColors | , | ||
| nNumColor | , | ||
| aNormals | , | ||
| nNumNormal | , | ||
| bLight | , | ||
| bZEnabled | |||
| ) |
IXCanvasBase_RenderCustomGeometry00
| aVerts | XVECTOR3 |
| nNumVert | number |
| aIndices | number |
| nNumIndex | number |
| clr | XCOLORBASE |
| aColors | XCOLORBASE |
| nNumColor | number |
| aNormals | XVECTOR3 |
| nNumNormal | number |
| bLight | boolean |
| bZEnabled | boolean |
| function IXCanvasBase RenderCustomGeometry | ( | aVerts | , |
| aColors | , | ||
| aTexcoords | , | ||
| nNumVert | , | ||
| aIndices | , | ||
| nNumIndex | , | ||
| pTex | , | ||
| bZEnabled | |||
| ) |
IXCanvasBase_RenderCustomGeometry01
| aVerts | XVECTOR3 |
| aColors | XCOLORBASE |
| aTexcoords | XVECTOR2 |
| nNumVert | number |
| aIndices | number |
| nNumIndex | number |
| pTex | IXTexture |
| bZEnabled | boolean |
| function IXCanvasBase RenderLine | ( | vBegin | , |
| vEnd | , | ||
| clr | , | ||
| bZEnabled | |||
| ) |
绘制一条3D直线
| vBegin | XVECTOR3 直线起始点坐标 |
| vEnd | XVECTOR3 直线结束点坐标 |
| clr | XCOLORBASE 绘制颜色(XCOLORBASE格式) |
| bZEnabled | boolean 是否开启深度测试,默认为xtrue(开启后,只绘制观察者可见到的部分) |
| function IXCanvasBase RenderLines | ( | aVerts | , |
| nNumVert | , | ||
| aIndices | , | ||
| nNumIndex | , | ||
| clr | , | ||
| aColors | , | ||
| nNumColor | , | ||
| bZEnabled | |||
| ) |
IXCanvasBase_RenderLines00
| aVerts | XVECTOR3 |
| nNumVert | number |
| aIndices | number |
| nNumIndex | number |
| clr | XCOLORBASE |
| aColors | XCOLORBASE |
| nNumColor | number |
| bZEnabled | boolean |
| function IXCanvasBase RenderOBB | ( | obb | , |
| clr | , | ||
| bSolid | , | ||
| bLight | , | ||
| bZEnabled | , | ||
| pMat | |||
| ) |
绘制OBB包围盒
| obb | XCusOBB 要绘制的包围盒信息 |
| clr | XCOLORBASE 绘制颜色(XCOLORBASE格式) |
| bSolid | boolean 是否用颜色填充绘制的区域,默认是false |
| bLight | boolean 是否绘制光照信息,默认为xtrue |
| bZEnabled | boolean 是否开启深度测试,默认为xtrue(开启后,只绘制观察者可见到的部分) |
| pMat | XMATRIX4 叠加矩阵,默认为空。(如果设置了叠加矩阵,绘制信息会叠加上这个矩阵数据) |
| function IXCanvasBase RenderSphere | ( | vPos | , |
| fRadius | , | ||
| clr | , | ||
| bSolid | , | ||
| bLight | , | ||
| bZEnabled | , | ||
| pMat | |||
| ) |
绘制球状
| vPos | XVECTOR3 要绘制的包围盒信息 |
| fRadius | number 要绘制的包围盒信息 |
| clr | XCOLORBASE 绘制颜色(XCOLORBASE格式) |
| bSolid | boolean 是否用颜色填充绘制的区域,默认是false |
| bLight | boolean 是否绘制光照信息,默认为xtrue |
| bZEnabled | boolean 是否开启深度测试,默认为xtrue(开启后,只绘制观察者可见到的部分) |
| pMat | XMATRIX4 叠加矩阵,默认为空。(如果设置了叠加矩阵,绘制信息会叠加上这个矩阵数据) |
| IXCanvasBase = {} |
1.8.15