NAME

glPrioritizeTextures - set texture residence priority

C SPECIFICATION

void ggllPPrriioorriittiizzeeTTeexxttuurreess( GLsizei _n,
                           const GLuint _*_t_e_x_t_u_r_e_s,
                           const GLclampf _*_p_r_i_o_r_i_t_i_e_s )

PARAMETERS

_n
Specifies the number of textures to be prioritized.
_t_e_x_t_u_r_e_s
Specifies an array containing the names of the textures to be prioritized.
_p_r_i_o_r_i_t_i_e_s
Specifies an array containing the texture priorities. A priority given in an element of _p_r_i_o_r_i_t_i_e_s applies to the texture named by the corresponding element of _t_e_x_t_u_r_e_s.

DESCRIPTION

ggllPPrriioorriittiizzeeTTeexxttuurreess assigns the _n texture priorities given in _p_r_i_o_r_i_t_i_e_s to the _n textures named in _t_e_x_t_u_r_e_s.

The GL establishes a ``working set'' of textures that are resident in texture memory. These textures may be bound to a texture target much more efficiently than textures that are not resident. By specifying a priority for each texture, ggllPPrriioorriittiizzeeTTeexxttuurreess allows applications to guide the GL implementation in determining which textures should be resident.

The priorities given in _p_r_i_o_r_i_t_i_e_s are clamped to the range [0,1] before they are assigned. 0 indicates the lowest priority; textures with priority 0 are least likely to be resident. 1 indicates the highest priority; textures with priority 1 are most likely to be resident. However, textures are not guaranteed to be resident until they are used.

ggllPPrriioorriittiizzeeTTeexxttuurreess silently ignores attempts to prioritize texture 0, or any texture name that does not correspond to an existing texture.

ggllPPrriioorriittiizzeeTTeexxttuurreess does not require that any of the textures named by _t_e_x_t_u_r_e_s be bound to a texture target. ggllTTeexxPPaarraammeetteerr may also be used to set a texture's priority, but only if the texture is currently bound. This is the only way to set the priority of a default texture.

NOTES

ggllPPrriioorriittiizzeeTTeexxttuurreess is available only if the GL version is 1.1 or greater.

ERRORS

GGLL__IINNVVAALLIIDD__VVAALLUUEE is generated if _n is negative.

GGLL__IINNVVAALLIIDD__OOPPEERRAATTIIOONN is generated if ggllPPrriioorriittiizzeeTTeexxttuurreess is executed between the execution of ggllBBeeggiinn and the corresponding execution of ggllEEnndd.

ASSOCIATED GETS

ggllGGeettTTeexxPPaarraammeetteerr with parameter name GGLL__TTEEXXTTUURREE__PPRRIIOORRIITTYY retrieves the priority of a currently bound texture.

SEE ALSO

ggllAArreeTTeexxttuurreessRReessiiddeenntt((33GG)), ggllBBiinnddTTeexxttuurree((33GG)), ggllCCooppyyTTeexxIImmaaggee11DD((33GG)), ggllCCooppyyTTeexxIImmaaggee22DD((33GG)), ggllTTeexxIImmaaggee11DD((33GG)), ggllTTeexxIImmaaggee22DD((33GG)), ggllTTeexxIImmaaggee33DD((33GG)), ggllTTeexxPPaarraammeetteerr((33GG))