Update RingOpenGL - Add Function (Source Code) : void glXDestroyPixmap(Display * dpy,GLXPixmap pixmap)
@@ -12422,6 +12422,22 @@ RING_FUNC(ring_glXDestroyPbuffer)
free(RING_API_GETCPOINTER(2,"GLXPbuffer"));
}
+
+RING_FUNC(ring_glXDestroyPixmap)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glXDestroyPixmap((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);
@@ -13028,4 +13044,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glxdestroycontext",ring_glXDestroyContext);
ring_vm_funcregister("glxdestroyglxpixmap",ring_glXDestroyGLXPixmap);
ring_vm_funcregister("glxdestroypbuffer",ring_glXDestroyPbuffer);
+ ring_vm_funcregister("glxdestroypixmap",ring_glXDestroyPixmap);
}
