Update RingOpenGL - Add Function (Source Code) : void glPushName(GLuint name)
@@ -6782,6 +6782,20 @@ RING_FUNC(ring_glPushMatrix)
glPushMatrix();
}
+
+RING_FUNC(ring_glPushName)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glPushName( (GLuint ) RING_API_GETNUMBER(1));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -7117,4 +7131,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glpushattrib",ring_glPushAttrib);
ring_vm_funcregister("glpushclientattrib",ring_glPushClientAttrib);
ring_vm_funcregister("glpushmatrix",ring_glPushMatrix);
+ ring_vm_funcregister("glpushname",ring_glPushName);
}
