Update RingOpenGL 1.1 - Add Function (Source Code) : void glNormal3d(GLdouble nx, GLdouble ny, GLdouble nz)
@@ -6168,6 +6168,28 @@ RING_FUNC(ring_glNormal3bv)
glNormal3bv((GLbyte *) RING_API_GETCPOINTER(1,"GLbyte"));
}
+
+RING_FUNC(ring_glNormal3d)
+{
+ 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 ;
+ }
+ glNormal3d( (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);
@@ -6350,6 +6372,7 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glnewlist",ring_glNewList);
ring_vm_funcregister("glnormal3b",ring_glNormal3b);
ring_vm_funcregister("glnormal3bv",ring_glNormal3bv);
+ ring_vm_funcregister("glnormal3d",ring_glNormal3d);
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);
