Update RingRayLib - raylib.c - Add Function : void SetShaderValueV(Shader shader, int uniformLoc, const void *value, int uniformType, int count)
@@ -5928,6 +5928,34 @@ RING_FUNC(ring_SetShaderValue)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Shader"));
}
+
+RING_FUNC(ring_SetShaderValueV)
+{
+ if ( RING_API_PARACOUNT != 5 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ 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 ;
+ }
+ if ( ! RING_API_ISNUMBER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(5) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ SetShaderValueV(* (Shader *) RING_API_GETCPOINTER(1,"Shader"), (int ) RING_API_GETNUMBER(2),(void *) RING_API_GETCPOINTER(3,"void"), (int ) RING_API_GETNUMBER(4), (int ) RING_API_GETNUMBER(5));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Shader"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -6258,4 +6286,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gettexturedefault",ring_GetTextureDefault);
ring_vm_funcregister("getshaderlocation",ring_GetShaderLocation);
ring_vm_funcregister("setshadervalue",ring_SetShaderValue);
+ ring_vm_funcregister("setshadervaluev",ring_SetShaderValueV);
}
