Update RingOpenGL - Add Function (Source Code) : void gluEndCurve(GLUnurbs* nurb)
@@ -11262,6 +11262,20 @@ RING_FUNC(ring_gluDisk)
gluDisk((GLUquadric *) RING_API_GETCPOINTER(1,"GLUquadric"), (GLdouble ) RING_API_GETNUMBER(2), (GLdouble ) RING_API_GETNUMBER(3), (GLint ) RING_API_GETNUMBER(4), (GLint ) RING_API_GETNUMBER(5));
}
+
+RING_FUNC(ring_gluEndCurve)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ gluEndCurve((GLUnurbs *) RING_API_GETCPOINTER(1,"GLUnurbs"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -11819,4 +11833,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gludeletequadric",ring_gluDeleteQuadric);
ring_vm_funcregister("gludeletetess",ring_gluDeleteTess);
ring_vm_funcregister("gludisk",ring_gluDisk);
+ ring_vm_funcregister("gluendcurve",ring_gluEndCurve);
}
