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

Feathering #14

Open
Resonanz opened this issue Feb 2, 2024 · 1 comment
Open

Feathering #14

Resonanz opened this issue Feb 2, 2024 · 1 comment

Comments

@Resonanz
Copy link

Resonanz commented Feb 2, 2024

Does turning off the feathering turn it off for the entire GUI or just the plot ?

@tomtuamnuq
Copy link
Contributor

Hi @Resonanz , the feathering is turned off at the egui::Context level. Each Context ctx refers to the same mutable data (interior mutability).
So yes, the following code turnes feathering off for the entire GUI:

ctx.tessellation_options_mut(|tess_options| {
            tess_options.feathering = false;
        });

Containers, such as egui::containers::Window do not have separate tessalation options. A egui::Ui (where you place widgets on) has a reference to the parent ctx Context and no separate tessalation options.

There is a tesselate method in egui::Context, so maybe you can tesselate certain Shapes even though the tesselation is turned off globally.

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

No branches or pull requests

2 participants