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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classstatic classSubRun 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanReuse(@NonNull Paint paint, @NonNull Matrixc positionMatrix, float glyphRunListX, float glyphRunListY) voiddraw(Canvas canvas, float originX, float originY, Paint paint, GraniteDevice device) longstatic booleanisDirect(float approximateDeviceTextSize) static booleanbooleanisEmpty()static @NonNull SubRunContainermake(@NonNull GlyphRunList glyphRunList, @NonNull Matrixc positionMatrix, @NonNull Paint runPaint, @NonNull StrikeCache strikeCache)
-
Constructor Details
-
SubRunContainer
-
-
Method Details
-
isDirect
-
isDirect
@Contract(pure=true) public static boolean isDirect(float approximateDeviceTextSize) -
make
public static @NonNull SubRunContainer make(@NonNull GlyphRunList glyphRunList, @NonNull Matrixc positionMatrix, @NonNull Paint runPaint, @NonNull StrikeCache strikeCache) -
draw
-
initialPosition
-
isEmpty
public boolean isEmpty() -
canReuse
-
getMemorySize
public long getMemorySize()
-