Text sprite batch renderer. Responsible to drawing a batch of characters sprites.
Kind: global class
Boolean
Number
Color
Create the text sprites batch.
Param | Type | Description |
---|---|---|
[batchSpritesCount] | Number |
Internal buffers size, in sprites count (sprite = 4 vertices). Bigger value = faster rendering but more RAM. |
Boolean
If true, will render as Msdf Fonts.
Kind: instance property of TextSpriteBatch
Number
If bigger than 0, will draw outline. Currently not supported with msdf fonts. Must be set before begin() is called.
Kind: instance property of TextSpriteBatch
Color
Outline color, when outlineWeight is set. Must be set before begin() is called.
Kind: instance property of TextSpriteBatch
Kind: instance property of TextSpriteBatch
Add text sprites group to batch.
Kind: instance method of TextSpriteBatch
Param | Type | Description |
---|---|---|
textGroup | SpritesGroup |
Text sprite group to draw. |
cullOutOfScreen | Boolean |
If true, will cull out sprites that are not visible in screen. |