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

WebGLAnimation #105

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

WebGLAnimation #105

wants to merge 12 commits into from

Conversation

trusktr
Copy link
Member

@trusktr trusktr commented Dec 14, 2020

No description provided.

…holder classes for `WebGLRenderingContext` & `WebGL2RenderingContext` which will become the wrappers for our native WebGLContext that is part of the native `window` class.
@trusktr trusktr marked this pull request as draft December 14, 2020 05:50
@p3nGu1nZz p3nGu1nZz marked this pull request as ready for review January 16, 2021 01:14
@trusktr
Copy link
Member Author

trusktr commented Jan 16, 2021

😃


// functions or properties required for testing

requestAnimationFrame(animationLoop: WebGLAnimationFrame): void {
Copy link
Member Author

Choose a reason for hiding this comment

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

ASWebGLue in fact now provides WebGLRenderingContext (we could add WebGLRenderingContext at some point, but for now I just want to get things running).

For requestAnimationFrame, see https://github.com/trusktr/ecmassembly.

* @param gl version 1 of webgl used by most browsers
* @param gl2 version 2 of webgl which supports additional texture features and custom XR and VR devices
*/
setContext(gl: WebGLRenderingContext | null, gl2: WebGL2RenderingContext | null): void {
Copy link
Member Author

Choose a reason for hiding this comment

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

Discriminated union. :)

@trusktr
Copy link
Member Author

trusktr commented Jun 24, 2021

@ZoeDreams Gonna circle back to this and get it in. We will replace requestAnimationFrame with the one from the ecmassembly lib, delete WebGL2RenderingContext (for now, we'll import that one from ASWebGLue later), and replace WebGLRenderingContext with the one ASWebGLue currently has.

@trusktr trusktr changed the base branch from master to main September 7, 2022 16:01
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

Successfully merging this pull request may close these issues.

None yet

2 participants