Class CharArray

Class used intermediately by Packings, representing an array of packed characters.

Metamethods

CharArray:__len ()
Metamethod.

Returns:

    uint Number of characters packed in the array.

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:

  1. 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.
  2. number New xpos after placing character...
  3. number ...and ypos.
generated by LDoc 1.4.6 Last updated 2018-09-03 18:10:34