Update RingOpenGL 1.1 - Add Function (Source Code) : void glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
@@ -7390,6 +7390,32 @@ RING_FUNC(ring_glRenderMode)
RING_API_RETNUMBER(glRenderMode( (GLenum ) (int) RING_API_GETNUMBER(1)));
}
+
+RING_FUNC(ring_glRotated)
+{
+ if ( RING_API_PARACOUNT != 4 ) {
+ RING_API_ERROR(RING_API_MISS4PARA);
+ 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 ;
+ }
+ if ( ! RING_API_ISNUMBER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glRotated( (GLdouble ) RING_API_GETNUMBER(1), (GLdouble ) RING_API_GETNUMBER(2), (GLdouble ) RING_API_GETNUMBER(3), (GLdouble ) RING_API_GETNUMBER(4));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -7639,6 +7665,7 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glrects",ring_glRects);
ring_vm_funcregister("glrectsv",ring_glRectsv);
ring_vm_funcregister("glrendermode",ring_glRenderMode);
+ ring_vm_funcregister("glrotated",ring_glRotated);
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);
