Update RingOpenGL - Add Function (Source Code) : void glVertexAttrib1f(GLuint index,GLfloat v0)
@@ -10156,6 +10156,24 @@ RING_FUNC(ring_glVertex4dv)
glVertex4dv((GLdouble *) RING_API_GETCPOINTER(1,"GLdouble"));
}
+
+RING_FUNC(ring_glVertexAttrib1f)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ 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 ;
+ }
+ glVertexAttrib1f( (GLuint ) RING_API_GETNUMBER(1), (GLfloat ) RING_API_GETNUMBER(2));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -10655,4 +10673,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glvertex4iv",ring_glVertex4iv);
ring_vm_funcregister("glvertex4fv",ring_glVertex4fv);
ring_vm_funcregister("glvertex4dv",ring_glVertex4dv);
+ ring_vm_funcregister("glvertexattrib1f",ring_glVertexAttrib1f);
}
