Update RingOpenGL - Add Function (Source Code) : void gluTessProperty(GLUtesselator* tess,GLenum which,GLdouble data)
@@ -12050,6 +12050,28 @@ RING_FUNC(ring_gluTessNormal)
gluTessNormal((GLUtesselator *) RING_API_GETCPOINTER(1,"GLUtesselator"), (GLdouble ) RING_API_GETNUMBER(2), (GLdouble ) RING_API_GETNUMBER(3), (GLdouble ) RING_API_GETNUMBER(4));
}
+
+RING_FUNC(ring_gluTessProperty)
+{
+ 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 ;
+ }
+ gluTessProperty((GLUtesselator *) RING_API_GETCPOINTER(1,"GLUtesselator"), (GLenum ) (int) RING_API_GETNUMBER(2), (GLdouble ) RING_API_GETNUMBER(3));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -12641,4 +12663,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glutessendcontour",ring_gluTessEndContour);
ring_vm_funcregister("glutessendpolygon",ring_gluTessEndPolygon);
ring_vm_funcregister("glutessnormal",ring_gluTessNormal);
+ ring_vm_funcregister("glutessproperty",ring_gluTessProperty);
}
