Skip to content
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

x/mobile/gl: should UniformMatrix4fv take f32.Mat4 as argument? #9366

Closed
remogatto opened this issue Dec 17, 2014 · 2 comments
Closed

x/mobile/gl: should UniformMatrix4fv take f32.Mat4 as argument? #9366

remogatto opened this issue Dec 17, 2014 · 2 comments

Comments

@remogatto
Copy link

I'm in the situation of using gl.UniformMatrix4v with a f32.Mat4 instance. However, the function takes a []float32 slice as argument. I see an inconsistency in that but perhaps I'm missing something. I wonder if gl.UniformMatrix4v could take a f32.Mat4 as argument or if an f32.Mat4 instance can conveniently be converted in a []float32 slice. Thanks.

$ go version
go version devel +2fa657c Fri Dec 12 07:09:39 2014 +0000 linux/amd64
@crawshaw
Copy link
Member

I believe you are looking for http://godoc.org/golang.org/x/mobile/gl#Uniform.WriteMat4

@remogatto
Copy link
Author

Thanks. Sorry for the noise.

@mikioh mikioh changed the title mobile/gl: should UniformMatrix4fv take f32.Mat4 as argument? x/mobile/gl: should UniformMatrix4fv take f32.Mat4 as argument? Aug 5, 2015
@golang golang locked and limited conversation to collaborators Aug 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants