Package icyllis.arc3d.granite
Class SubRunContainer.AtlasSubRun
java.lang.Object
icyllis.arc3d.granite.SubRunContainer.SubRun
icyllis.arc3d.granite.SubRunContainer.AtlasSubRun
- Direct Known Subclasses:
SubRunContainer.DirectMaskSubRun,SubRunContainer.TransformedMaskSubRun
- Enclosing class:
SubRunContainer
-
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(Canvas canvas, float originX, float originY, Paint paint, GraniteDevice device) voidfillInstanceData(MeshDrawWriter writer, int offset, int count, float depth) voidfillInstanceData(MeshDrawWriter writer, int offset, int count, float offsetX, float offsetY, float depth) intReturns the number of visible glyphs.intReturns the GPU mask format.intgetMatrixAndFilter(Matrixc localToDevice, float originX, float originY, Matrix outSubRunToLocal, Matrix outSubRunToDevice) Compute sub-run-to-local matrix and sub-run-to-device with the given origin.longintprepareGlyphs(int start, int end, RecordingContext context) Update atlas for glyphs in the given range if needed, returns the number of glyphs that are updated (may less than end-start if atlas is full).Methods inherited from class icyllis.arc3d.granite.SubRunContainer.SubRun
canReuse
-
Method Details
-
draw
- Specified by:
drawin classSubRunContainer.SubRun
-
getGlyphCount
public int getGlyphCount()Returns the number of visible glyphs. -
getMaskFormat
public int getMaskFormat()Returns the GPU mask format. -
prepareGlyphs
Update atlas for glyphs in the given range if needed, returns the number of glyphs that are updated (may less than end-start if atlas is full). If an error occurred, returns the bitwise NOT (a negative value). -
fillInstanceData
- See Also:
-
fillInstanceData
public void fillInstanceData(MeshDrawWriter writer, int offset, int count, float offsetX, float offsetY, float depth) - See Also:
-
getBounds
-
getMatrixAndFilter
@Contract(mutates="param4,param5") public int getMatrixAndFilter(Matrixc localToDevice, float originX, float originY, Matrix outSubRunToLocal, Matrix outSubRunToDevice) Compute sub-run-to-local matrix and sub-run-to-device with the given origin. Compute filter based on local-to-device matrix and origin, and return it. -
getMemorySize
public long getMemorySize()- Specified by:
getMemorySizein classSubRunContainer.SubRun
-