diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-29 07:56:55 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-29 07:56:55 -0700 |
commit | 2b69b71c7a6fa70f21383caa2e4e96f9c89e68d1 (patch) | |
tree | c59961c7741505160c71702833959c59bbcb792b /main.lua | |
parent | b0bb105cbed8400a306450c7273a1bc5b27c49f0 (diff) | |
download | text.love-2b69b71c7a6fa70f21383caa2e4e96f9c89e68d1.tar.gz |
update some documentation
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/main.lua b/main.lua index dfa3195..df4828e 100644 --- a/main.lua +++ b/main.lua @@ -16,9 +16,12 @@ require 'icons' function App.initialize_globals() -- a line is either text or a drawing -- a text is a table with: --- mode = 'text' --- string data --- screen_line_starting_pos: optional array of grapheme indices if it wraps over more than one screen line +-- mode = 'text', +-- string data, +-- a (y) coord in pixels (updated while painting screen), +-- some cached data that's blown away and recomputed when data changes: +-- fragments: snippets of rendered love.graphics.Text, guaranteed to not wrap +-- screen_line_starting_pos: optional array of grapheme indices if it wraps over more than one screen line -- a drawing is a table with: -- mode = 'drawing' -- a (y) coord in pixels (updated while painting screen), |