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

Build wasm application #148

Open
8 tasks
akosgarai opened this issue Jan 3, 2024 · 0 comments
Open
8 tasks

Build wasm application #148

akosgarai opened this issue Jan 3, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@akosgarai
Copy link
Owner

akosgarai commented Jan 3, 2024

I want to be able to build a webassembly application to execute the animations in the browser.

Must have a wrapper for the webgl calls

Something like:

Wrapper interface extension.

  • The wrapper package has to be changed. It should contain the rendering target (window or canvas). Application could receive the same info from the wrapper.

Window interface

  • Currently the window interface depends on glfw. It has to be changed to internal types that could be reused on the wasm.
  • Application uses the window interface as window. Instead of window, it supposed to be RenderingContext / RenderingTarget or something like it.

Application package

  • Currently it depends on glfw. It is unnecessary for wasm. (KeyCallback, MouseButtonCallback, CharCallback, SetKeyState, SetButtonState, GetMouseButtonState, GetKeyState)

Tasks

  • Implement RenderingTarget interface (based on the window, but has to fulfill the needs of the canvas also).
  • Extend wrapper with the RenderingTarget.
  • Eliminate the window from the Application package. Use the wrapper's RenderingTarget instead.
  • Eliminate the glfw dependency from the Application package. (Input interface and package that holds this dependency. For wasm, it will be different.)
  • Application New forces us to use the glfw stores. It has to be different for wasm build, so that this dependency has to be eliminated.
  • Wasm rendering context implementation.
  • Implement stores for wasm.
  • Implement wasm wrapper.
@akosgarai akosgarai added enhancement New feature or request question Further information is requested labels Jan 3, 2024
@akosgarai akosgarai self-assigned this Jan 3, 2024
@akosgarai akosgarai removed the question Further information is requested label Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant