webgl icon indicating copy to clipboard operation
webgl copied to clipboard

UniformMatrix4fv (and other *v functions) have vararg parameters

Open dertseha opened this issue 11 years ago • 1 comments

The matrix parameters of the *v functions are parameter lists, both according to OpenGL ES 2 and the WebGL specification. The current signature of the wrapper specifies only one slice.

Is there a specific reason that they only take one parameter?

In my code to wrap WebGL behind an OpenGL ES 2 interface I'm calling the JS function directly, as seen here.

Additionally: Should the signature be changed, may I suggest to have array types as parameters instead of slices? go-gl does that for instance.

dertseha avatar Aug 25 '14 20:08 dertseha

Thanks for reporting! I will look into this. The original binding was just quick and dirty.

ajhager avatar Aug 30 '14 17:08 ajhager