Update RingOpenGL - Add Function (Source Code) : const GLubyte * gluGetString(GLenum name)
@@ -11354,6 +11354,20 @@ RING_FUNC(ring_gluGetNurbsProperty)
gluGetNurbsProperty((GLUnurbs *) RING_API_GETCPOINTER(1,"GLUnurbs"), (GLenum ) (int) RING_API_GETNUMBER(2),(GLfloat *) RING_API_GETCPOINTER(3,"GLfloat"));
}
+
+RING_FUNC(ring_gluGetString)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ RING_API_RETCPOINTER(gluGetString( (GLenum ) (int) RING_API_GETNUMBER(1)),"GLubyte");
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -11917,4 +11931,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gluendtrim",ring_gluEndTrim);
ring_vm_funcregister("gluerrorstring",ring_gluErrorString);
ring_vm_funcregister("glugetnurbsproperty",ring_gluGetNurbsProperty);
+ ring_vm_funcregister("glugetstring",ring_gluGetString);
}
