Update RingOpenGL - Add Function (Source Code) : void glConvolutionFilter2D(GLenum target,GLenum internalformat,GLsizei width,GLsizei height,GLenum format,GLenum type,const GLvoid * data)
@@ -1598,6 +1598,44 @@ RING_FUNC(ring_glConvolutionFilter1D)
glConvolutionFilter1D( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2), (GLsizei ) (int) RING_API_GETNUMBER(3), (GLenum ) (int) RING_API_GETNUMBER(4), (GLenum ) (int) RING_API_GETNUMBER(5),(GLvoid *) RING_API_GETCPOINTER(6,"GLvoid"));
}
+
+RING_FUNC(ring_glConvolutionFilter2D)
+{
+ if ( RING_API_PARACOUNT != 7 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(5) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(6) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(7) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glConvolutionFilter2D( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2), (GLsizei ) (int) RING_API_GETNUMBER(3), (GLsizei ) (int) RING_API_GETNUMBER(4), (GLenum ) (int) RING_API_GETNUMBER(5), (GLenum ) (int) RING_API_GETNUMBER(6),(GLvoid *) RING_API_GETCPOINTER(7,"GLvoid"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -1676,4 +1714,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glcompressedtexsubimage2d",ring_glCompressedTexSubImage2D);
ring_vm_funcregister("glcompressedtexsubimage3d",ring_glCompressedTexSubImage3D);
ring_vm_funcregister("glconvolutionfilter1d",ring_glConvolutionFilter1D);
+ ring_vm_funcregister("glconvolutionfilter2d",ring_glConvolutionFilter2D);
}
