AR_Engine_SDK
|
Functions | |
function XUITexture | GetSpriteFrameUV (spritename) end |
function XUITexture | GetSpriteFrameSize (spritename) end |
function XUITexture | IsSpriteExist (spritename) end |
function XUITexture | IsSpriteRotate (spritename) end |
function XUITexture | new () end |
function XUITextureCache | CreateInstance () end |
function XUITextureCache | GetOrCreateTexture (textureOrplistpath, type_) end |
function XUITextureCache | Release (delete_tex, pimage, spritenameID) end |
function XUITextureCache | Release (delete_tex_map, pimage) end |
function XUITextureCache | GetPlistPath (path, plistpath, spritename) end |
function XUITextureCache | IsPlistPath (xelua_var_4) end |
function XUITextureCache | ReplacePlistSpriteName (xelua_var_5, spritename1) end |
function XUITextureCache | GetPlistSpriteNameStr (xelua_var_6, xelua_var_7) end |
Variables | |
XUITexture = {} | |
function XUITextureCache CreateInstance | ( | ) |
创建UI纹理缓存实例
function XUITextureCache GetOrCreateTexture | ( | textureOrplistpath | , |
type_ | |||
) |
function XUITextureCache GetPlistPath | ( | path | , |
plistpath | , | ||
spritename | |||
) |
分离plist路径与小图名称 plistpath{spritename}
path | cppstring |
plistpath | cppstring |
spritename | cppstring |
function XUITextureCache GetPlistSpriteNameStr | ( | xelua_var_6 | , |
xelua_var_7 | |||
) |
plistpath,spritename 拼接plistpath{spritename} 格式并返回
xelua_var_6 | cppstring |
xelua_var_7 | cppstring |
function XUITexture GetSpriteFrameSize | ( | spritename | ) |
获取合图中小图纹理大小 如若不存在,返回合图大小
spritename | string 小图名称 |
function XUITexture GetSpriteFrameUV | ( | spritename | ) |
XUITexture_GetSpriteFrameUV00
spritename | string |
function XUITextureCache IsPlistPath | ( | xelua_var_4 | ) |
判断字符串是否plistpath{spritename}格式
xelua_var_4 | cppstring |
function XUITexture IsSpriteExist | ( | spritename | ) |
判断合图中小图是否存在
spritename | string 小图名称 |
function XUITexture IsSpriteRotate | ( | spritename | ) |
判断合图中小图是否旋转
spritename | string 小图名称 |
function XUITexture new | ( | ) |
function XUITextureCache Release | ( | delete_tex | , |
pimage | , | ||
spritenameID | |||
) |
释放UI纹理及相关image信息
delete_tex | XUITexture ui纹理 |
pimage | XUIImage uiimage |
spritenameID | number 合图中小图名称 |
function XUITextureCache Release | ( | delete_tex_map | , |
pimage | |||
) |
释放UI纹理及相关image信息
delete_tex_map | xhashtable_xint32_and_XUITexture_p_ |
pimage | XUIImage uiimage |
function XUITextureCache ReplacePlistSpriteName | ( | xelua_var_5 | , |
spritename1 | |||
) |
利用spritename1 替换listpath{spritename}spritename,并返回替换后字符串
xelua_var_5 | cppstring |
spritename1 | cppstring |
XUITexture = {} |