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
Hey, is it possible to use the OR operator somehow? I can call this webgl function:
context.clear(context.COLOR_BUFFER_BIT)
however this does not work:
context.clear(context.COLOR_BUFFER_BIT | context.DEPTH_BUFFER_BIT)
The text was updated successfully, but these errors were encountered:
Please cast JSValue to Int and apply OR in Swift, then pass it to JS method like below:
let COLOR_BUFFER_BIT = Int(context.COLOR_BUFFER_BIT.number!) let DEPTH_BUFFER_BIT = Int(context.DEPTH_BUFFER_BIT.number!) context.clear(COLOR_BUFFER_BIT | DEPTH_BUFFER_BIT)
Sorry, something went wrong.
Thanks, I couldn't figure out the .number! part 🙂
No branches or pull requests
Hey, is it possible to use the OR operator somehow?
I can call this webgl function:
however this does not work:
The text was updated successfully, but these errors were encountered: