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

Floem Rotating Text #14

Open
wants to merge 10 commits into
base: floem
Choose a base branch
from
20 changes: 10 additions & 10 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ impl Vger {
prim.quad_bounds = [c.x - radius, c.y - radius, c.x + radius, c.y + radius];
prim.tex_bounds = prim.quad_bounds;
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
Copy link

Choose a reason for hiding this comment

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

don't remove the newline, add your code under prim.scissor

Copy link
Author

Choose a reason for hiding this comment

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

I have modified it

self.render(prim);
}

Expand Down Expand Up @@ -497,7 +497,7 @@ impl Vger {
];
prim.tex_bounds = prim.quad_bounds;
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}

Expand Down Expand Up @@ -529,7 +529,7 @@ impl Vger {
];
prim.tex_bounds = prim.quad_bounds;
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}

Expand All @@ -554,7 +554,7 @@ impl Vger {
prim.quad_bounds = [min.x - width, min.y - width, max.x + width, max.y + width];
prim.tex_bounds = prim.quad_bounds;
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}

Expand Down Expand Up @@ -584,7 +584,7 @@ impl Vger {
];
prim.tex_bounds = prim.quad_bounds;
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}

Expand Down Expand Up @@ -618,7 +618,7 @@ impl Vger {
];
prim.tex_bounds = prim.quad_bounds;
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}

Expand Down Expand Up @@ -676,7 +676,7 @@ impl Vger {
prim.quad_bounds[2] = x_interval.b;
prim.quad_bounds[3] = self.path_scanner.interval.b;
prim.tex_bounds = prim.quad_bounds;

prim.xform = self.add_xform() as u32;
self.render(prim);
}

Expand Down Expand Up @@ -717,7 +717,7 @@ impl Vger {
];
prim.paint = paint_index.index as u32;
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}
}
Expand Down Expand Up @@ -747,7 +747,7 @@ impl Vger {
(rect.y + rect.height) as f32,
];
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}
}
Expand Down Expand Up @@ -785,7 +785,7 @@ impl Vger {
prim.paint = paint_index.index as u32;
}
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}
}
Expand Down