Update RingOpenGL - Add Function (Source Code) : void gluQuadricNormals(GLUquadric* quad,GLenum normal)
@@ -11838,6 +11838,24 @@ RING_FUNC(ring_gluQuadricDrawStyle)
gluQuadricDrawStyle((GLUquadric *) RING_API_GETCPOINTER(1,"GLUquadric"), (GLenum ) (int) RING_API_GETNUMBER(2));
}
+
+RING_FUNC(ring_gluQuadricNormals)
+{
+ 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 ;
+ }
+ gluQuadricNormals((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);
@@ -12419,4 +12437,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gluproject",ring_gluProject);
ring_vm_funcregister("glupwlcurve",ring_gluPwlCurve);
ring_vm_funcregister("gluquadricdrawstyle",ring_gluQuadricDrawStyle);
+ ring_vm_funcregister("gluquadricnormals",ring_gluQuadricNormals);
}
