Update RingOpenGL - Add Function (Source Code) : void glEnd(void)
@@ -2510,6 +2510,16 @@ RING_FUNC(ring_glEdgeFlagPointer)
glEdgeFlagPointer( (GLsizei ) (int) RING_API_GETNUMBER(1),(GLvoid *) RING_API_GETCPOINTER(2,"GLvoid"));
}
+
+RING_FUNC(ring_glEnd)
+{
+ if ( RING_API_PARACOUNT != 0 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ glEnd();
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -2628,4 +2638,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gldrawrangeelements",ring_glDrawRangeElements);
ring_vm_funcregister("gledgeflag",ring_glEdgeFlag);
ring_vm_funcregister("gledgeflagpointer",ring_glEdgeFlagPointer);
+ ring_vm_funcregister("glend",ring_glEnd);
}
