Skip to content

PicoGK Viewer #27

Answered by LinKayser
AasimRashid asked this question in Q&A
Apr 20, 2024 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

This is not going to be trivial. The PicoGK viewer uses GLFW to provide access to a generic operating system window. You could see, if you could somehow gain access to a Window handle of your Blazor compoinent, provided, it actually uses an OS window (and not its own windowing system inside the browser window, which I suspect). If you can get access to the OS window handle, you could attempt to child the GLFW window to this handle. Again, not a trivial undertaking.

The other thing you could do is get rid of the PicoGK viewer and re-implement it using WebGL, rendering the triangles. There's a lot of functionality in the viewer, but most of it is implemented outside the C++ part. To replace…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@AasimRashid
Comment options

Answer selected by AasimRashid
Comment options

You must be logged in to vote
4 replies
@Mech-eng-au
Comment options

@LinKayser
Comment options

@AasimRashid
Comment options

@Mech-eng-au
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants