Update RingOpenGL - Add Function (Source Code) : void glTranslated(GLdouble x,GLdouble y,GLdouble z)
@@ -9068,6 +9068,28 @@ RING_FUNC(ring_glTexSubImage3D)
glTexSubImage3D( (GLenum ) (int) RING_API_GETNUMBER(1), (GLint ) RING_API_GETNUMBER(2), (GLint ) RING_API_GETNUMBER(3), (GLint ) RING_API_GETNUMBER(4), (GLint ) RING_API_GETNUMBER(5), (GLsizei ) (int) RING_API_GETNUMBER(6), (GLsizei ) (int) RING_API_GETNUMBER(7), (GLsizei ) (int) RING_API_GETNUMBER(8), (GLenum ) (int) RING_API_GETNUMBER(9), (GLenum ) (int) RING_API_GETNUMBER(10),(GLvoid *) RING_API_GETCPOINTER(11,"GLvoid"));
}
+
+RING_FUNC(ring_glTranslated)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ 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 ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glTranslated( (GLdouble ) RING_API_GETNUMBER(1), (GLdouble ) RING_API_GETNUMBER(2), (GLdouble ) RING_API_GETNUMBER(3));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -9514,4 +9536,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gltexsubimage1d",ring_glTexSubImage1D);
ring_vm_funcregister("gltexsubimage2d",ring_glTexSubImage2D);
ring_vm_funcregister("gltexsubimage3d",ring_glTexSubImage3D);
+ ring_vm_funcregister("gltranslated",ring_glTranslated);
}
