texture_flush


描述

This function can be used to "flush" a texture page or a group of texture pages, ie: remove them from VRAM when no longer required. You supply the unique texture page ID (as returned by the texturegroup_* functions) to flush a single page, or you can supply a texture group name (as defined in the Texture Group Editor) to flush all the texture pages in the group.


语法:

texture_flush(tex_id);

参数 描述
tex_id The texture page ID (an integer) or a texture group ID (a string)


返回:

N/A(无返回值)


例如:

var _tex_array = texturegroup_get_textures( "MainMenu");
for (var i = 0; i < array_length_1d(_tex_array); ++i;)
    {
    texture_flush(_tex_array[i]);
    }

The above code will flush all the texture pages under the texture group "MainMenu".