File: gettexgen.3gl

package info (click to toggle)
vnc4 4.1.1%2BX4.3.0-37
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 171,636 kB
  • ctags: 288,245
  • sloc: ansic: 2,205,268; cpp: 56,345; sh: 38,092; pascal: 13,773; asm: 12,656; tcl: 9,182; lisp: 7,831; perl: 3,364; makefile: 2,957; yacc: 2,902; objc: 2,698; xml: 2,614; python: 2,383; lex: 1,477; awk: 901; csh: 58; sed: 50
file content (107 lines) | stat: -rw-r--r-- 3,008 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
'\" e
'\"! eqn | mmdoc
'\"macro stdmacro
.ds Vn Version 1.2
.ds Dt 24 September 1999
.ds Re Release 1.2.1
.ds Dp Jan 14 18:30
.ds Dm 01 gettexgen
.ds Xs 2655 5 gettexgen.gl
.TH GLGETTEXGEN 3G
.SH NAME
.B "glGetTexGendv, glGetTexGenfv, glGetTexGeniv
\- return texture coordinate generation parameters

.SH C SPECIFICATION
void \f3glGetTexGendv\fP(
GLenum \fIcoord\fP,
.nf
.ta \w'\f3void \fPglGetTexGendv( 'u
	GLenum \fIpname\fP,
	GLdouble \fI*params\fP )
.fi
void \f3glGetTexGenfv\fP(
GLenum \fIcoord\fP,
.nf
.ta \w'\f3void \fPglGetTexGenfv( 'u
	GLenum \fIpname\fP,
	GLfloat \fI*params\fP )
.fi
void \f3glGetTexGeniv\fP(
GLenum \fIcoord\fP,
.nf
.ta \w'\f3void \fPglGetTexGeniv( 'u
	GLenum \fIpname\fP,
	GLint \fI*params\fP )
.fi

.EQ
delim $$
.EN
.SH PARAMETERS
.TP \w'\fIparams\fP\ \ 'u 
\f2coord\fP
Specifies a texture coordinate.
Must be
\%\f3GL_S\fP,
\%\f3GL_T\fP,
\%\f3GL_R\fP, or
\%\f3GL_Q\fP.
.TP
\f2pname\fP
Specifies the symbolic name of the value(s) to be returned.
Must be either \%\f3GL_TEXTURE_GEN_MODE\fP
or the name of one of the texture generation plane equations:
\%\f3GL_OBJECT_PLANE\fP or \%\f3GL_EYE_PLANE\fP.
.TP
\f2params\fP
Returns the requested data.
.SH DESCRIPTION
\%\f3glGetTexGen\fP returns in \f2params\fP selected parameters of a texture coordinate
generation function that was specified using \%\f3glTexGen\fP.
\f2coord\fP names one of the (\f2s\fP, \f2t\fP, \f2r\fP, \f2q\fP)
texture coordinates,
using the symbolic constant
\%\f3GL_S\fP,
\%\f3GL_T\fP,
\%\f3GL_R\fP, or
\%\f3GL_Q\fP.
.P
\f2pname\fP specifies one of three symbolic names:
.TP 28
\%\f3GL_TEXTURE_GEN_MODE\fP
\f2params\fP returns the single-valued texture generation function,
a symbolic constant. The initial value is \%\f3GL_EYE_LINEAR\fP. 
.TP 
\%\f3GL_OBJECT_PLANE\fP
\f2params\fP returns the four plane equation coefficients that specify
object linear-coordinate generation.
Integer values, when requested,
are mapped directly from the internal floating-point representation.
.BP
.TP
\%\f3GL_EYE_PLANE\fP
\f2params\fP returns the four plane equation coefficients that specify
eye linear-coordinate generation.
Integer values,
when requested,
are mapped directly from the internal floating-point representation.
The returned values are those maintained in eye coordinates.
They are not equal to the values specified using \%\f3glTexGen\fP,
unless the modelview matrix was identity when \%\f3glTexGen\fP was called.
.SH NOTES
If an error is generated,
no change is made to the contents of \f2params\fP.
.P
When the \%\f3GL_ARB_multitexture\fP extension is supported, \%\f3glGetTexGen\fP returns
the texture coordinate generation parameters for the active texture unit.
.SH ERRORS
\%\f3GL_INVALID_ENUM\fP is generated if \f2coord\fP or \f2pname\fP is not an
accepted value.
.P
\%\f3GL_INVALID_OPERATION\fP is generated if \%\f3glGetTexGen\fP
is executed between the execution of \%\f3glBegin\fP
and the corresponding execution of \%\f3glEnd\fP.
.SH SEE ALSO
\%\f3glActiveTextureARB(3G)\fP,
\%\f3glTexGen(3G)\fP