Update RingOpenGL - Add Function (Source Code) : void gluEndTrim(GLUnurbs* nurb)
@@ -11304,6 +11304,20 @@ RING_FUNC(ring_gluEndSurface)
gluEndSurface((GLUnurbs *) RING_API_GETCPOINTER(1,"GLUnurbs"));
}
+
+RING_FUNC(ring_gluEndTrim)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ gluEndTrim((GLUnurbs *) RING_API_GETCPOINTER(1,"GLUnurbs"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -11864,4 +11878,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gluendcurve",ring_gluEndCurve);
ring_vm_funcregister("gluendpolygon",ring_gluEndPolygon);
ring_vm_funcregister("gluendsurface",ring_gluEndSurface);
+ ring_vm_funcregister("gluendtrim",ring_gluEndTrim);
}
