Update RingOpenGL - Add Function (Source Code) : void glGetUniformfv(GLuint program,GLint location,GLfloat *params)
@@ -4282,6 +4282,28 @@ RING_FUNC(ring_glGetTexParameteriv)
glGetTexParameteriv( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2),(GLint *) RING_API_GETCPOINTER(3,"GLint"));
}
+
+RING_FUNC(ring_glGetUniformfv)
+{
+ 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 ;
+ }
+ glGetUniformfv( (GLuint ) RING_API_GETNUMBER(1), (GLint ) RING_API_GETNUMBER(2),(GLfloat *) RING_API_GETCPOINTER(3,"GLfloat"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -4486,4 +4508,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glgettexlevelparameteriv",ring_glGetTexLevelParameteriv);
ring_vm_funcregister("glgettexparameterfv",ring_glGetTexParameterfv);
ring_vm_funcregister("glgettexparameteriv",ring_glGetTexParameteriv);
+ ring_vm_funcregister("glgetuniformfv",ring_glGetUniformfv);
}
