此函数返回给定"动态纹理组"的状态。状态将是以下常量之一:
纹理组状态常量 | ||
---|---|---|
常量 | 描述 | 值 |
texturegroup_status_unloaded | The Texture Group is still on disk and not in memory | 0 |
texturegroup_status_loading | The Texture Group is currently being loaded from disk | 1 |
texturegroup_status_loaded | The Texture Group has been loaded into RAM | 2 |
texturegroup_status_fetched | The Texture Group has been loaded and fetched into VRAM, ready for use | 3 |
有关其使用的信息,请参阅:动态纹理
texturegroup_get_status(groupname);
参数 | 类型 | 描述 |
---|---|---|
groupname | String | 作为字符串的纹理组的名称。这些在"纹理组"窗口中定义。 |
Texture Group Status Constant
var _tg = "tg_UI";
var _status = texturegroup_get_status(_tg);
if (_status == texturegroup_status_unloaded)
{
texturegroup_load(_tg);
}
这将获取"tg_UI"纹理组的状态,如果它已卸载,则会加载它。