Skip to content

Take Glow context using Arc.#1640

Merged
emilk merged 2 commits intoemilk:masterfrom
surban:use-arc
May 22, 2022
Merged

Take Glow context using Arc.#1640
emilk merged 2 commits intoemilk:masterfrom
surban:use-arc

Conversation

@surban
Copy link
Contributor

@surban surban commented May 18, 2022

This allows usage with a Glow context that is passed between threads.

This is WIP because it first requires merging of asny/three-d#248.

Closes #1637.

surban added 2 commits May 18, 2022 14:23
This allows usage with a Glow context that is passed between threads.
@surban
Copy link
Contributor Author

surban commented May 20, 2022

asny/three-d#248 has been merged, so this is ready.

Only thing remaining is to remove the override, once three-d version 0.12 is published.

@surban surban changed the title [WIP] Take Glow context using Arc. Take Glow context using Arc. May 20, 2022
Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

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

Look good - thanks!

egui_glow = { path = "../../egui_glow" }
glow = "0.11"
three-d = { version = "0.11", default-features = false }
three-d = { version = "0.12", default-features = false }
Copy link
Owner

Choose a reason for hiding this comment

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

I think we should use git = "https://github.com/asny/three-d.git", rev = "7ac4f3e1e14335290e505a5799a0b88717474678" here to make it easier for others to copy-paste this example without getting surprise errors!

@emilk emilk merged commit b251067 into emilk:master May 22, 2022
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.

egui_glow::Painter should take Arc<Context> and not Rc<Context>

2 participants