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

Take Glow context using Arc. #1640

Merged
merged 2 commits into from
May 22, 2022
Merged

Take Glow context using Arc. #1640

merged 2 commits into from
May 22, 2022

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.

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!

@@ -12,4 +12,4 @@ publish = false
eframe = { path = "../../eframe", features = ["glow"] }
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