Class CharArray
Class used intermediately by Packings, representing an array of packed characters.
Metamethods
Methods
- CharArray:GetPackedQuad (char_index, xpos, ypos[, align=false])
-
Get information for rendering a specific character, typically as part of a sequence.
Parameters:
- char_index
uint
Position of character in the array to display, from 1 to
#self
. - xpos number Current position in screen space, x-coordinate...
- ypos number ...and y-coordinate.
- align bool Align coordinates to integer values? (default false)
Returns:
- table Quad to draw, where x0, y0, contain the upper-left corner and x1, y1 the lower-right. In addition, those values (in order) are remapped to the [0, 1] range as s0, t0, s1, and t1, i.e. their texture region.
- number New xpos after placing character...
- number ...and ypos.
- char_index
uint
Position of character in the array to display, from 1 to