Update RingOpenGL - Add Function (Source Code) : GLXPixmap glXCreatePixmap(Display * dpy,GLXFBConfig config,Pixmap pixmap,const int * attrib_list)
@@ -12318,6 +12318,34 @@ RING_FUNC(ring_glXCreatePbuffer)
RING_API_ACCEPTINTVALUE(3) ;
}
+
+RING_FUNC(ring_glXCreatePixmap)
+{
+ if ( RING_API_PARACOUNT != 4 ) {
+ RING_API_ERROR(RING_API_MISS4PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISSTRING(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ {
+ GLXPixmap *pValue ;
+ pValue = (GLXPixmap *) malloc(sizeof(GLXPixmap)) ;
+ *pValue = glXCreatePixmap((Display *) RING_API_GETCPOINTER(1,"Display"),* (GLXFBConfig *) RING_API_GETCPOINTER(2,"GLXFBConfig"),* (Pixmap *) RING_API_GETCPOINTER(3,"Pixmap"),RING_API_GETINTPOINTER(4));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ free(RING_API_GETCPOINTER(2,"GLXFBConfig"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(3))
+ free(RING_API_GETCPOINTER(3,"Pixmap"));
+ RING_API_RETCPOINTER(pValue,"GLXPixmap");
+ }
+ RING_API_ACCEPTINTVALUE(4) ;
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -12919,4 +12947,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glxcreateglxpixmap",ring_glXCreateGLXPixmap);
ring_vm_funcregister("glxcreatenewcontext",ring_glXCreateNewContext);
ring_vm_funcregister("glxcreatepbuffer",ring_glXCreatePbuffer);
+ ring_vm_funcregister("glxcreatepixmap",ring_glXCreatePixmap);
}
