Update RingOpenGL 1.1 - Add Function (Source Code) : void glTexCoord2d(GLdouble s, GLdouble t)
@@ -7714,6 +7714,24 @@ RING_FUNC(ring_glTexCoord1sv)
glTexCoord1sv((GLshort *) RING_API_GETCPOINTER(1,"GLshort"));
}
+
+RING_FUNC(ring_glTexCoord2d)
+{
+ 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 ;
+ }
+ glTexCoord2d( (GLdouble ) RING_API_GETNUMBER(1), (GLdouble ) RING_API_GETNUMBER(2));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -7981,6 +7999,7 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gltexcoord1iv",ring_glTexCoord1iv);
ring_vm_funcregister("gltexcoord1s",ring_glTexCoord1s);
ring_vm_funcregister("gltexcoord1sv",ring_glTexCoord1sv);
+ ring_vm_funcregister("gltexcoord2d",ring_glTexCoord2d);
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);
