We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
texImage2D(target, level, internalformat, width, height, border, format, type, pixels)
pixels
texImage2D(target, level, internalformat, format, type, pixels)
For example:
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, image); gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, image.width, image.height, 0, gl.RGBA, gl.UNSIGNED_BYTE, image.data);
I think the second variant of texImage2D should accept ImageData too.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
texImage2D(target, level, internalformat, width, height, border, format, type, pixels)
wantspixels
as UInt8Array.texImage2D(target, level, internalformat, format, type, pixels)
wantspixels
as ImageData.For example:
I think the second variant of texImage2D should accept ImageData too.
The text was updated successfully, but these errors were encountered: