PDA

View Full Version : OpenGL convolution



03-30-2003, 02:09 AM
I looked up convolution with openGL and found a message board like this where somebody had asked about doing it and there was a code sample given using these three lines of code

glEnable(GL_CONVOLUTION_2D);
glConvolutionFilter2D(...
glConvolutionParameteri(...

My compiler can't see any of these convolution things, I must have an older library of opengl then this person. Where do I get the newest openGL library, I am using the one that comes with vc++6 called opengl32.lib

shinpaughp
03-30-2003, 09:52 AM
It is only available if the extension GL_ARB_imaging is supported by your card. If so, use wglGetProcAddress to get the function. Also, if the headers you have do not have the constants defined, download the glext.h header from the FAQs section from the homepage of this site located under the heading extensions.