Update RingOpenGL - Add Function (Source Code) : void glMultiTexCoord2s(GLenum target,GLshort s,GLshort t)
@@ -5650,6 +5650,24 @@ RING_FUNC(ring_glMultiTexCoord1d)
glMultiTexCoord1d( (GLenum ) (int) RING_API_GETNUMBER(1), (GLdouble ) RING_API_GETNUMBER(2));
}
+
+RING_FUNC(ring_glMultiTexCoord2s)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glMultiTexCoord2s( (GLenum ) (int) RING_API_GETNUMBER(1),* (GLshort *) RING_API_GETCPOINTER(2,"GLshort"),* (GLshort *) RING_API_GETCPOINTER(3,"GLshort"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ free(RING_API_GETCPOINTER(2,"GLshort"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(3))
+ free(RING_API_GETCPOINTER(3,"GLshort"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -5926,4 +5944,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glmultitexcoord1i",ring_glMultiTexCoord1i);
ring_vm_funcregister("glmultitexcoord1f",ring_glMultiTexCoord1f);
ring_vm_funcregister("glmultitexcoord1d",ring_glMultiTexCoord1d);
+ ring_vm_funcregister("glmultitexcoord2s",ring_glMultiTexCoord2s);
}
