Update RingOpenGL - Add Function (Source Code) : void glUniform2f(GLint location,GLfloat v0,GLfloat v1)
@@ -9130,6 +9130,28 @@ RING_FUNC(ring_glUniform1f)
glUniform1f( (GLint ) RING_API_GETNUMBER(1), (GLfloat ) RING_API_GETNUMBER(2));
}
+
+RING_FUNC(ring_glUniform2f)
+{
+ 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 ;
+ }
+ glUniform2f( (GLint ) RING_API_GETNUMBER(1), (GLfloat ) RING_API_GETNUMBER(2), (GLfloat ) RING_API_GETNUMBER(3));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -9579,4 +9601,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gltranslated",ring_glTranslated);
ring_vm_funcregister("gltranslatef",ring_glTranslatef);
ring_vm_funcregister("gluniform1f",ring_glUniform1f);
+ ring_vm_funcregister("gluniform2f",ring_glUniform2f);
}
