-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add webgl2
IDL spec and generated code
#18
Conversation
This is a requirement for `webgl2`, which I'm going to add in a future PR.
# Conflicts: # Sources/DOMKit/Generated.swift # parse-idl/parse-all.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting to see WebAPIKit code actually being run is awesome! And after my brush with OpenGL in C++ last fall I think the argument labels alone are a MASSIVE improvement haha. Thanks for pushing this through!
//extension WebGL2RenderingContext: Any_RenderingContext {} | ||
//extension WebGLRenderingContext: Any_RenderingContext {} | ||
// extension WebGL2RenderingContext: Any_RenderingContext {} | ||
// extension WebGLRenderingContext: Any_RenderingContext {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These can be uncommented, right?
Thanks! I'm thinking of integrating Euclid with WebGL 2 via WebAPIKit. Thankfully, Euclid already compiles and passes all tests almost without issues. It would take time to make something comparable to three.js, but could be a start. |
I've added WebGL 2 example code to
DOMKitDemo
ported from https://webgl2fundamentals.org/webgl/lessons/webgl-fundamentals.html, which is under MIT/BSD3-like license (added inline to the file), looks like this in action after you press the button. Just a pink triangle, but it finally works!