Update RingOpenGL - Add Function (Source Code) : void gluBeginTrim(GLUnurbs* nurb)
@@ -11142,6 +11142,20 @@ RING_FUNC(ring_gluBeginSurface)
gluBeginSurface((GLUnurbs *) RING_API_GETCPOINTER(1,"GLUnurbs"));
}
+
+RING_FUNC(ring_gluBeginTrim)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ gluBeginTrim((GLUnurbs *) RING_API_GETCPOINTER(1,"GLUnurbs"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -11693,4 +11707,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glubegincurve",ring_gluBeginCurve);
ring_vm_funcregister("glubeginpolygon",ring_gluBeginPolygon);
ring_vm_funcregister("glubeginsurface",ring_gluBeginSurface);
+ ring_vm_funcregister("glubegintrim",ring_gluBeginTrim);
}
