Update RingOpenGL - Add Function (Source Code) : void glUniform1iv(GLint location,GLsizei count,const GLint *value)
@@ -9392,6 +9392,28 @@ RING_FUNC(ring_glUniform4fv)
glUniform4fv( (GLint ) RING_API_GETNUMBER(1), (GLsizei ) (int) RING_API_GETNUMBER(2),(GLfloat *) RING_API_GETCPOINTER(3,"GLfloat"));
}
+
+RING_FUNC(ring_glUniform1iv)
+{
+ 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_ISPOINTER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glUniform1iv( (GLint ) RING_API_GETNUMBER(1), (GLsizei ) (int) RING_API_GETNUMBER(2),(GLint *) RING_API_GETCPOINTER(3,"GLint"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -9852,4 +9874,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gluniform2fv",ring_glUniform2fv);
ring_vm_funcregister("gluniform3fv",ring_glUniform3fv);
ring_vm_funcregister("gluniform4fv",ring_glUniform4fv);
+ ring_vm_funcregister("gluniform1iv",ring_glUniform1iv);
}
