Update RingOpenGL - Add Function (Source Code) : void gluDeleteNurbsRenderer(GLUnurbs* nurb)
@@ -11190,6 +11190,20 @@ RING_FUNC(ring_gluCylinder)
gluCylinder((GLUquadric *) RING_API_GETCPOINTER(1,"GLUquadric"), (GLdouble ) RING_API_GETNUMBER(2), (GLdouble ) RING_API_GETNUMBER(3), (GLdouble ) RING_API_GETNUMBER(4), (GLint ) RING_API_GETNUMBER(5), (GLint ) RING_API_GETNUMBER(6));
}
+
+RING_FUNC(ring_gluDeleteNurbsRenderer)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ gluDeleteNurbsRenderer((GLUnurbs *) RING_API_GETCPOINTER(1,"GLUnurbs"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -11743,4 +11757,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glubeginsurface",ring_gluBeginSurface);
ring_vm_funcregister("glubegintrim",ring_gluBeginTrim);
ring_vm_funcregister("glucylinder",ring_gluCylinder);
+ ring_vm_funcregister("gludeletenurbsrenderer",ring_gluDeleteNurbsRenderer);
}
