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

Ensure that GL polygons are built once before their strokes. #806

Merged
merged 2 commits into from
Apr 11, 2018

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Apr 9, 2018

When we build a webgl polygon we attach two vgl actors, one for the polygon and one for the stroke (lines). Whichever actor gets attached first is drawn first. We always want to draw the fill before the stroke, but for efficiency it can be deferred an animation frame when there are updates. The first time this is rendered, don't allow such a delay. This change ensures that the fill actor is added before the stroke actor.

When we build a webgl polygon we attach two vgl actors, one for the
polygon and one for the stroke (lines).  Whichever actor gets attached
first is drawn first.  We always want to draw the fill before the
stroke, but for efficiency it can be deferred an animation frame when
there are updates.  The first time this is rendered, don't allow such a
delay.  This change ensures that the fill actor is added before the
stroke actor.
Copy link

@matthewma7 matthewma7 left a comment

Choose a reason for hiding this comment

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

Works great for me.

@manthey manthey merged commit 9e1317f into master Apr 11, 2018
@manthey manthey deleted the polygon-stroke-order branch May 3, 2018 13:30
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