That´s works when i have to use one dimensional array.
When I pass the values using "setUniform1fv " it works, but only for one dimensional array.
but when i want to pass the array holding the vectors (Each one with X and Y positions) using the function .
“setUniform2fV” it won´t work. I get :
Severity Code Description Project File Line Suppression State
Error (active) E0167 argument of type "ofVec2f *" is incompatible with parameter of type "const float *" RatParkV1 c:\WORKSPACE\of_v0.9.8_vs_release\apps\myApps\RatParkV1\src\ofApp.cpp 531
This is the line of code that Im using for passing the array of ofVec2f to the shader :
Im going to try to pass each coordinate in one separate array (one for the x, and one for the Y) using
But anyway I still don´t know how to use the function "setUniform2fv " , it is supposed to recibe an array of vectors or what is it for?