Update RingOpenGL - Add Function (Source Code) : void glLoadIdentity( void)
@@ -4996,6 +4996,16 @@ RING_FUNC(ring_glListBase)
glListBase( (GLuint ) RING_API_GETNUMBER(1));
}
+
+RING_FUNC(ring_glLoadIdentity)
+{
+ if ( RING_API_PARACOUNT != 0 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ glLoadIdentity();
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -5242,4 +5252,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gllinewidth",ring_glLineWidth);
ring_vm_funcregister("gllinkprogram",ring_glLinkProgram);
ring_vm_funcregister("gllistbase",ring_glListBase);
+ ring_vm_funcregister("glloadidentity",ring_glLoadIdentity);
}
