Skip to content

UniformMatrix4fv (and other *v functions) have vararg parameters #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dertseha opened this issue Aug 25, 2014 · 1 comment
Open

Comments

@dertseha
Copy link

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.

@ajhager
Copy link
Contributor

ajhager commented Aug 30, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants