Update RingOpenGL 1.1 - Add Function (Source Code) : void glTexCoord2s(GLshort s, GLshort t)
@@ -7810,6 +7810,24 @@ RING_FUNC(ring_glTexCoord2iv)
glTexCoord2iv((GLint *) RING_API_GETCPOINTER(1,"GLint"));
}
+
+RING_FUNC(ring_glTexCoord2s)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glTexCoord2s( (GLshort ) RING_API_GETNUMBER(1), (GLshort ) RING_API_GETNUMBER(2));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -8083,6 +8101,7 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gltexcoord2fv",ring_glTexCoord2fv);
ring_vm_funcregister("gltexcoord2i",ring_glTexCoord2i);
ring_vm_funcregister("gltexcoord2iv",ring_glTexCoord2iv);
+ ring_vm_funcregister("gltexcoord2s",ring_glTexCoord2s);
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
ring_vm_funcregister("get_gl_false",ring_get_gl_false);
ring_vm_funcregister("get_gl_logic_op",ring_get_gl_logic_op);
