5
.ds Dt 24 September 1999
9
.ds Xs 38054 6 getconvolutionfilter.gl
10
.TH GLGETCONVOLUTIONFILTER 3G
12
.B "glGetConvolutionFilter
13
\- get current 1D or 2D convolution filter kernel
16
void \f3glGetConvolutionFilter\fP(
19
.ta \w'\f3void \fPglGetConvolutionFilter( 'u
26
.TP \w'\f2target\fP\ \ 'u
28
The filter to be retrieved.
30
\%\f3GL_CONVOLUTION_1D\fP or
31
\%\f3GL_CONVOLUTION_2D\fP.
34
Format of the output image.
44
\%\f3GL_LUMINANCE\fP, or
45
\%\f3GL_LUMINANCE_ALPHA\fP.
48
Data type of components in the output image.
50
\%\f3GL_UNSIGNED_BYTE\fP,
53
\%\f3GL_UNSIGNED_SHORT\fP,
55
\%\f3GL_UNSIGNED_INT\fP,
58
\%\f3GL_UNSIGNED_BYTE_3_3_2\fP,
59
\%\f3GL_UNSIGNED_BYTE_2_3_3_REV\fP,
60
\%\f3GL_UNSIGNED_SHORT_5_6_5\fP,
61
\%\f3GL_UNSIGNED_SHORT_5_6_5_REV\fP,
62
\%\f3GL_UNSIGNED_SHORT_4_4_4_4\fP,
63
\%\f3GL_UNSIGNED_SHORT_4_4_4_4_REV\fP,
64
\%\f3GL_UNSIGNED_SHORT_5_5_5_1\fP,
65
\%\f3GL_UNSIGNED_SHORT_1_5_5_5_REV\fP,
66
\%\f3GL_UNSIGNED_INT_8_8_8_8\fP,
67
\%\f3GL_UNSIGNED_INT_8_8_8_8_REV\fP,
68
\%\f3GL_UNSIGNED_INT_10_10_10_2\fP, and
69
\%\f3GL_UNSIGNED_INT_2_10_10_10_REV\fP
73
Pointer to storage for the output image.
75
\%\f3glGetConvolutionFilter\fP returns the current 1D or 2D convolution filter kernel as an image.
76
The one- or two-dimensional image is placed in \f2image\fP according to the
77
specifications in \f2format\fP and \f2type\fP.
78
No pixel transfer operations are performed on this image, but the relevant
79
pixel storage modes are applied.
81
Color components that are present in \f2format\fP but not included in the
82
internal of the filter are returned as zero.
83
The assignments of internal color components to the components of \f2format\fP
92
Internal Component Resulting Component
103
\%\f3glGetConvolutionFilter\fP is present only if \%\f3GL_ARB_imaging\fP is returned when \%\f3glGetString\fP
104
is called with an argument of \%\f3GL_EXTENSIONS\fP.
106
The current separable 2D filter must be retrieved with
107
\%\f3glGetSeparableFilter\fP rather than \%\f3glGetConvolutionFilter\fP.
109
\%\f3GL_INVALID_ENUM\fP is generated if \f2target\fP is not one of the allowable
112
\%\f3GL_INVALID_ENUM\fP is generated if \f2format\fP is not one of the allowable
115
\%\f3GL_INVALID_ENUM\fP is generated if \f2type\fP is not one of the allowable
118
\%\f3GL_INVALID_OPERATION\fP is generated if \%\f3glGetConvolutionFilter\fP is executed
119
between the execution of \%\f3glBegin\fP and the corresponding
120
execution of \%\f3glEnd\fP.
122
\%\f3GL_INVALID_OPERATION\fP is generated if \f2type\fP is one of
123
\%\f3GL_UNSIGNED_BYTE_3_3_2\fP,
124
\%\f3GL_UNSIGNED_BYTE_2_3_3_REV\fP,
125
\%\f3GL_UNSIGNED_SHORT_5_6_5\fP, or
126
\%\f3GL_UNSIGNED_SHORT_5_6_5_REV\fP
127
and \f2format\fP is not \%\f3GL_RGB\fP.
129
\%\f3GL_INVALID_OPERATION\fP is generated if \f2type\fP is one of
130
\%\f3GL_UNSIGNED_SHORT_4_4_4_4\fP,
131
\%\f3GL_UNSIGNED_SHORT_4_4_4_4_REV\fP,
132
\%\f3GL_UNSIGNED_SHORT_5_5_5_1\fP,
133
\%\f3GL_UNSIGNED_SHORT_1_5_5_5_REV\fP,
134
\%\f3GL_UNSIGNED_INT_8_8_8_8\fP,
135
\%\f3GL_UNSIGNED_INT_8_8_8_8_REV\fP,
136
\%\f3GL_UNSIGNED_INT_10_10_10_2\fP, or
137
\%\f3GL_UNSIGNED_INT_2_10_10_10_REV\fP
138
and \f2format\fP is neither \%\f3GL_RGBA\fP nor \%\f3GL_BGRA\fP.
140
\%\f3glGetConvolutionParameter\fP
142
\%\f3glGetSeparableFilter(3G)\fP,
143
\%\f3glConvolutionParameter(3G)\fP,
144
\%\f3glConvolutionFilter1D(3G)\fP,
145
\%\f3glConvolutionFilter2D(3G)\fP