Class SubRunContainer

java.lang.Object
icyllis.arc3d.granite.SubRunContainer

public class SubRunContainer extends Object
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.
  • Constructor Details

    • SubRunContainer

      public SubRunContainer(Matrixc initialPositionMatrix)
  • Method Details

    • make

      @Nonnull public static SubRunContainer make(@Nonnull GlyphRunList glyphRunList, @Nonnull Matrixc positionMatrix, @Nonnull Paint runPaint, @Nonnull StrikeCache strikeCache)
    • draw

      public void draw(Canvas canvas, float originX, float originY, Paint paint, GraniteDevice device)
    • initialPosition

      public Matrixc initialPosition()
    • isEmpty

      public boolean isEmpty()
    • getMemorySize

      public long getMemorySize()