Update RingOpenGL - Add Function (Source Code) : void glNormal3i(GLint nx,GLint ny,GLint nz)
@@ -6310,6 +6310,28 @@ RING_FUNC(ring_glNormal3f)
glNormal3f( (GLfloat ) RING_API_GETNUMBER(1), (GLfloat ) RING_API_GETNUMBER(2), (GLfloat ) RING_API_GETNUMBER(3));
}
+
+RING_FUNC(ring_glNormal3i)
+{
+ 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 ;
+ }
+ glNormal3i( (GLint ) RING_API_GETNUMBER(1), (GLint ) RING_API_GETNUMBER(2), (GLint ) RING_API_GETNUMBER(3));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -6618,4 +6640,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glnormal3b",ring_glNormal3b);
ring_vm_funcregister("glnormal3d",ring_glNormal3d);
ring_vm_funcregister("glnormal3f",ring_glNormal3f);
+ ring_vm_funcregister("glnormal3i",ring_glNormal3i);
}
