Update RingOpenGL - Add Function (Source Code) : void glTexCoord1sv(const GLshort * v)
@@ -8278,6 +8278,20 @@ RING_FUNC(ring_glTexCoord4d)
glTexCoord4d( (GLdouble ) RING_API_GETNUMBER(1), (GLdouble ) RING_API_GETNUMBER(2), (GLdouble ) RING_API_GETNUMBER(3), (GLdouble ) RING_API_GETNUMBER(4));
}
+
+RING_FUNC(ring_glTexCoord1sv)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glTexCoord1sv((GLshort *) RING_API_GETCPOINTER(1,"GLshort"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -8689,4 +8703,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gltexcoord4i",ring_glTexCoord4i);
ring_vm_funcregister("gltexcoord4f",ring_glTexCoord4f);
ring_vm_funcregister("gltexcoord4d",ring_glTexCoord4d);
+ ring_vm_funcregister("gltexcoord1sv",ring_glTexCoord1sv);
}
