GLGETCONVOLUTIONPARAMETER(3G)
π GLGETCONVOLUTIONPARAMETER π
okay so bestie, this is the glGetConvolutionParameterfv / glGetConvolutionParameteriv page from the 3G manual β it's the one where you peek at your convolution filter's settings instead of setting them. asking, not telling. we love a curious queen π
β¨ C SPECIFICATION β¨
void glGetConvolutionParameterfv( GLenum target,
GLenum pname,
GLfloat *params )
void glGetConvolutionParameteriv( GLenum target,
GLenum pname,
GLint *params )
two flavors, same energy: fv hands you floats, iv hands you ints. pick your fighter π
πΈ PARAMETERS πΈ
targetβ the filter whose parameters you're tryna retrieve. has to be one ofGL_CONVOLUTION_1D,GL_CONVOLUTION_2D, orGL_SEPARABLE_2D. (three options, no in-between π¦)pnameβ which parameter you're asking about. must be one ofGL_CONVOLUTION_BORDER_MODE,GL_CONVOLUTION_BORDER_COLOR,GL_CONVOLUTION_FILTER_SCALE,GL_CONVOLUTION_FILTER_BIAS,GL_CONVOLUTION_FORMAT,GL_CONVOLUTION_WIDTH,GL_CONVOLUTION_HEIGHT,GL_MAX_CONVOLUTION_WIDTH, orGL_MAX_CONVOLUTION_HEIGHT.paramsβ pointer to storage where the retrieved parameters get dropped off. it's giving "leave it at the front desk" π¦
π DESCRIPTION π
glGetConvolutionParameter retrieves convolution parameters. target decides which convolution filter gets interrogated. pname decides which parameter comes back out. here's the menu, bestie:
GL_CONVOLUTION_BORDER_MODEβ the convolution border mode. for the full list of border modes, go checkglConvolutionParameter. iykyk πGL_CONVOLUTION_BORDER_COLORβ the current convolution border color.paramsmust be a pointer to an array of four elements, which will receive the red, green, blue, and alpha border colors. four. not three. not five. four πGL_CONVOLUTION_FILTER_SCALEβ the current filter scale factors.paramsmust be a pointer to an array of four elements, receiving the red, green, blue, and alpha filter scale factors, in that order. order matters, don't come for me β¨GL_CONVOLUTION_FILTER_BIASβ the current filter bias factors.paramsmust be a pointer to an array of four elements, receiving the red, green, blue, and alpha filter bias terms, in that order. again: in that order π«ΆGL_CONVOLUTION_FORMATβ the current internal .
okay yes, that sentence literally just ends there π that's how it is on the original page, so that's how it is here. go peepglConvolutionFilter1D,glConvolutionFilter2D, andglSeparableFilter2Dfor lists of allowable formats.
GL_CONVOLUTION_WIDTHβ the current filter image width. πGL_CONVOLUTION_HEIGHTβ the current filter image height. πGL_MAX_CONVOLUTION_WIDTHβ the maximum acceptable filter image width. (the ceiling, the limit, the "that's enough" β)GL_MAX_CONVOLUTION_HEIGHTβ the maximum acceptable filter image height. (same but vertical, slay)
π ERRORS π
these are the vibes-ruiners. read them. memorize them. thank me later.
GL_INVALID_ENUMis generated iftargetis not one of the allowable values. π«GL_INVALID_ENUMis generated ifpnameis not one of the allowable values. π«GL_INVALID_ENUMis generated iftargetisGL_CONVOLUTION_1DandpnameisGL_CONVOLUTION_HEIGHTorGL_MAX_CONVOLUTION_HEIGHT. π«
bestie listen: a 1D filter has no height. asking for its height is not a slay, it's an error. periodt.
GL_INVALID_OPERATIONis generated ifglGetConvolutionParameteris executed between the execution ofglBeginand the corresponding execution ofglEnd. π
so basically don't do that inside aglBegin/glEndblock. that's the forbidden window. respect it.
π¦ SEE ALSO π¦
glGetConvolutionFilter(3G)glGetSeparableFilter2D(3G)glConvolutionParameter(3G)
go read those too, they're the rest of the lore π
and that's the whole page, bestie! this was GLGETCONVOLUTIONPARAMETER(3G) β part of the 3G manual set, dated back in the day and stamped with that same source/version energy at the bottom of the original. now go forth and query your convolution parameters with main character energy πβ¨
π¦ 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