glGetConvolutionFilter

get current 1D or 2D convolution filter kernel

Signature

glGetConvolutionFilter( GLenum ( target ) , GLenum ( format ) , GLenum ( type ) , GLvoid * ( image ) )-> void
glGetConvolutionFilter( target , format , type , image )
Retrieve 1 or 2D convolution parameter "kernels" as pixel data

Parameters

VariablesDescription
target
The filter to be retrieved. Must be one of GL_CONVOLUTION_1D or GL_CONVOLUTION_2D .
format
Format of the output image. Must be one of GL_RED , GL_GREEN , GL_BLUE , GL_ALPHA , GL_RGB , GL_BGR , GL_RGBA , GL_BGRA , GL_LUMINANCE , or GL_LUMINANCE_ALPHA .
type
Data type of components in the output image. Symbolic constants GL_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 , and GL_UNSIGNED_INT_2_10_10_10_REV are accepted.
image
Pointer to storage for the output image.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glGetConvolutionFilter
OpenGLContext tests/nehe6_convolve.py Lines: 123