Update RingOpenGL - Add Function (Source Code) : void gluQuadricDrawStyle(GLUquadric* quad,GLenum draw)
@@ -11820,6 +11820,24 @@ RING_FUNC(ring_gluPwlCurve)
gluPwlCurve((GLUnurbs *) RING_API_GETCPOINTER(1,"GLUnurbs"), (GLint ) RING_API_GETNUMBER(2),(GLfloat *) RING_API_GETCPOINTER(3,"GLfloat"), (GLint ) RING_API_GETNUMBER(4), (GLenum ) (int) RING_API_GETNUMBER(5));
}
+
+RING_FUNC(ring_gluQuadricDrawStyle)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ 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 ;
+ }
+ gluQuadricDrawStyle((GLUquadric *) RING_API_GETCPOINTER(1,"GLUquadric"), (GLenum ) (int) RING_API_GETNUMBER(2));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -12400,4 +12418,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glupickmatrix",ring_gluPickMatrix);
ring_vm_funcregister("gluproject",ring_gluProject);
ring_vm_funcregister("glupwlcurve",ring_gluPwlCurve);
+ ring_vm_funcregister("gluquadricdrawstyle",ring_gluQuadricDrawStyle);
}
