summaryrefslogtreecommitdiff
path: root/doc/gl-docs/GLU/checkextension.3gl
blob: da57be3e758ab05f8d1abe71779f7982f33ef503 (plain)
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
'\" e
'\"! eqn | mmdoc
'\"macro stdmacro
.ds Vn Version 1.2
.ds Dt 6 March 1997
.ds Re Release 1.2.0
.ds Dp May 02 11:53
.ds Dm 37 checkexte
.ds Xs 16492 4 checkextension.gl
.TH GLUCHECKEXTENSION 3G
.SH NAME
.B "gluCheckExtension
\- determines if an extension name is supported
 
.SH C SPECIFICATION
GLboolean \f3gluCheckExtension\fP(
const GLubyte \fI*extName\fP,
.nf
.ta \w'\f3GLboolean \fPgluCheckExtension( 'u
	const GLubyte \fI*extString\fP )
.fi

.SH PARAMETERS
.TP \w'\fIextString\fP\ \ 'u 
\f2extName\fP
Specifies an extension name.
.TP
\f2extString\fP
Specifies a space-separated list of extension names supported. 
.SH DESCRIPTION
\%\f3gluCheckExtension\fP returns \%\f3GL_TRUE\fP if \f2extName\fP is supported otherwise 
\%\f3GL_FALSE\fP is returned.
.P
This is used to check for the presence for OpenGL, GLU or GLX extension names
by passing the extension strings returned by \f3glGetString\fP, 
\%\f3gluGetString\fP, \f3glXGetClientString\fP,
\f3glXQueryExtensionsString\fP, or \f3glXQueryServerString\fP,
respectively, as \f2extString\fP.
.SH NOTES
Cases where one extension name is a substring of another are
correctly handled.
.P
There may or may not be leading or trailing blanks in \f2extString\fP.
.P
Extension names should not contain embedded spaces.
.P
All strings are null-terminated.
.SH SEE ALSO
\f3glGetString(3G)\fP,
\%\f3gluGetString(3G)\fP,
\f3glXGetClientString(3G)\fP,
\f3glXQueryExtensionsString(3G)\fP,
\f3glXQueryServerString(3G)\fP