Convolution availability test
GLboolean glaf_IsConvolutionSupported(void)
This function returns GL_TRUE if the feature is supported or
GL_FALSE otherwise. Calling the functions of an unsupported feature
or using its enumerants may crash the application, or generate OpenGL errors,
or even undefined behaviour, so you should never use a feature without
testing its availability first.
Convolution support rules
-
If we're running in OpenGL 1.2 or higher, and GL_ARB_imaging is
supported, and the query of the address of the imaging functions is successful,
the ARB imaging implementation is used.
-
Otherwise, if GL_EXT_convolution is supported, and the query of
the address of the extension functions is successful, this extension is
used.
-
Otherwise, the feature is unsupported.
Convolution enumerants
(Add either a 'GLAF_' or 'GL_' prefix before each enumerant. GLAF enumerants
are always defined, while GL ones depend on the version of your include
files).
CONVOLUTION_1D
CONVOLUTION_2D
SEPARABLE_2D
CONVOLUTION_BORDER_MODE
CONVOLUTION_FILTER_SCALE
CONVOLUTION_FILTER_BIAS
REDUCE
CONVOLUTION_FORMAT
CONVOLUTION_WIDTH
CONVOLUTION_HEIGHT
MAX_CONVOLUTION_WIDTH
MAX_CONVOLUTION_HEIGHT
POST_CONVOLUTION_RED_SCALE
POST_CONVOLUTION_GREEN_SCALE
POST_CONVOLUTION_BLUE_SCALE
POST_CONVOLUTION_ALPHA_SCALE
POST_CONVOLUTION_RED_BIAS
POST_CONVOLUTION_GREEN_BIAS
POST_CONVOLUTION_BLUE_BIAS
POST_CONVOLUTION_ALPHA_BIAS
Convolution functions
glaf_ConvolutionFilter1D
glaf_ConvolutionFilter2D
glaf_ConvolutionParameterf
glaf_ConvolutionParameterfv
glaf_ConvolutionParameteri
glaf_ConvolutionParameteriv
glaf_CopyConvolutionFilter1D
glaf_CopyConvolutionFilter2D
glaf_GetConvolutionFilter
glaf_GetConvolutionParameterfv
glaf_GetConvolutionParameteriv
glaf_SeparableFilter2D
glaf_GetSeparableFilter
Convolution definitions in 'gl2glaf.h' (optional)
#define glConvolutionFilter1D
glaf_ConvolutionFilter1D
#define glConvolutionFilter2D
glaf_ConvolutionFilter2D
#define glConvolutionParameterf
glaf_ConvolutionParameterf
#define glConvolutionParameterfv
glaf_ConvolutionParameterfv
#define glConvolutionParameteri
glaf_ConvolutionParameteri
#define glConvolutionParameteriv
glaf_ConvolutionParameteriv
#define glCopyConvolutionFilter1D
glaf_CopyConvolutionFilter1D
#define glCopyConvolutionFilter2D
glaf_CopyConvolutionFilter2D
#define glGetConvolutionFilter
glaf_GetConvolutionFilter
#define glGetConvolutionParameterfv glaf_GetConvolutionParameterfv
#define glGetConvolutionParameteriv glaf_GetConvolutionParameteriv
#define glSeparableFilter2D
glaf_SeparableFilter2D
#define glGetSeparableFilter
glaf_GetSeparableFilter
Convolution side effects
None. |