Package icyllis.arc3d.granite
Class SubRunContainer
java.lang.Object
icyllis.arc3d.granite.SubRunContainer
A SubRun represents a method to draw a subregion of a GlyphRun, where
GlyphRun represents the shaped text (positioned glyphs) and a strike.
SubRun is the basic unit that is ready for GPU task generation, except
that it does not contain the current transformation matrix.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final class
static class
SubRun defines the most basic functionality of a SubRun; the ability to draw, and the ability to be in a list.static final class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(Canvas canvas, float originX, float originY, Paint paint, GraniteDevice device) long
boolean
isEmpty()
static SubRunContainer
make
(GlyphRunList glyphRunList, Matrixc positionMatrix, Paint runPaint, StrikeCache strikeCache)
-
Constructor Details
-
SubRunContainer
-
-
Method Details
-
make
@Nonnull public static SubRunContainer make(@Nonnull GlyphRunList glyphRunList, @Nonnull Matrixc positionMatrix, @Nonnull Paint runPaint, @Nonnull StrikeCache strikeCache) -
draw
-
initialPosition
-
isEmpty
public boolean isEmpty() -
getMemorySize
public long getMemorySize()
-