Update RingOpenGL - Add Function (Source Code) : void glVertexAttrib4d(GLuint index,GLdouble v0,GLdouble v1,GLdouble v2,GLdouble v3)
@@ -10394,6 +10394,36 @@ RING_FUNC(ring_glVertexAttrib4s)
free(RING_API_GETCPOINTER(5,"GLshort"));
}
+
+RING_FUNC(ring_glVertexAttrib4d)
+{
+ if ( RING_API_PARACOUNT != 5 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ 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 ;
+ }
+ if ( ! RING_API_ISNUMBER(5) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glVertexAttrib4d( (GLuint ) RING_API_GETNUMBER(1), (GLdouble ) RING_API_GETNUMBER(2), (GLdouble ) RING_API_GETNUMBER(3), (GLdouble ) RING_API_GETNUMBER(4), (GLdouble ) RING_API_GETNUMBER(5));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -10904,4 +10934,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glvertexattrib3d",ring_glVertexAttrib3d);
ring_vm_funcregister("glvertexattrib4f",ring_glVertexAttrib4f);
ring_vm_funcregister("glvertexattrib4s",ring_glVertexAttrib4s);
+ ring_vm_funcregister("glvertexattrib4d",ring_glVertexAttrib4d);
}
