texturegroup_get_status

此函数返回给定"动态纹理组"的状态。状态将是以下常量之一:

纹理组状态常量
常量描述
texturegroup_status_unloadedThe Texture Group is still on disk and not in memory0
texturegroup_status_loadingThe Texture Group is currently being loaded from disk1
texturegroup_status_loadedThe Texture Group has been loaded into RAM2
texturegroup_status_fetchedThe Texture Group has been loaded and fetched into VRAM, ready for use3

有关其使用的信息,请参阅:动态纹理

 

语法:

texturegroup_get_status(groupname);

参数类型描述
groupnameString作为字符串的纹理组的名称。这些在"纹理组"窗口中定义。

 

返回:

Texture Group Status Constant

 

例子:

var _tg = "tg_UI";
var _status = texturegroup_get_status(_tg);

if (_status == texturegroup_status_unloaded)
{
    texturegroup_load(_tg);
}

这将获取"tg_UI"纹理组的状态,如果它已卸载,则会加载它。