AR_Engine_SDK
|
#include <XEVariant.h>
函数 | |
function XEVariant | new () end |
function XEVariant | new (type) end |
function XEVariant | new (value) end |
function XEVariant | SetFloat (fValue) end |
function XEVariant | SetFloat2 (fValue1, fValue2) end |
function XEVariant | SetFloat3 (fValue1, fValue2, fValue3) end |
function XEVariant | SetFloat4 (fValue1, fValue2, fValue3, fValue4) end |
function XEVariant | SetFloatArray (aFloat) end |
function XEVariant | SetColor (fR, fG, fB) end |
function XEVariant | SetColor (fR, fG, fB, fA) end |
function XEVariant | SetDouble (dValue) end |
function XEVariant | SetBool (bValue) end |
function XEVariant | SetInt (nValue_) end |
function XEVariant | SetUInt (nValue_) end |
function XEVariant | SetVariantWrapper (vw) end |
function XEVariant | SetTransform (tf) end |
function XEVariant | SetString (str) end |
function XEVariant | SetVECTOR2 (Value) end |
function XEVariant | SetVECTOR3 (Value) end |
function XEVariant | SetVECTOR4 (Value) end |
function XEVariant | SetCOLORGBASE (Value) end |
function XEVariant | SetUserData (pUserData) end |
function XEVariant | SetUserDataWithType (pUserData, str) end |
function XEVariant | SetMatrix4 (mat4) end |
function XEVariant | SetMatrix3 (mat3) end |
function XEVariant | SetQuaternion (quat) end |
function XEVariant | GetFloat () end |
function XEVariant | GetFloat2 () end |
function XEVariant | GetFloat3 () end |
function XEVariant | GetFloat4 () end |
function XEVariant | GetFloats () end |
function XEVariant | GetFloatArray () end |
function XEVariant | GetColor () end |
function XEVariant | GetColor (fR, fG, fB, fA) end |
function XEVariant | GetDouble () end |
function XEVariant | GetBool () end |
function XEVariant | GetInt () end |
function XEVariant | GetUInt () end |
function XEVariant | GetUserData () end |
function XEVariant | GetTypeOfUserData () end |
function XEVariant | GetDataOfUserData () end |
function XEVariant | GetString () end |
function XEVariant | GetTransform () end |
function XEVariant | GetVariantWrapper () end |
function XEVariant | GetVariantWrapperItemNum () end |
function XEVariant | GetVariantWrapperItem (nIndex) end |
function XEVariant | RemoveVariantWrapperItemAt (nIndex) end |
function XEVariant | AddVariantWrapperItem (data) end |
function XEVariant | GetVECTOR2 () end |
function XEVariant | GetVECTOR3 () end |
function XEVariant | GetVECTOR4 () end |
function XEVariant | GetCOLORGBASE () end |
function XEVariant | GetMatrix4 () end |
function XEVariant | GetMatrix3 () end |
function XEVariant | GetQuaternion () end |
function XEVariant | GetType () end |
function XEVariant | SetType (type) end |
function XEVariant | Empty () end |
function XEVariant | ConvertBaseTypeAndKeepValue (baseType) end |
变量 | |
XEVariant = {} | |
XEVariant | XVT_NONE = 0 |
XEVariant | XVT_FLOAT1 = 0 |
XEVariant | XVT_FLOAT2 = 0 |
XEVariant | XVT_FLOAT3 = 0 |
XEVariant | XVT_FLOAT4 = 0 |
XEVariant | XVT_COLORRGB = 0 |
XEVariant | XVT_COLORRGBA = 0 |
XEVariant | XVT_BOOL = 0 |
XEVariant | XVT_INT = 0 |
XEVariant | XVT_UINT = 0 |
XEVariant | XVT_STRING = 0 |
XEVariant | XVT_TRANSFORM = 0 |
XEVariant | XVT_VARIANT_WRAPPER = 0 |
XEVariant | XVT_USER_DATA = 0 |
XEVariant | XVT_USER_DATA_WITH_TYPE = 0 |
XEVariant | XVT_MATRIX4 = 0 |
XEVariant | XVT_MATRIX3 = 0 |
XEVariant | XVT_QUATERNION = 0 |
XEVariant | XVT_DOUBLE1 = 0 |
XEVariant | XVT_FLOATARRAY = 0 |
XEVariant | XVT_NUM = 0 |
function XEVariant AddVariantWrapperItem | ( | data | ) |
function XEVariant ConvertBaseTypeAndKeepValue | ( | baseType | ) |
将当前数据转换到其它类型的数据,当前数据的值最大限度保持“不变”
baseType | number 根据此类型进行转换 |
function XEVariant Empty | ( | ) |
清空数据,类型不变
function XEVariant GetBool | ( | ) |
获取xbool数据
function XEVariant GetColor | ( | ) |
获取RGB颜色数据
function XEVariant GetColor | ( | fR | , |
fG | , | ||
fB | , | ||
fA | |||
) |
获取RGBA颜色数据
fR | number xfloat32数据(R) |
fG | number xfloat32数据(G) |
fB | number xfloat32数据(B) |
fA | number xfloat32数据(A) |
function XEVariant GetCOLORGBASE | ( | ) |
获取XCOLORBASE数据
function XEVariant GetDataOfUserData | ( | ) |
获取帶類型的用户自定义数据的數據
function XEVariant GetDouble | ( | ) |
获取1个xfloat64数据
function XEVariant GetFloat | ( | ) |
获取1个xfloat32数据
function XEVariant GetFloat2 | ( | ) |
获取2个xfloat32数据
function XEVariant GetFloat3 | ( | ) |
获取3个xfloat32数据
function XEVariant GetFloat4 | ( | ) |
获取4个xfloat32数据
function XEVariant GetFloatArray | ( | ) |
XEVariant_GetFloatArray00
function XEVariant GetFloats | ( | ) |
获取指定xfloat32数据, 不判定数据是否有效
function XEVariant GetInt | ( | ) |
获取xint32数据
function XEVariant GetQuaternion | ( | ) |
获取XQUATERNION数据
function XEVariant GetString | ( | ) |
获取XString数据
function XEVariant GetTransform | ( | ) |
获取XETransform数据
function XEVariant GetType | ( | ) |
获取当前数据类型
function XEVariant GetTypeOfUserData | ( | ) |
获取帶類型的用户自定义数据的類型
function XEVariant GetUInt | ( | ) |
获取xuint32数据
function XEVariant GetUserData | ( | ) |
获取用户自定义数据
function XEVariant GetVariantWrapperItem | ( | nIndex | ) |
function XEVariant GetVariantWrapperItemNum | ( | ) |
获取XVT_VARIANT_WRAPPER数据条目个数
function XEVariant RemoveVariantWrapperItemAt | ( | nIndex | ) |
删除XVT_VARIANT_WRAPPER某个条目
nIndex | number nIndex条目索引 |
function XEVariant SetBool | ( | bValue | ) |
设置xbool数据
bValue | boolean xbool数据 |
function XEVariant SetColor | ( | fR | , |
fG | , | ||
fB | |||
) |
设置RGB颜色数据
fR | number R(xfloat32) |
fG | number G(xfloat32) |
fB | number B(xfloat32) |
function XEVariant SetColor | ( | fR | , |
fG | , | ||
fB | , | ||
fA | |||
) |
设置RGBA颜色数据
fR | number R(xfloat32) |
fG | number G(xfloat32) |
fB | number B(xfloat32) |
fA | number A(xfloat32) |
function XEVariant SetCOLORGBASE | ( | Value | ) |
function XEVariant SetDouble | ( | dValue | ) |
设置1个xfloat64数据
dValue | number |
function XEVariant SetFloat | ( | fValue | ) |
设置1个xfloat32数据
fValue | number xfloat32数据 |
function XEVariant SetFloat2 | ( | fValue1 | , |
fValue2 | |||
) |
设置2个xfloat32数据
fValue1 | number xfloat32数据1 |
fValue2 | number xfloat32数据2 |
function XEVariant SetFloat3 | ( | fValue1 | , |
fValue2 | , | ||
fValue3 | |||
) |
设置3个xfloat32数据
fValue1 | number xfloat32数据1 |
fValue2 | number xfloat32数据2 |
fValue3 | number xfloat32数据3 |
function XEVariant SetFloat4 | ( | fValue1 | , |
fValue2 | , | ||
fValue3 | , | ||
fValue4 | |||
) |
设置4个xfloat32数据
fValue1 | number xfloat32数据1 |
fValue2 | number xfloat32数据2 |
fValue3 | number xfloat32数据3 |
fValue4 | number xfloat32数据4 |
function XEVariant SetFloatArray | ( | aFloat | ) |
XEVariant_SetFloatArray00
aFloat | number[] |
function XEVariant SetInt | ( | nValue_ | ) |
设置xint32数据
nValue_ | number xint32数据 |
function XEVariant SetQuaternion | ( | quat | ) |
设置XQUATERNION数据
quat | XQUATERNION |
function XEVariant SetString | ( | str | ) |
设置XString数据
str | string XString数据 |
function XEVariant SetTransform | ( | tf | ) |
function XEVariant SetUInt | ( | nValue_ | ) |
设置xuint32数据
nValue_ | number |
function XEVariant SetUserData | ( | pUserData | ) |
设置用户自定义数据(XVT_USER_DATA)
pUserData | userdata void数据 |
function XEVariant SetUserDataWithType | ( | pUserData | , |
str | |||
) |
设置用户自定义数据和類型(XVT_USER_DATA_WITH_TYPE)
pUserData | userdata void数据 |
str | string |
function XEVariant SetVariantWrapper | ( | vw | ) |
XEVariant = {} |
XEVariant XVT_BOOL = 0 |
XEVariant XVT_COLORRGB = 0 |
XEVariant XVT_COLORRGBA = 0 |
XEVariant XVT_DOUBLE1 = 0 |
XEVariant XVT_FLOAT1 = 0 |
XEVariant XVT_FLOAT2 = 0 |
XEVariant XVT_FLOAT3 = 0 |
XEVariant XVT_FLOAT4 = 0 |
XEVariant XVT_FLOATARRAY = 0 |
XEVariant XVT_INT = 0 |
XEVariant XVT_MATRIX3 = 0 |
XEVariant XVT_MATRIX4 = 0 |
XEVariant XVT_NONE = 0 |
XEVariant XVT_NUM = 0 |
XEVariant XVT_QUATERNION = 0 |
XEVariant XVT_STRING = 0 |
XEVariant XVT_TRANSFORM = 0 |
XEVariant XVT_UINT = 0 |
XEVariant XVT_USER_DATA = 0 |
XEVariant XVT_USER_DATA_WITH_TYPE = 0 |
XEVariant XVT_VARIANT_WRAPPER = 0 |