Update RingOpenGL - Add Function (Source Code) : void glMultiTexCoord4s(GLenum target,GLshort s,GLshort t,GLshort r,GLshort q)
@@ -5832,6 +5832,28 @@ RING_FUNC(ring_glMultiTexCoord3d)
glMultiTexCoord3d( (GLenum ) (int) RING_API_GETNUMBER(1), (GLdouble ) RING_API_GETNUMBER(2), (GLdouble ) RING_API_GETNUMBER(3), (GLdouble ) RING_API_GETNUMBER(4));
}
+
+RING_FUNC(ring_glMultiTexCoord4s)
+{
+ if ( RING_API_PARACOUNT != 5 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glMultiTexCoord4s( (GLenum ) (int) RING_API_GETNUMBER(1),* (GLshort *) RING_API_GETCPOINTER(2,"GLshort"),* (GLshort *) RING_API_GETCPOINTER(3,"GLshort"),* (GLshort *) RING_API_GETCPOINTER(4,"GLshort"),* (GLshort *) RING_API_GETCPOINTER(5,"GLshort"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ free(RING_API_GETCPOINTER(2,"GLshort"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(3))
+ free(RING_API_GETCPOINTER(3,"GLshort"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(4))
+ free(RING_API_GETCPOINTER(4,"GLshort"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(5))
+ free(RING_API_GETCPOINTER(5,"GLshort"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -6116,4 +6138,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glmultitexcoord3i",ring_glMultiTexCoord3i);
ring_vm_funcregister("glmultitexcoord3f",ring_glMultiTexCoord3f);
ring_vm_funcregister("glmultitexcoord3d",ring_glMultiTexCoord3d);
+ ring_vm_funcregister("glmultitexcoord4s",ring_glMultiTexCoord4s);
}
