Update RingOpenGL - Add Function (Source Code) : void glXDestroyGLXPixmap(Display * dpy,GLXPixmap pix)
@@ -12390,6 +12390,22 @@ RING_FUNC(ring_glXDestroyContext)
free(RING_API_GETCPOINTER(2,"GLXContext"));
}
+
+RING_FUNC(ring_glXDestroyGLXPixmap)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glXDestroyGLXPixmap((Display *) RING_API_GETCPOINTER(1,"Display"),* (GLXPixmap *) RING_API_GETCPOINTER(2,"GLXPixmap"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ free(RING_API_GETCPOINTER(2,"GLXPixmap"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -12994,4 +13010,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glxcreatepixmap",ring_glXCreatePixmap);
ring_vm_funcregister("glxcreatewindow",ring_glXCreateWindow);
ring_vm_funcregister("glxdestroycontext",ring_glXDestroyContext);
+ ring_vm_funcregister("glxdestroyglxpixmap",ring_glXDestroyGLXPixmap);
}
