Update RingOpenGL - Add Function (Source Code) : void glVertexAttrib1s(GLuint index,GLshort v0)
@@ -10174,6 +10174,22 @@ RING_FUNC(ring_glVertexAttrib1f)
glVertexAttrib1f( (GLuint ) RING_API_GETNUMBER(1), (GLfloat ) RING_API_GETNUMBER(2));
}
+
+RING_FUNC(ring_glVertexAttrib1s)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glVertexAttrib1s( (GLuint ) RING_API_GETNUMBER(1),* (GLshort *) RING_API_GETCPOINTER(2,"GLshort"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ free(RING_API_GETCPOINTER(2,"GLshort"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -10674,4 +10690,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glvertex4fv",ring_glVertex4fv);
ring_vm_funcregister("glvertex4dv",ring_glVertex4dv);
ring_vm_funcregister("glvertexattrib1f",ring_glVertexAttrib1f);
+ ring_vm_funcregister("glvertexattrib1s",ring_glVertexAttrib1s);
}
