Update RingOpenGL - Add Function (Source Code) : GLXDrawable glXGetCurrentReadDrawable(void)
@@ -12572,6 +12572,21 @@ RING_FUNC(ring_glXGetCurrentDrawable)
}
}
+
+RING_FUNC(ring_glXGetCurrentReadDrawable)
+{
+ if ( RING_API_PARACOUNT != 0 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ {
+ GLXDrawable *pValue ;
+ pValue = (GLXDrawable *) malloc(sizeof(GLXDrawable)) ;
+ *pValue = glXGetCurrentReadDrawable();
+ RING_API_RETCPOINTER(pValue,"GLXDrawable");
+ }
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -13187,4 +13202,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glxgetcurrentcontext",ring_glXGetCurrentContext);
ring_vm_funcregister("glxgetcurrentdisplay",ring_glXGetCurrentDisplay);
ring_vm_funcregister("glxgetcurrentdrawable",ring_glXGetCurrentDrawable);
+ ring_vm_funcregister("glxgetcurrentreaddrawable",ring_glXGetCurrentReadDrawable);
}
