Update RingOpenGL 1.1 - Add Function (Source Code) : void glScalef(GLfloat x, GLfloat y, GLfloat z)
@@ -7464,6 +7464,28 @@ RING_FUNC(ring_glScaled)
glScaled( (GLdouble ) RING_API_GETNUMBER(1), (GLdouble ) RING_API_GETNUMBER(2), (GLdouble ) RING_API_GETNUMBER(3));
}
+
+RING_FUNC(ring_glScalef)
+{
+ 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 ;
+ }
+ glScalef( (GLfloat ) RING_API_GETNUMBER(1), (GLfloat ) RING_API_GETNUMBER(2), (GLfloat ) RING_API_GETNUMBER(3));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -7716,6 +7738,7 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glrotated",ring_glRotated);
ring_vm_funcregister("glrotatef",ring_glRotatef);
ring_vm_funcregister("glscaled",ring_glScaled);
+ ring_vm_funcregister("glscalef",ring_glScalef);
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);
