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

Cleanup of WebGLGraphicsDevice to strip out WebGL1 code #6312

Merged
merged 3 commits into from
Apr 30, 2024

Conversation

mvaligursky
Copy link
Contributor

general cleanup

@mvaligursky mvaligursky self-assigned this Apr 29, 2024
@mvaligursky mvaligursky requested a review from a team April 29, 2024 14:14
Martin Valigursky added 2 commits April 29, 2024 15:16
* `WebGLRenderingContext` if WebGL 2.0 is not available. But in order for IntelliSense to be
* able to function for all WebGL calls in the codebase, we specify `WebGL2RenderingContext`
* here instead.
* The WebGL2 context managed by the graphics device.
Copy link
Contributor

@willeastcott willeastcott Apr 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should really say Create a new WebglGraphicsDevice instance. And the class description should be update to cover what the WebglGraphicsDevice is about (including talking about the fact that it's a WebGL 2.0-based device with no support for WebGL 1.0. At this moment, the class description is copy+pasted from GraphicsDevice.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a doc for the constructor, but just a gl member. The rest is as you described already.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, yeah, not sure why I misread that. Anyway, this class should have its own class description instead of cloning the GraphicsDevice one. That comment still stands.

@mvaligursky mvaligursky merged commit cf74cea into main Apr 30, 2024
7 checks passed
@mvaligursky mvaligursky deleted the mv-gl1-webglgraphics branch April 30, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants