5
.ds Dt 24 September 1999
9
.ds Xs 10274 6 gettexparameter.gl
10
.TH GLGETTEXPARAMETER 3G
12
.B "glGetTexParameterfv, glGetTexParameteriv
13
\- return texture parameter values
16
void \f3glGetTexParameterfv\fP(
19
.ta \w'\f3void \fPglGetTexParameterfv( 'u
21
GLfloat \fI*params\fP )
23
void \f3glGetTexParameteriv\fP(
26
.ta \w'\f3void \fPglGetTexParameteriv( 'u
35
.TP \w'\f2target\fP\ \ 'u
37
Specifies the symbolic name of the target texture.
38
\%\f3GL_TEXTURE_1D\fP,\%\f3GL_TEXTURE_2D\fP, and \%\f3GL_TEXTURE_3D\fP are accepted.
41
Specifies the symbolic name of a texture parameter.
42
\%\f3GL_TEXTURE_MAG_FILTER\fP,
43
\%\f3GL_TEXTURE_MIN_FILTER\fP,
44
\%\f3GL_TEXTURE_MIN_LOD\fP,
45
\%\f3GL_TEXTURE_MAX_LOD\fP,
46
\%\f3GL_TEXTURE_BASE_LEVEL\fP,
47
\%\f3GL_TEXTURE_MAX_LEVEL\fP,
48
\%\f3GL_TEXTURE_WRAP_S\fP,
49
\%\f3GL_TEXTURE_WRAP_T\fP,
50
\%\f3GL_TEXTURE_WRAP_R\fP,
51
\%\f3GL_TEXTURE_BORDER_COLOR\fP,
52
\%\f3GL_TEXTURE_PRIORITY\fP, and
53
\%\f3GL_TEXTURE_RESIDENT\fP are accepted.
56
Returns the texture parameters.
58
\%\f3glGetTexParameter\fP returns in \f2params\fP the value or values of the texture parameter
59
specified as \f2pname\fP.
60
\f2target\fP defines the target texture,
61
either \%\f3GL_TEXTURE_1D\fP, \%\f3GL_TEXTURE_2D\fP, or \%\f3GL_TEXTURE_3D\fP
62
to specify one-, two-, or three-dimensional texturing.
63
\f2pname\fP accepts the same symbols as \%\f3glTexParameter\fP,
64
with the same interpretations:
66
\%\f3GL_TEXTURE_MAG_FILTER\fP
67
Returns the single-valued texture magnification filter,
68
a symbolic constant. The initial value is \%\f3GL_LINEAR\fP.
70
\%\f3GL_TEXTURE_MIN_FILTER\fP
71
Returns the single-valued texture minification filter,
72
a symbolic constant. The initial value is \%\f3GL_NEAREST_MIPMAP_LINEAR\fP.
74
\%\f3GL_TEXTURE_MIN_LOD\fP
75
Returns the single-valued texture minimum level-of-detail value. The
76
initial value is $-1000$.
78
\%\f3GL_TEXTURE_MAX_LOD\fP
79
Returns the single-valued texture maximum level-of-detail value. The
80
initial value is 1000.
82
\%\f3GL_TEXTURE_BASE_LEVEL\fP
83
Returns the single-valued base texture mipmap level. The initial value is 0.
85
\%\f3GL_TEXTURE_MAX_LEVEL\fP
86
Returns the single-valued maximum texture mipmap array level. The initial
89
\%\f3GL_TEXTURE_WRAP_S\fP
90
Returns the single-valued wrapping function for texture coordinate $s$,
91
a symbolic constant. The initial value is \%\f3GL_REPEAT\fP.
93
\%\f3GL_TEXTURE_WRAP_T\fP
94
Returns the single-valued wrapping function for texture coordinate $t$,
95
a symbolic constant. The initial value is \%\f3GL_REPEAT\fP.
97
\%\f3GL_TEXTURE_WRAP_R\fP
98
Returns the single-valued wrapping function for texture coordinate $r$,
99
a symbolic constant. The initial value is \%\f3GL_REPEAT\fP.
102
\%\f3GL_TEXTURE_BORDER_COLOR\fP
103
Returns four integer or floating-point numbers that comprise the RGBA color
104
of the texture border.
105
Floating-point values are returned in the range [0, 1].
106
Integer values are returned as a linear mapping of the internal floating-point
107
representation such that 1.0 maps to the most positive representable
108
integer and \-1.0 maps to the most negative representable
109
integer. The initial value is (0, 0, 0, 0).
111
\%\f3GL_TEXTURE_PRIORITY\fP
112
Returns the residence priority of the target texture (or the named
113
texture bound to it). The initial value is 1.
114
See \%\f3glPrioritizeTextures\fP.
116
\%\f3GL_TEXTURE_RESIDENT\fP
117
Returns the residence status of the target texture.
118
If the value returned in \f2params\fP is \%\f3GL_TRUE\fP, the texture is
119
resident in texture memory.
120
See \%\f3glAreTexturesResident\fP.
122
\%\f3GL_TEXTURE_PRIORITY\fP and \%\f3GL_TEXTURE_RESIDENT\fP are
123
available only if the GL version is 1.1 or greater.
125
\%\f3GL_TEXTURE_3D\fP,
126
\%\f3GL_TEXTURE_MIN_LOD\fP, \%\f3GL_TEXTURE_MAX_LOD\fP, \%\f3GL_TEXTURE_BASE_LEVEL\fP,
127
\%\f3GL_TEXTURE_MAX_LEVEL\fP, and \%\f3GL_TEXTURE_WRAP_R\fP are available only
128
if the GL version is 1.2 or greater.
130
If an error is generated,
131
no change is made to the contents of \f2params\fP.
133
\%\f3GL_INVALID_ENUM\fP is generated if \f2target\fP or \f2pname\fP is not an
136
\%\f3GL_INVALID_OPERATION\fP is generated if \%\f3glGetTexParameter\fP
137
is executed between the execution of \%\f3glBegin\fP
138
and the corresponding execution of \%\f3glEnd\fP.
140
\%\f3glAreTexturesResident(3G)\fP,
141
\%\f3glPrioritizeTextures(3G)\fP,
142
\%\f3glTexParameter(3G)\fP