Skip to content

Possible to render a framebuffer inside a div or img? #632

Answered by mikke89
ben-metzger-z asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, glad to hear the transition has been smooth so far!

Certainly, there are various ways to achieve this. The easiest I would say is simply to dedicate some kind of texture name for this purpose. Then, in your render interface, whenever you see this texture name, you plug in your framebuffer, and have that one render like other textures. In your document, you would just add this as a normal image or decorator. You might want to give it a name like /my_framebuffer so that it is resolved like an absolute path instead of being resolved relative to the document, but those are implementation details.

If you want more power and flexibility, you could implement a custom decorator. This allows …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ben-metzger-z
Comment options

@mikke89
Comment options

Answer selected by ben-metzger-z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants