Almost rendering glyphs
This commit is contained in:
parent
ad8102be3a
commit
df5efd4dab
19 changed files with 629 additions and 625 deletions
|
|
@ -0,0 +1,28 @@
|
|||
package love.distributedrebirth.unicode4d.draw;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class DrawGlyphContour {
|
||||
private final List<ImGlyphPoint> points = new ArrayList<>();
|
||||
|
||||
public class ImGlyphPoint {
|
||||
int x;
|
||||
int y;
|
||||
boolean onCurve;
|
||||
|
||||
public ImGlyphPoint(int x, int y, boolean onCurve) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.onCurve = onCurve;
|
||||
}
|
||||
}
|
||||
|
||||
public void point(int x, int y, boolean onCurve) {
|
||||
points.add(new ImGlyphPoint(x,y, onCurve));
|
||||
}
|
||||
|
||||
public List<ImGlyphPoint> getPoints() {
|
||||
return points;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue