GLGETCONVOLUTIONFILTER(3G)
β¨ GLGETCONVOLUTIONFILTER β¨
okay bestie, we're doing glGetConvolutionFilter from the 3G manual family β OpenGL imaging hours, no cap π
π C SPECIFICATION π
void glGetConvolutionFilter( GLenum target,
GLenum format,
GLenum type,
GLvoid *image )
πΈ PARAMETERS πΈ
targetβ which filter you wanna pull out, queen. Gotta be one ofGL_CONVOLUTION_1DorGL_CONVOLUTION_2D.formatβ the format of the output image. Must be one ofGL_RED,GL_GREEN,GL_BLUE,GL_ALPHA,GL_RGB,GL_BGR,GL_RGBA,GL_BGRA,GL_LUMINANCE, orGL_LUMINANCE_ALPHA.typeβ the data type of the components in your output image. The symbolic constants it accepts areGL_UNSIGNED_BYTE,GL_BYTE,GL_BITMAP,GL_UNSIGNED_SHORT,GL_SHORT,GL_UNSIGNED_INT,GL_INT,GL_FLOAT,GL_UNSIGNED_BYTE_3_3_2,GL_UNSIGNED_BYTE_2_3_3_REV,GL_UNSIGNED_SHORT_5_6_5,GL_UNSIGNED_SHORT_5_6_5_REV,GL_UNSIGNED_SHORT_4_4_4_4,GL_UNSIGNED_SHORT_4_4_4_4_REV,GL_UNSIGNED_SHORT_5_5_5_1,GL_UNSIGNED_SHORT_1_5_5_5_REV,GL_UNSIGNED_INT_8_8_8_8,GL_UNSIGNED_INT_8_8_8_8_REV,GL_UNSIGNED_INT_10_10_10_2, andGL_UNSIGNED_INT_2_10_10_10_REV.imageβ a pointer to storage where the output image goes. Your lil landing zone π«Ά
π DESCRIPTION π
So like, glGetConvolutionFilter returns the current 1D or 2D convolution filter kernel as an image. Iconic behavior honestly. That one- or two-dimensional image gets placed into image following whatever you specified in format and type. And here's the tea: no pixel transfer operations are performed on this image β but the relevant pixel storage modes do get applied. iykyk.
Color components that show up in format but aren't included in the internal of the filter come back as zero. The way the internal color components map onto the components of format is literally this:
βββββββββββββββββββββββββββββββββββββββββ
Internal Component Resulting Component
βββββββββββββββββββββββββββββββββββββββββ
Red Red
Green Green
Blue Blue
Alpha Alpha
Luminance Red
Intensity Red
βββββββββββββββββββββββββββββββββββββββββ
π NOTES π
glGetConvolutionFilter is present only if GL_ARB_imaging is returned when glGetString is called with an argument of GL_EXTENSIONS. vibe check your extensions first, fr fr.
Also β the current separable 2D filter has to be retrieved withglGetSeparableFilter, not withglGetConvolutionFilter. Don't come for me, that's just how it is π
π ERRORS π
GL_INVALID_ENUMis generated iftargetis not one of the allowable values.GL_INVALID_ENUMis generated ifformatis not one of the allowable values.GL_INVALID_ENUMis generated iftypeis not one of the allowable values.GL_INVALID_OPERATIONis generated ifglGetConvolutionFilteris executed between the execution ofglBeginand the corresponding execution ofglEnd. (not in the middle of a begin/end block bestie, that's the rule π)GL_INVALID_OPERATIONis generated iftypeis one ofGL_UNSIGNED_BYTE_3_3_2,GL_UNSIGNED_BYTE_2_3_3_REV,GL_UNSIGNED_SHORT_5_6_5, orGL_UNSIGNED_SHORT_5_6_5_REVandformatis notGL_RGB.GL_INVALID_OPERATIONis generated iftypeis one ofGL_UNSIGNED_SHORT_4_4_4_4,GL_UNSIGNED_SHORT_4_4_4_4_REV,GL_UNSIGNED_SHORT_5_5_5_1,GL_UNSIGNED_SHORT_1_5_5_5_REV,GL_UNSIGNED_INT_8_8_8_8,GL_UNSIGNED_INT_8_8_8_8_REV,GL_UNSIGNED_INT_10_10_10_2, orGL_UNSIGNED_INT_2_10_10_10_REVandformatis neitherGL_RGBAnorGL_BGRA.
π₯ ASSOCIATED GETS π₯
glGetConvolutionParameter
π¦ SEE ALSO π¦
glGetSeparableFilter(3G)glConvolutionParameter(3G)glConvolutionFilter1D(3G)glConvolutionFilter2D(3G)
and that's the whole page bestie, you ate π this was the GLGETCONVOLUTIONFILTER(3G) page β source/version and date brought to you by the 3G crew, GLGETCONVOLUTIONFILTER(3G) on both ends, slay β¨ππ
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- fedora 43: gl-manpages 1.1-34.20190306.fc43 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- fedora 44: gl-manpages 1.1-35.20190306.fc44 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms