Update RingOpenGL - Add Function (Source Code) : void gluNurbsProperty(GLUnurbs* nurb,GLenum property,GLfloat value)
@@ -11548,6 +11548,28 @@ RING_FUNC(ring_gluNurbsCurve)
gluNurbsCurve((GLUnurbs *) RING_API_GETCPOINTER(1,"GLUnurbs"), (GLint ) RING_API_GETNUMBER(2),(GLfloat *) RING_API_GETCPOINTER(3,"GLfloat"), (GLint ) RING_API_GETNUMBER(4),(GLfloat *) RING_API_GETCPOINTER(5,"GLfloat"), (GLint ) RING_API_GETNUMBER(6), (GLenum ) (int) RING_API_GETNUMBER(7));
}
+
+RING_FUNC(ring_gluNurbsProperty)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ gluNurbsProperty((GLUnurbs *) RING_API_GETCPOINTER(1,"GLUnurbs"), (GLenum ) (int) RING_API_GETNUMBER(2), (GLfloat ) RING_API_GETNUMBER(3));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -12120,4 +12142,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glunewtess",ring_gluNewTess);
ring_vm_funcregister("glunextcontour",ring_gluNextContour);
ring_vm_funcregister("glunurbscurve",ring_gluNurbsCurve);
+ ring_vm_funcregister("glunurbsproperty",ring_gluNurbsProperty);
}
