1GLARETEXTURESRESIDEN(3G)         OpenGL Manual        GLARETEXTURESRESIDEN(3G)
2
3
4

NAME

6       glAreTexturesResident - determine if textures are loaded in texture
7       memory
8

C SPECIFICATION

10       GLboolean glAreTexturesResident(GLsizei n, const GLuint * textures,
11                                       GLboolean * residences);
12

PARAMETERS

14       n
15           Specifies the number of textures to be queried.
16
17       textures
18           Specifies an array containing the names of the textures to be
19           queried.
20
21       residences
22           Specifies an array in which the texture residence status is
23           returned. The residence status of a texture named by an element of
24           textures is returned in the corresponding element of residences.
25

DESCRIPTION

27       GL establishes a ``working set'' of textures that are resident in
28       texture memory. These textures can be bound to a texture target much
29       more efficiently than textures that are not resident.
30
31       glAreTexturesResident queries the texture residence status of the n
32       textures named by the elements of textures. If all the named textures
33       are resident, glAreTexturesResident returns GL_TRUE, and the contents
34       of residences are undisturbed. If not all the named textures are
35       resident, glAreTexturesResident returns GL_FALSE, and detailed status
36       is returned in the n elements of residences. If an element of
37       residences is GL_TRUE, then the texture named by the corresponding
38       element of textures is resident.
39
40       The residence status of a single bound texture may also be queried by
41       calling glGetTexParameter() with the target argument set to the target
42       to which the texture is bound, and the pname argument set to
43       GL_TEXTURE_RESIDENT. This is the only way that the residence status of
44       a default texture can be queried.
45

NOTES

47       glAreTexturesResident is available only if the GL version is 1.1 or
48       greater.
49
50       glAreTexturesResident returns the residency status of the textures at
51       the time of invocation. It does not guarantee that the textures will
52       remain resident at any other time.
53
54       If textures reside in virtual memory (there is no texture memory), they
55       are considered always resident.
56
57       Some implementations may not load a texture until the first use of that
58       texture.
59

ERRORS

61       GL_INVALID_VALUE is generated if n is negative.
62
63       GL_INVALID_VALUE is generated if any element in textures is 0 or does
64       not name a texture. In that case, the function returns GL_FALSE and the
65       contents of residences is indeterminate.
66
67       GL_INVALID_OPERATION is generated if glAreTexturesResident is executed
68       between the execution of glBegin() and the corresponding execution of
69       glEnd().
70

ASSOCIATED GETS

72       glGetTexParameter() with parameter name GL_TEXTURE_RESIDENT retrieves
73       the residence status of a currently bound texture.
74

SEE ALSO

76       glBindTexture(), glGetTexParameter(), glPrioritizeTextures(),
77       glTexImage1D(), glTexImage2D(), glTexImage3D(), glTexParameter()
78
80       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
81       under the SGI Free Software B License. For details, see
82       http://oss.sgi.com/projects/FreeB/.
83

AUTHORS

85       opengl.org
86
87
88
89opengl.org                        07/13/2018          GLARETEXTURESRESIDEN(3G)
Impressum