Update RingOpenGL - Add Function (Source Code) : void gluBeginPolygon(GLUtesselator* tess)
@@ -11114,6 +11114,20 @@ RING_FUNC(ring_gluBeginCurve)
gluBeginCurve((GLUnurbs *) RING_API_GETCPOINTER(1,"GLUnurbs"));
}
+
+RING_FUNC(ring_gluBeginPolygon)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ gluBeginPolygon((GLUtesselator *) RING_API_GETCPOINTER(1,"GLUtesselator"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -11663,4 +11677,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glwindowpos3fv",ring_glWindowPos3fv);
ring_vm_funcregister("glwindowpos3dv",ring_glWindowPos3dv);
ring_vm_funcregister("glubegincurve",ring_gluBeginCurve);
+ ring_vm_funcregister("glubeginpolygon",ring_gluBeginPolygon);
}
