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

Wishlist: binding for byte-slice aware gl.texImage2D #11

Open
udhos opened this issue Jun 8, 2015 · 1 comment
Open

Wishlist: binding for byte-slice aware gl.texImage2D #11

udhos opened this issue Jun 8, 2015 · 1 comment

Comments

@udhos
Copy link

udhos commented Jun 8, 2015

Want: gl.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 1, 1, 0, gl.RGBA, gl.UNSIGNED_BYTE, rbga)

Current work-around: gl.Call("texImage2D", gl.TEXTURE_2D, 0, gl.RGBA, 1, 1, 0, gl.RGBA, gl.UNSIGNED_BYTE, rgba)

rgba type is []byte

@dmitshur
Copy link
Member

dmitshur commented Jun 9, 2015

This is a valid enhancement request.

I've already implemented this in github.com/goxjs/gl package, see here.

It's also implemented in github.com/shurcooL/gogl package, see this commit and its discussion, but that gogl package is now deprecated and should not be used.

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