Package icyllis.arc3d.granite
Class BakedTextBlob
java.lang.Object
icyllis.arc3d.granite.BakedTextBlob
A BakedTextBlob contains a fully processed TextBlob, suitable for nearly immediate drawing
on the GPU. These are initially created with valid positions and colors, but with invalid
texture coordinates.
A BakedTextBlob contains a number of SubRuns that are created in the blob's arena. Each SubRun tracks its own glyph and position data.
In these classes, I'm trying to follow the convention about matrices and origins.
- drawMatrix and drawOrigin - describes transformations for the current draw command.
- positionMatrix - is equal to drawMatrix * [drawOrigin-as-translation-matrix]
- initial Matrix - describes the combined initial matrix and origin the TextBlob was created with.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(Canvas canvas, float originX, float originY, Paint paint, GraniteDevice device) long
static BakedTextBlob
make
(GlyphRunList glyphRunList, Paint paint, Matrixc positionMatrix, StrikeCache strikeCache)
-
Constructor Details
-
BakedTextBlob
-
-
Method Details
-
make
@Nonnull public static BakedTextBlob make(@Nonnull GlyphRunList glyphRunList, @Nonnull Paint paint, @Nonnull Matrixc positionMatrix, @Nonnull StrikeCache strikeCache) -
draw
-
getMemorySize
public long getMemorySize()
-