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

Add glow::Context to epi::Frame #1425

Merged
merged 4 commits into from
Mar 27, 2022
Merged

Add glow::Context to epi::Frame #1425

merged 4 commits into from
Mar 27, 2022

Conversation

emilk
Copy link
Owner

@emilk emilk commented Mar 27, 2022

This can be used, for instance, to:

  • Render things to offscreen buffers.
  • Read the pixel buffer from the previous frame (glow::Context::read_pixels).
  • Render things behind the egui windows.

Note that all egui painting is deferred to after the call to App::update (egui only collects egui::Shapes and then eframe paints them all in one go later on).

@emilk emilk merged commit 8f178fa into master Mar 27, 2022
@emilk emilk deleted the glow-context-in-frame branch March 27, 2022 13:20
@BernardBorio
Copy link

Hi, I'm trying to export the painter_layer content as an image, and I've seen you made this function to read the pixels but I have no idea how to use it, can you explain me a bit? It could be great 🙏🏼

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.

2 participants