Update RingOpenGL - Add Function (Source Code) : void gluGetTessProperty(GLUtesselator* tess,GLenum which,GLdouble* data)
@@ -11368,6 +11368,28 @@ RING_FUNC(ring_gluGetString)
RING_API_RETCPOINTER(gluGetString( (GLenum ) (int) RING_API_GETNUMBER(1)),"GLubyte");
}
+
+RING_FUNC(ring_gluGetTessProperty)
+{
+ 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_ISPOINTER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ gluGetTessProperty((GLUtesselator *) RING_API_GETCPOINTER(1,"GLUtesselator"), (GLenum ) (int) RING_API_GETNUMBER(2),(GLdouble *) RING_API_GETCPOINTER(3,"GLdouble"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -11932,4 +11954,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gluerrorstring",ring_gluErrorString);
ring_vm_funcregister("glugetnurbsproperty",ring_gluGetNurbsProperty);
ring_vm_funcregister("glugetstring",ring_gluGetString);
+ ring_vm_funcregister("glugettessproperty",ring_gluGetTessProperty);
}
